If you store your user's selected locale in the database and would like to force the SDK to use this locale, simply add the current_locale method to your ApplicationController.rbdef current_locale
current_user.locale
end
When TML SDK is initialized during the request, it will check to see if current_locale method exists and if it does, it will use the specified locale.
To learn more about various SDK options, please visit http://docs.translationexchange.com/rails-configuration/
Comments
0 comments
Please sign in to leave a comment.