Closed Metilar closed 2 years ago
Hey @Metilar can you check if that works, on the PHP side with the {{ _('message.hello') }}
?
Thanks for the help.
Hey @Metilar can you check if that works, on the PHP side with the
{{ _('message.hello') }}
?Thanks for the help.
No, if I understand correctly, this is supported specifically in i18n
Hey @Metilar just tested on just the Laravel stack and its not supported.
Since this package follows the i18n rules from Laravel I will not add that for now, if you want to PR that to the Laravel core, then I will be happy to include here.
Thanks.
@taylorotwell has rejected https://github.com/laravel/framework/pull/42226 in May 2022, just for reference. I would still love to see this happen in both Laravel and laravel-vue-i18n, but find it smart you follow strict i18n rules from Laravel in this package.
Vue i18n supports json with a nested structure.
JSON:
Template:
I tried that, but the translation returns the keys.