How can i remove wrapping locale object?
illjah42 opened this issue · 1 comments
illjah42 commented
In our work we use lazy-loading translations, provided by https://nuxt-community.github.io/nuxt-i18n/.
Loaded file expects to be like this:
{
key: 'value'
}
But the generator outputs something like this, even for --multi-locales flag:
{
en: {
key: 'value'
}
}
The loaded file injects as is, so the translation function can't find $t('key')
, because now it is $t(i18n.locale + '.key')
Can we somehow tune the generator to recieve an object, not wrapped in locale key in output?
yevhenlisovenko commented
The same issue! Looking forward!