@hyperjump/json-schema-errors
    Preparing search index...

    Variable addTranslationConst

    addTranslation: (
        locale: string,
        ftl: string,
        options?: { direction?: "ltr" | "rtl" },
    ) => void

    Adds Fluent messages for a locale, such as messages for a custom keyword or a translation for a locale that isn't included. A message with the same id as an existing message replaces it. Messages that aren't translated for a locale fall back to en-US.

    Messages for keywords use the ids {keyword}-message for errors and {keyword}-success-message and {keyword}-negated-message for describing what a keyword requires.

    Type Declaration

      • (locale: string, ftl: string, options?: { direction?: "ltr" | "rtl" }): void
      • Parameters

        • locale: string

          A locale identifier in the form of "{language}-{region}"

        • ftl: string

          Messages in the Fluent syntax

        • Optionaloptions: { direction?: "ltr" | "rtl" }
          • Optionaldirection?: "ltr" | "rtl"

            The text direction of a new locale. It's ignored if the locale already exists.

        Returns void