Next-translate: Nested interpolation

Created on 8 Jan 2021  路  2Comments  路  Source: vinissimus/next-translate

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?

enhancement

Most helpful comment

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

All 2 comments

Currently, it doesn't have nested interpolation.

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

Was this page helpful?
0 / 5 - 0 ratings