diff options
author | ncls7615 <himasoto@gmail.com> | 2017-12-11 09:43:21 +0900 |
---|---|---|
committer | ncls7615 <himasoto@gmail.com> | 2017-12-11 09:43:21 +0900 |
commit | a98b0a47ef19f587da60907b68c5c5edfde432a0 (patch) | |
tree | 50a37fa1dc6aafb1210a441dd989605a646d3e21 /config/initializers/locale.rb | |
parent | 0e567977923f2e7827192da0990d529859033f1a (diff) | |
parent | 26c9b9fa276fd629789fd06f65a5d698b182f67a (diff) |
Merge branch 'master' of https://github.com/glitch-soc/mastodon into glitch-langfiles
# Conflicts: # app/javascript/glitch/locales/ja.json
Diffstat (limited to 'config/initializers/locale.rb')
-rw-r--r-- | config/initializers/locale.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/initializers/locale.rb b/config/initializers/locale.rb new file mode 100644 index 000000000..04ed31646 --- /dev/null +++ b/config/initializers/locale.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true + +I18n.load_path += Dir[Rails.root.join('app', 'javascript', 'flavours', '*', 'names.{rb,yml}').to_s] +I18n.load_path += Dir[Rails.root.join('app', 'javascript', 'flavours', '*', 'names', '*.{rb,yml}').to_s] +I18n.load_path += Dir[Rails.root.join('app', 'javascript', 'skins', '*', '*', 'names.{rb,yml}').to_s] +I18n.load_path += Dir[Rails.root.join('app', 'javascript', 'skins', '*', '*', 'names', '*.{rb,yml}').to_s] |