Created
November 9, 2019 15:37
-
-
Save bodrovis/4ddeef4dcc90dee2c78f9a3e3bcf381c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
before_action :set_locale | |
private | |
def set_locale | |
I18n.locale = params[:locale] || I18n.default_locale | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment