Closed ludoguenet closed 1 year ago
Can you create a public repo with this issue?
Thanks
I will attempt to replicate the issue from the private app I'm currently developing. The challenge lies in the fact that this particular app was initially built with Laravel 9 and later updated to version 10.x, where the i18n functionality is functioning correctly.
However, whenever I try to create a Laravel 10 application from scratch, I encounter the same issue mentioned in this GitHub thread: https://github.com/xiCO2k/laravel-vue-i18n/issues/128
Got it, will follow up on the #128
Hello !
I am using Enum for translations like so:
fr/categories.php
return [ EnumCategory::FIRST->value => 'Première catégorie', EnumCategory::SECOND->value => 'Seconde catégorie', ];
It appears that in my Vue Component (in Blade view), it does not show up :
{{ $t('categories.' + item.category) }}
Key is defined this way : "categories.undefined":"Première catégorie"
Nevertheless, when I define hardcoded values, it is working great :
fr/categories.php
return [ 'first_category' => 'Première catégorie', 'second_category' => 'Seconde catégorie', ];
Key is defined this way : "categories.first_category":"Première catégorie"
Thanks for reading me!