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
With the following json:
{ "app": { "name": "i18next" }, "nav": { "brand": "Company name", "language": "Language", "english": "English", "french": "French", "spanish": "Spanish", "german": "German" } }
How do you get the following:
<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-i18n="nav.language">Language <b class="caret"></b></a>
(How do I add <b class="caret"></b> to the a text, or can I harcode it?)
<b class="caret"></b>
a
I cannot think of an easy way.
The text was updated successfully, but these errors were encountered:
Found the solution in the example page: http://i18next.com/pages/sample.html See section: 'setting inner html'
Add the html to desired resource:
{ "app": { "name": "i18next" }, "nav": { "brand": "Company name", "language": "Language <b class='caret'></b>", "english": "English", "french": "French", "spanish": "Spanish", "german": "German" } }
And use this code:
<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-i18n="[html]nav.language"></a>
Sorry, something went wrong.
No branches or pull requests
With the following json:
How do you get the following:
(How do I add
<b class="caret"></b>
to thea
text, or can I harcode it?)I cannot think of an easy way.
The text was updated successfully, but these errors were encountered: