xiCO2k / laravel-vue-i18n

Allows to connect your `Laravel` Framework translation files with `Vue`.
MIT License
584 stars 49 forks source link

Should not generate extra file while Laravel using json locale file #150

Closed taozuhong closed 7 months ago

taozuhong commented 8 months ago

Should not generate extra file while Laravel using json locale file, and the php_en.json contain the laravel internal locale content only:

image

xiCO2k commented 8 months ago

Can you provide more info.

Thanks.

taozuhong commented 8 months ago

First, the project use json locale file mode: Using Translation Strings As Keys , so the lang directory has many locale files like: en.json/zh.json/es.json/....

After that, run the command npm run dev / npm run build will generate the file: php_en.json in the directory lang.

In this situation, laravel-vue-i18n shouldn't generate locale file like php_en.json, just use the json files listed in the directory lang directly.

xiCO2k commented 7 months ago

for that case you should not use the vite plugin. and it should work fine.

Let me know.