JS: i18n.t("SOME TEXT TO BE TRANSLATED.")
JSON: "SOME TEXT TO BE TRANSLATED.": "Een stukje tekst om te vertalen"
i18n.t("SOME TEXT TO BE TRANSLATED.")
gives me "SOME TEXT TO BE TRANSLATED.".
If I remove the "." (dot) from the label and the function t, than the text is translated.
How to solve this?
Documentation explains that dot is by default treated as a key separator. You can
.
i18n.t("SOME TEXT TO BE TRANSLATED") + "."
You can change namespace and/or key separator by setting options on init:
nsSeparator: ':::' keySeparator: '::'
You can set "keySeparator" : false in your init option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With