about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorkibigo! <marrus-sh@users.noreply.github.com>2017-12-07 14:42:21 -0800
committerkibigo! <marrus-sh@users.noreply.github.com>2017-12-10 11:08:04 -0800
commitd08d0f9f3335b2edbacf1febd4584eed9a7d1a11 (patch)
tree7a3317d8a641b5e800460f1b7e759f4aec8d24cd /config/initializers
parent282f48ddd1868fcd8fa2887bbaf13036c949c22d (diff)
Ruby intl8n for themes
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/locale.rb6
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]