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
Right now we have <i18n:param> for better localization.
<i18n:param>
and we use it like this:
{ "myKey": "Some text <i18n:param>someParam</i18n:param>" }
an in code:
import i18n from 'b:awesomeB t:i18n'; <input value={ i18n('mykey', { someParam: 'wow' }) } >;
And it's cool but what to do if we want to localize string with Component inside, or .
like:
import i18n from 'b:awesomeB t:i18n'; const button = (text) => (<button>{ text }</button>); <span>{ i18n('myKeyInsideButton', { someParam: button }) }</span>
What syntax in keysets should we use?
my proposal:
{ "myKey": "... and then button: <i18n:wrap name='someParam'>Localized Btn-text</i18n:wrap>" }
@veged any suggestions?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Right now we have
<i18n:param>
for better localization.and we use it like this:
an in code:
And it's cool
but what to do if we want to localize string with Component inside, or .
like:
What syntax in keysets should we use?
my proposal:
@veged any suggestions?
The text was updated successfully, but these errors were encountered: