mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Style fixes
This commit is contained in:
parent
7de6a7a6da
commit
bc41bc0e4b
@ -24,8 +24,8 @@ module Localized
|
||||
# 1. a URL paramter called "locale"
|
||||
# 2. the +HTTP_ACCEPT_LANGUAGE+ header property
|
||||
def requested_locale
|
||||
validate_locale locale_from_url_params ||
|
||||
locale_from_accept_language_header
|
||||
validate_locale locale_from_url_params ||
|
||||
locale_from_accept_language_header
|
||||
end
|
||||
|
||||
# Returns the given locale if localizations for it are available.
|
||||
|
||||
@ -22,9 +22,7 @@ module PlanCharacters
|
||||
|
||||
# The default locale is :en and all translations
|
||||
# from config/locales/*.rb,yml are auto loaded.
|
||||
#
|
||||
|
||||
|
||||
config.i18n.load_path +=
|
||||
Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user