Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to reload language files in "production"

How to reload language files in Production?

I18n.backend.reload!

This method doesn't work.

(trying to reload via url, attached to this action)

like image 784
Alexey Avatar asked Oct 05 '22 02:10

Alexey


1 Answers

You can reload language files without reloading application server using:

I18n.backend.load_translations
like image 127
Alexey Avatar answered Oct 12 '22 10:10

Alexey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!