xiCO2k / laravel-vue-i18n

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

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

Closed taozuhong closed 1 year ago

taozuhong commented 1 year 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 1 year ago

Can you provide more info.

Thanks.

taozuhong commented 1 year 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 1 year ago

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

Let me know.