Commit 517a2770 authored by nazarf's avatar nazarf

set en locale

parent 599df6f1
class ApplicationController < ActionController::Base class ApplicationController < ActionController::Base
protect_from_forgery with: :exception protect_from_forgery with: :exception
before_action :check_administrator, unless: :devise_controller? before_action :check_administrator, unless: :devise_controller?
before_filter :set_locale # before_filter :set_locale
helper_method :current_url_for_locale helper_method :current_url_for_locale
def current_url_for_locale(locale) def current_url_for_locale(locale)
......
...@@ -18,7 +18,7 @@ module Stellar ...@@ -18,7 +18,7 @@ module Stellar
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
config.i18n.default_locale = :uk config.i18n.default_locale = :en
# Do not swallow errors in after_commit/after_rollback callbacks. # Do not swallow errors in after_commit/after_rollback callbacks.
config.active_record.raise_in_transactional_callbacks = true config.active_record.raise_in_transactional_callbacks = true
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
require 'active_translation/active_translation' require 'active_translation/active_translation'
LANGUAGES = [ LANGUAGES = [
%w(Ukrainian uk), # %w(Ukrainian uk),
%w(English en) %w(English en)
# %w(Deutsch de) # %w(Deutsch de)
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment