i18next json dot in key or label -
js: i18n.t("some text translated.")
json: "some text translated.": "een stukje tekst om te vertalen"
i18n.t("some text translated.")
gives me "some text translated.".
if remove "." (dot) label , function t, text translated.
how solve this?
documentation explains dot default treated key separator. can
- replace dot
.
- put dot outside translated string
i18n.t("some text translated") + "."
- change key separator
you can change namespace and/or key separator setting options on init:
nsseparator = ':::' keyseparator = '::'
Comments
Post a Comment