-
Notifications
You must be signed in to change notification settings - Fork 4
Update to API changes from axI18n #149
Comments
BREAKING CHANGENew API!
Previously, users had to use Here's a formal description of the new API in Typescript notation. class AxUikitBaseOptions {
groupingSeparator?: string,
decimalSeparator?: string,
dateFormat?: string,
timeFormat?: string
}
class AxUikitFormatterOptions extends AxUikitBaseOptions {
decimalPlaces?: integer,
decimalTruncation?: 'FIXED' | 'BOUNDED' | 'NONE'
}
class AxUikitParserOptions extends AxUikitBaseOptions {
dateFormatFallbacks?: array,
dateTwoDigitYearWrap?: integer,
timeFormatFallbacks?: array
}
class AxUikit {
options( opts?: AxUikitFormatterOptions | AxUikitParserOptions ): Object,
formatter: {
create( type: string, opts?: AxUikitFormatterOptions ): Function
},
parser: {
error(): { ok: false },
success( value: any ): { ok: true, value: any },
create( type: string, opts?: AxUikitParserOptions ): Function
},
localized( i18n: AxI18n ): AxUikit
} Edit: |
Published w/ in |
Here's an API change in Laxar that the local mocks hid from the tests:
i18n.localizeRelaxed
is gone. There is no API to supply a language tag when localizing either.See LaxarJS/laxar#429
The text was updated successfully, but these errors were encountered: