Implement localization

This commit is contained in:
Alex Kotov 2024-09-12 02:57:20 +04:00
parent b9543d846d
commit 03c4eca9b0
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
5 changed files with 15 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/Gemfile.lock

3
.gitmodules vendored Normal file
View 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
View file

@ -0,0 +1,5 @@
# frozen_string_literal: true
source 'https://rubygems.org'
gem 'i18n', '~> 1.14'

View file

@ -6,8 +6,13 @@ $LOAD_PATH.unshift lib unless $LOAD_PATH.include? lib
require 'bundler/setup'
require 'i18n'
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
profile = String(ARGV[1]).freeze

1
vendor/rails-i18n vendored Submodule

@ -0,0 +1 @@
Subproject commit 10141c451f03d7c6b78cfdcce808c389da6b9ddd