xiCO2k / laravel-vue-i18n

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

Npm run dev generate php_en.json file #99

Closed simonj closed 1 year ago

simonj commented 1 year ago

Hi,

First and foremost really awesome package! nice job.

I have followed the installation for my Laravel 9 + Jetstream + Inertiajs application (all new installation) But when i run npm run dev it only generates a php_en.json file but I have set the application to be da What can i have done wrong?

Skærmbillede 2023-02-02 kl  20 35 57 Skærmbillede 2023-02-02 kl  20 36 33 Skærmbillede 2023-02-02 kl  20 36 45 Skærmbillede 2023-02-02 kl  20 37 20
Jacobtims commented 1 year ago

Please read the README.md

During the npm run dev execution time, the plugin will create some files like this php_{lang}.json on your lang folder. And to avoid that to be commited to your code base, I suggest to your .gitignore this like:

lang/php_*.json

xiCO2k commented 1 year ago

Thanks for the reply @Jacobtims.

Any more help let me know.

simonj commented 1 year ago

@Jacobtims @xiCO2k Thanks for your answer. I don't think i was clear.

The issue is that it generate english files and not the danish files.

As i understand it, it should generate php_da.json where da is my language

Jacobtims commented 1 year ago

Run npm run dev again

simonj commented 1 year ago

@Jacobtims I have done that multiple times and it still just generate the en file