next-translate icon indicating copy to clipboard operation
next-translate copied to clipboard

Nested interpolation

Open iksent opened this issue 5 years ago • 2 comments

Hello, thanks a lot for perfect library!

Walked through documentation and issues, but didn't find anything about nested interpolation: https://www.i18next.com/translation-function/nesting

{
    "nesting1": "1 $t(nesting2)",
    "nesting2": "2 $t(nesting3)",
    "nesting3": "3",
}

i18next.t('nesting1'); // -> "1 2 3"

Does next-translate have it or not yet?

iksent avatar Jan 08 '21 12:01 iksent

Currently, it doesn't have nested interpolation.

xcrzx avatar Jan 09 '21 14:01 xcrzx

@iksent @xcrzx It may be interesting to add it in the future. I note it for 1.1!

aralroca avatar Jan 11 '21 09:01 aralroca