Spittal / vue-i18n-extract

Manage vue-i18n localization with static analysis
https://pixari.github.io/vue-i18n-extract/#what-is-it
MIT License
313 stars 86 forks source link

language is not detected if it's a part of a path instead of the filename #184

Open existe-deja opened 2 years ago

existe-deja commented 2 years ago

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 of language is main as I assume you're showing the filename.

ColiZei commented 5 months ago

Any progress? I need this to.

I have a structure like this:

In the vue files it's used like this:

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 },
  },
  // ...
}