Skip to content

Commit

Permalink
settting default locale for amdin
Browse files Browse the repository at this point in the history
  • Loading branch information
sbounmy committed Apr 10, 2012
1 parent cc41cb7 commit 4ff15dd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/controllers/base_controller_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,11 @@ def locale_suffix(locale)
locale ||= I18n.locale
I18n.locale == locale.to_sym ? "".to_sym : "_"+ locale
end

private

def set_user_language
I18n.locale = Spree::Config[:default_locale].to_sym
end

end

0 comments on commit 4ff15dd

Please sign in to comment.