Options
All
  • Public
  • Public/Protected
  • All
Menu

Module MissingTranslation

Index

Functions

Const errorStrategy

  • Throw an error whenever a translation cannot be found. The message will includes the full scope. To use it, you have to set i18n.missingBehavior to "error".

    Parameters

    • i18n: I18n

      The I18n instance.

    • scope: Scope

      The translation scope.

    • options: Dict

      The translations' options.

    Returns string

Const guessStrategy

  • Generate a human readable version of the scope as the missing translation. To use it, you have to set i18n.missingBehavior to "guess".

    Parameters

    • i18n: I18n

      The I18n instance.

    • scope: Scope

      The translation scope.

    • options: Dict

    Returns string

    The missing translation string.

Const messageStrategy

  • messageStrategy(i18n: I18n, scope: Scope, options: Dict): string
  • Generate the missing translation message, which includes the full scope. To use it, you have to set i18n.missingBehavior to "message". This is the default behavior.

    Parameters

    • i18n: I18n

      The I18n instance.

    • scope: Scope

      The translation scope.

    • options: Dict

      The translations' options.

    Returns string

    The missing translation string.

Generated using TypeDoc