You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is what I do:
'en.auth-message': require('../../../resources/lang/en/auth/message.php'),and thenlang.get('auth-message.translation')which works. However doing this:en.auth/message': require('../../../resources/lang/en/auth/message.php'),and thenlang.get('auth/message.translation') or laravel conventionlang.get('auth.message.translation')` does not translate
Any indeas on how to best deal with this?
The text was updated successfully, but these errors were encountered:
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 :
subfolder :
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'),
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 translateAny indeas on how to best deal with this?
The text was updated successfully, but these errors were encountered: