src/nodejs/jsintl

Internationalization API for JavaScript targets.

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(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 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 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 `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