Implement localization
This commit is contained in:
parent
b9543d846d
commit
03c4eca9b0
5 changed files with 15 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/Gemfile.lock
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "vendor/rails-i18n"]
|
||||||
|
path = vendor/rails-i18n
|
||||||
|
url = https://github.com/svenfuchs/rails-i18n.git
|
5
Gemfile
Normal file
5
Gemfile
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
|
gem 'i18n', '~> 1.14'
|
|
@ -6,8 +6,13 @@ $LOAD_PATH.unshift lib unless $LOAD_PATH.include? lib
|
||||||
|
|
||||||
require 'bundler/setup'
|
require 'bundler/setup'
|
||||||
|
|
||||||
|
require 'i18n'
|
||||||
require 'repubmark'
|
require 'repubmark'
|
||||||
|
|
||||||
|
I18n.load_path = Dir[
|
||||||
|
Pathname.new(__dir__).join('../vendor/rails-i18n/rails/locale/**/*.yml')
|
||||||
|
].each(&:freeze).freeze
|
||||||
|
|
||||||
config_filename = String(ARGV[0]).freeze
|
config_filename = String(ARGV[0]).freeze
|
||||||
profile = String(ARGV[1]).freeze
|
profile = String(ARGV[1]).freeze
|
||||||
|
|
||||||
|
|
1
vendor/rails-i18n
vendored
Submodule
1
vendor/rails-i18n
vendored
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 10141c451f03d7c6b78cfdcce808c389da6b9ddd
|
Loading…
Reference in a new issue