mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Add a site setting to allow users to toggle I18n.locale
It is false by default.
This commit is contained in:
@ -55,6 +55,15 @@ describe TopicsController do
|
||||
|
||||
I18n.locale.should == :fr
|
||||
end
|
||||
|
||||
it 'is sets the default locale when the setting not enabled' do
|
||||
user = Fabricate(:user, locale: :fr)
|
||||
log_in_user(user)
|
||||
|
||||
get :show, {topic_id: topic.id}
|
||||
|
||||
I18n.locale.should == :en
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user