Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bsa_miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nazarf
bsa_miner
Commits
517a2770
Commit
517a2770
authored
Mar 17, 2023
by
nazarf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set en locale
parent
599df6f1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
application_controller.rb
app/controllers/application_controller.rb
+1
-1
application.rb
config/application.rb
+1
-1
active_translation.rb
config/initializers/active_translation.rb
+1
-1
No files found.
app/controllers/application_controller.rb
View file @
517a2770
class
ApplicationController
<
ActionController
::
Base
protect_from_forgery
with: :exception
before_action
:check_administrator
,
unless: :devise_controller?
before_filter
:set_locale
#
before_filter :set_locale
helper_method
:current_url_for_locale
def
current_url_for_locale
(
locale
)
...
...
config/application.rb
View file @
517a2770
...
...
@@ -18,7 +18,7 @@ module Stellar
# 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
.
default_locale
=
:
uk
config
.
i18n
.
default_locale
=
:
en
# Do not swallow errors in after_commit/after_rollback callbacks.
config
.
active_record
.
raise_in_transactional_callbacks
=
true
...
...
config/initializers/active_translation.rb
View file @
517a2770
...
...
@@ -3,7 +3,7 @@
require
'active_translation/active_translation'
LANGUAGES
=
[
%w(Ukrainian uk)
,
#
%w(Ukrainian uk),
%w(English en)
# %w(Deutsch de)
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment