We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
options: { // use strings as keys nsSeparator: false, keySeparator: false, // settings defaultNs: "frontend", lngs: ["en"], resource: { loadPath: "{{lng}}/{{ns}}.json", savePath: "{{lng}}/{{ns}}.json", }, func: false, trans: false, defaultValue: (language, namespace, key) => key, },
react-i18n v7.7.0 introduced the defaults prop (see i18next/react-i18next#439). I expect the following code:
defaults
<Trans defaults="Hello <0>{val}</0>!" tOptions={{val: "World"}} components=[<strong>foo</strong>] />
to lead to the following output:
{ "Hello <0>{val}</0>!": "Hello <0>{val}</0>!" }
The text was updated successfully, but these errors were encountered:
It looks like this needs at least 3 things:
Trans
<\d>
Especially the latter two probably mean rewriting the regular expression a bit.
Sorry, something went wrong.
No branches or pull requests
Version
Configuration
react-i18n v7.7.0 introduced the
defaults
prop (see i18next/react-i18next#439). I expect the following code:to lead to the following output:
The text was updated successfully, but these errors were encountered: