Dear,
Today i got a problem when issue react-i18next in my project.
I have a key like this "today: my birthday" and i want to translate this with t("today: my birthday")
Result i got is "my birthday".
How can i translate ":" with react-i18next.
Best regards,
: acts as namespace separator -> accessing different "files"
-> see the basics: https://www.i18next.com/translation-function/essentials#accessing-keys-in-different-namespaces
setting nsSeparator: false on init removes that namespace discovery by : -> https://www.i18next.com/overview/configuration-options#misc
:acts as namespace separator -> accessing different "files"-> see the basics: https://www.i18next.com/translation-function/essentials#accessing-keys-in-different-namespaces
setting
nsSeparator: falseon init removes that namespace discovery by:-> https://www.i18next.com/overview/configuration-options#misc
It works for me, thank you so much
If you like this module don鈥檛 forget to star this repo. Make a tweet, share the word or have a look at our https://locize.com to support the devs of this project -> there are many ways to help this project :pray:
Please note nsSeparator works only in the i18n.init() call and not in the i18next-parser.config.js. namespaceSeparator: false is supposed to work in the parser config I'm assuming?
@dwalintukan if it does not work on i18next-parser opening an issue or feature request there might help...
Sorry, you're right. This was the wrong repo to post in.
Most helpful comment
:acts as namespace separator -> accessing different "files"-> see the basics: https://www.i18next.com/translation-function/essentials#accessing-keys-in-different-namespaces
setting
nsSeparator: falseon init removes that namespace discovery by:-> https://www.i18next.com/overview/configuration-options#misc