Millwork
    Preparing search index...

    Class I18nText

    A text in more than one language, keyed by BCP 47 locale. An I18nText is immutable.

    Index
    • Gives the text for locale. It tries the locale, then each shorter parent (fr-CA, then fr), then each fallback in the same way. It gives undefined when no locale matches.

      Parameters

      • locale: string
      • fallbacks: readonly string[] = []

      Returns string | undefined