Closed Leander250 closed 1 week ago
Darwin
v20.7.0
3.11.2
3.11.1
2.9.6
npm@10.1.0
-
modules
devtools
i18n
@nuxtjs/i18n@8.3.1
https://github.com/Leander250/nuxt-i18n-regression
In v7 it was possible to retrieve a node which was not a leaf. For example I could get the "options" node and i18n would return an object with 4 properties:
bescheidform: { options: { bezAsc: 'Bezeichnung (Aufsteigend)', bezDesc: 'Bezeichnung (Absteigend)', matchcodeAsc: 'Matchcode (Aufsteigend)', matchcodeDesc: 'Matchcode (Absteigend)' } }
This causes "[intlify] Not found 'bescheidform.options' key in 'en' locale messages."
in v8 instead.
Would be nice if we could restore this functionality :)
No response
you need to use $tm / tm and $rt / rt. About how to usage, you can read the docs https://vue-i18n.intlify.dev/guide/migration/breaking.html#translation-api-return-value
thanks!
Environment
Darwin
v20.7.0
3.11.2
3.11.1
2.9.6
npm@10.1.0
-
modules
,devtools
,i18n
@nuxtjs/i18n@8.3.1
-
Reproduction
https://github.com/Leander250/nuxt-i18n-regression
Describe the bug
In v7 it was possible to retrieve a node which was not a leaf. For example I could get the "options" node and i18n would return an object with 4 properties:
This causes "[intlify] Not found 'bescheidform.options' key in 'en' locale messages."
in v8 instead.
Additional context
Would be nice if we could restore this functionality :)
Logs
No response