Internationalization API for JavaScript targets.
Types
Collator = ref object of JsRoot
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator
DisplayNames = ref object of JsRoot
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames
ListFormat = ref object of JsRoot
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat
NumberFormat = ref object of JsRoot
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
Procs
func compare(self: Collator; string1, string2: cstring): int {. importjs: "#.$1(#, #)", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator/compare
func format(self: ListFormat; list: openArray[cstring]): cstring {. importjs: "#.$1(#)", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format
func format(self: NumberFormat; number: SomeNumber): cstring {. importjs: "#.$1(#)", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/format
func getCanonicalLocales(locales: cstring): seq[cstring] {. importjs: "Intl.$1(#)", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales
func getCanonicalLocales(locales: openArray[cstring]): seq[cstring] {. importjs: "Intl.$1(#)", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales
func newCollator(): Collator {.importjs: "new Intl.Collator()", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator/Collator
func newCollator(locales: openArray[cstring]): Collator {. importjs: "new Intl.Collator(#)", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator/Collator
func newDisplayNames(): DisplayNames {.importjs: "new Intl.DisplayNames()", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames
func newDisplayNames(locales: openArray[cstring]): DisplayNames {. importjs: "new Intl.DisplayNames(#)", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames
func newListFormat(): ListFormat {.importjs: "new Intl.ListFormat()", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat
func newListFormat(locales: openArray[cstring]): ListFormat {. importjs: "new Intl.ListFormat(#)", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat
func newNumberFormat(): NumberFormat {.importjs: "new Intl.NumberFormat()", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat
func newNumberFormat(locales: openArray[cstring]): NumberFormat {. importjs: "new Intl.NumberFormat(#)", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat
func newPluralRules(): PluralRules {.importjs: "new Intl.PluralRules()", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules/PluralRules
func newPluralRules(locales: openArray[cstring]): PluralRules {. importjs: "new Intl.PluralRules(#)", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules/PluralRules
func newRelativeTimeFormat(): RelativeTimeFormat {. importjs: "new Intl.RelativeTimeFormat()", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat
func newRelativeTimeFormat(locales: openArray[cstring]): RelativeTimeFormat {. importjs: "new Intl.RelativeTimeFormat(#)", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat
func `of`(self: DisplayNames; code: cstring): cstring {.importjs: "#.$1(#)", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of
func select(self: PluralRules; number: SomeInteger): cstring {. importjs: "#.$1(#)", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules/select
func select(self: RelativeTimeFormat; value: SomeNumber; unit: cstring): cstring {. importjs: "#.$1(#)", ...raises: [], tags: [].}
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format