I have a strange problem. I have en.yml file that looks like this:
en:
no_notifiaction: No Notification
active_notification: Active notification
t('.active_notification') == "Active notification" #false
I18n.t('.active_notification') == "Active notification" #true?
Why is that?
Have a look at the documentation under "Lazy Lookups". t('.active_notification')
is only available within the corresponding view and controller. Not if you call it, let's say in a javascript file or any other view...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With