ilusm.dev

i18n

Internationalization, localization, translations.

Load with: use i18n

Quick example

use i18n

result = i18nl1("value")
prn(result)

Functions

Locale

i18nl()

Performs the operation.

i18nl1(lc)

Performs the operation. Takes lc.

i18na()

Performs the operation.

Catalog

i18n5(lc)

Performs the operation. Takes lc.

i18n4(ct, p)

Performs the operation. Takes ct, p.

i18n41(ct, p, fm)

Performs the operation. Takes ct, p, fm.

i18nc(ct, ky)

Performs the operation. Takes ct, ky.

i18nc1(ct, ky, ctx)

Performs the operation. Takes ct, ky, ctx.

i18n7(ct, ky, vl)

Performs the operation. Takes ct, ky, vl.

i18n6(ct, ky, fn)

Performs the operation. Takes ct, ky, fn.

Interpolation

i18nn(tm, ctx)

Performs the operation. Takes tm, ctx.

Pluralization

i18ng(n, sg, pl)

Performs the operation. Takes n, sg, pl.

i18ng1(n, fm, fmts)

Performs the operation. Takes n, fm, fmts.

i18np(lc, n)

Performs the operation. Takes lc, n.

i18ne(ct, ky, n)

Creates a new instance. Takes ct, ky, n.

i18ne1(ct, ky, n, ctx)

Performs the operation. Takes ct, ky, n, ctx.

Formatting

i18nf(n, lc)

Performs the operation. Takes n, lc.

i18nd(d, lc)

Performs the operation. Takes d, lc.

i18nt(t, lc)

Performs the operation. Takes t, lc.

i18n9(c, lc)

Performs the operation. Takes c, lc.

i18nr(t, lc)

Performs the operation. Takes t, lc.

RTL detection

i18nh(lc)

Performs the operation. Takes lc.

Translation bundles

i18n1()

Performs the operation.

i18n0(bu, p)

Performs the operation. Takes bu, p.

i18nb(bu, lc)

Performs the operation. Takes bu, lc.

i18n2(bu, lc)

Performs the operation. Takes bu, lc.

i18n3(bu, ky)

Performs the operation. Takes bu, ky.

i18n31(bu, ky, ctx)

Performs the operation. Takes bu, ky, ctx.

ICU-style messages

i18n8(tm, ctx)

Performs the operation. Takes tm, ctx.

Notes

  • Internationalisation - translations, locale formatting, plural rules.