Open existe-deja opened 2 years ago
Any progress? I need this to.
I have a structure like this:
src/locales/{localeCode}/general.json
src/locales/{localeCode}/email.json
In the vue files it's used like this:
$t('general.user.email)
$t('email.newProduct.title)
the messages are merge together for i18n like this:
import enGeneral from "@/locales/en/general.json";
import enEmail from "@/locales/en/email.json";
const messages = {
en: {
general: { ...enGeneral },
email: { ...enEmail },
},
// ...
}
It's not a top priority issue.
My files are organized following this pattern:
i18n/locale/{localeCode}/main.json
If I run an analyse, the value oflanguage
ismain
as I assume you're showing the filename.