mercredi 27 avril 2022

How can I use laravel localization into vue components?

I'm currently working on application's translation with Laravel Localization (laravel 5.6). I succeed my text translation on blade templates but I have some view using vuejs. Into them I can't use directly laravel localization. I understand that I have to send my translations files (which are in PHP) into the vue in JS.

I found some packages like :

https://github.com/rmariuzzo/Laravel-JS-Localization ; but it doesn't support laravel 5.6 (damned)...

https://github.com/martinlindhe/laravel-vue-i18n-generator ; Laravel 5 package is no longer maintain...

This application use Laravel 5.6 and vue 2. I can't completely reorganize or upgrade Laravel or vue version.

After many research I'm still not able to do it...

Do you know how can I made translation into my vue component?

Thanks a a lot!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire