Registers a new missing translation strategy. This is how messages are defined when a translation cannot be found.
The follow example registers a strategy that always return the phrase "Oops! Missing translation.".
i18n.missingTranslation.register(
"oops",
(i18n, scope, options) => "Oops! Missing translation."
);
i18n.missingBehavior = "oops";
The strategy name.
A function that returns a string the result of a missing translation scope.
Generated using TypeDoc
Return a missing translation message for the given parameters.
Returns
The missing translation.