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