Nesting
Basic
{
"nesting1": "1 $t(nesting2)",
"nesting2": "2 $t(nesting3)",
"nesting3": "3",
}i18next.t('nesting1'); // -> "1 2 3"i18next.t($ => $.nesting1); // -> "1 2 3"Passing options to nestings
{
"girlsAndBoys": "They have $t(girls, {\"count\": {{girls}} }) and $t(boys, {\"count\": {{boys}} })",
"boys": "{{count}} boy",
"boys_other": "{{count}} boys",
"girls": "{{count}} girl",
"girls_other": "{{count}} girls",
}Passing nesting to interpolated
Additional options
option
default
description
Last updated