Closed veronQ closed 3 years ago
:
is reserved as namespace separator -> https://www.i18next.com/translation-function/essentials#accessing-keys-in-different-namespaces
Either override nsSeparator or pass a real defaultValue like: i18next.t('Undefined variable: $example', 'Undefined variable: $example')
🐛 Bug Report
Fallback string with the
:
(colon) punctuation mark extracts only parts of it.To Reproduce
Use the
i18next.t(keys, options)
function with an undefined key.Expected behavior
If the key is not defined in the translation file, it should return the string itself, as per the doc.
Your Environment