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
In certain situations, providing context for a different translation would come in handy. One example is gender specific translation.
An example from i18next.com to illustrate the problem: { "friend": "A friend", "friend_male": "A boyfriend", "friend_female": "A girlfriend" }
{ "friend": "A friend", "friend_male": "A boyfriend", "friend_female": "A girlfriend" }
Usage: i18next.t('friend'); // -> "A friend" i18next.t('friend', { context: 'male' }); // -> "A boyfriend" i18next.t('friend', { context: 'female' }); // -> "A girlfriend"
i18next.t('friend'); // -> "A friend" i18next.t('friend', { context: 'male' }); // -> "A boyfriend" i18next.t('friend', { context: 'female' }); // -> "A girlfriend"
It would be cool if the library had a similar feature.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In certain situations, providing context for a different translation would come in handy. One example is gender specific translation.
An example from i18next.com to illustrate the problem:
{ "friend": "A friend", "friend_male": "A boyfriend", "friend_female": "A girlfriend" }
Usage:
i18next.t('friend'); // -> "A friend" i18next.t('friend', { context: 'male' }); // -> "A boyfriend" i18next.t('friend', { context: 'female' }); // -> "A girlfriend"
It would be cool if the library had a similar feature.
The text was updated successfully, but these errors were encountered: