I have a laravel application and I have two different languages.
My problem is that I'm using queued emails
and that just work with default language, so I try to add new keys and values to default language array to give me the possibility to use in both languages.
The problem is that don't recognise the new keys, makes me think that is a cache situation but I already clear the cache with artisan commands
and continue the same.
Now I delete my messages.php
inside my lang folder and It consider the older key yet. Is it cache? How can I solve that?
I put this in blade and works for default language:
@lang('messages.'. $months->month)
Next I add new keys to so I can translate to another language using the same default array language and do that:
@lang('messages.'. $months->month .'-en')
My array is like that:
'Março' => 'Março',
'Março-en' => 'March',
but it just recognise the first key.
Thank you