Closed taozuhong closed 1 year ago
Can you provide more info.
Thanks.
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.
for that case you should not use the vite plugin. and it should work fine.
Let me know.
Should not generate extra file while Laravel using json locale file, and the php_en.json contain the laravel internal locale content only: