xiCO2k / laravel-vue-i18n

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

Library should work for nested keys in translation files. #157

Closed samir480 closed 10 months ago

samir480 commented 10 months ago

en.json

{
    "privacy": {
      "welcome": "Welcome to our Privacy Policy"

    }
}  

to use this I have to do this : {{ $t('privacy').welcome }} but it should be workin with : {{ $t('privacy.welcome') }}

xiCO2k commented 10 months ago

Hey @samir480 for the json translation it mimics the same logic from Laravel.

That works, on the .php lang files but not on the .json files.

Thanks