diff options
author | beatrix <beatrix.bitrot@gmail.com> | 2017-12-10 15:41:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-10 15:41:22 -0500 |
commit | 26c9b9fa276fd629789fd06f65a5d698b182f67a (patch) | |
tree | 8480daa3428db3a2443ba45949a4182481e5ec16 /config/initializers | |
parent | 282f48ddd1868fcd8fa2887bbaf13036c949c22d (diff) | |
parent | 64b839b76907e87c57d71762a81a9a8660f1df83 (diff) |
Merge pull request #246 from glitch-soc/theme-intl8n
Internationalization for flavours and skins
Diffstat (limited to 'config/initializers')
-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] |