Open chilio opened 6 years ago
same issue :(((
i have'en.front.addresses': require('../../../../lang/en/front/addresses.php')
and lang.get('front.addresses.delete.buttons.cancel'),
after 2 hours problem solved !
i made my messages.js like this :
'en.front.addresses': require('../../../../lang/en/front/addresses.php'),
and in my code lang.get('front/addresses.delete.buttons.cancel'),
this is working like laravel localization ! i think this case should added to documentation like below :
in message.js
'{locale}.{subfolder}.{file}': require('../../../../lang/{locale}/{subfolder}/{file}.php')
and in your code :
lang.get('{subfolder}/{file}.foo.bar'),
same for more sub folders :
lang.get('{subfolder1}/{subfolder2}/{subfolder3}/.../{file}.foo.bar'),
@chilio @rmariuzzo
Can you create a PR, please?
Here is what I do: 'en.auth-message': require('../../../resources/lang/en/auth/message.php'),
and then
lang.get('auth-message.translation')which works. However doing this:
en.auth/message': require('../../../resources/lang/en/auth/message.php'),and then
lang.get('auth/message.translation')or laravel convention
lang.get('auth.message.translation')` does not translate Any indeas on how to best deal with this?