{"friend": "A friend","friend_male": "A boyfriend","friend_female": "A girlfriend"}
sample
i18next.t('friend'); // -> "A friend"i18next.t('friend', { context:'male' }); // -> "A boyfriend"i18next.t('friend', { context:'female' }); // -> "A girlfriend"
Combining with plurals
You can pass entire data models in options.
keys
{"friend_male_one": "A boyfriend","friend_female_one": "A girlfriend","friend_male_other": "{{count}} boyfriends","friend_female_other": "{{count}} girlfriends"}