about summary refs log tree commit diff
path: root/config/i18n-tasks.yml
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-15 23:56:03 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-16 00:55:33 +0100
commit546c4718e781f8900ba6498307ccb1e659de5edd (patch)
treef69b4941a8806cceff656991cffc46c9661654e7 /config/i18n-tasks.yml
parent3ce6ac0ce2e482bc1f2784c3c7f716172b151902 (diff)
Localizations for most server-side strings
Diffstat (limited to 'config/i18n-tasks.yml')
-rw-r--r--config/i18n-tasks.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/config/i18n-tasks.yml b/config/i18n-tasks.yml
new file mode 100644
index 000000000..d345ce6c0
--- /dev/null
+++ b/config/i18n-tasks.yml
@@ -0,0 +1,43 @@
+# i18n-tasks finds and manages missing and unused translations: https://github.com/glebm/i18n-tasks
+
+# The "main" locale.
+base_locale: en
+data:
+  read:
+    - config/locales/%{locale}.yml
+    - config/locales/**/*.%{locale}.yml
+
+  write:
+    - ['{devise, simple_form, doorkeeper}.*', 'config/locales/\1.%{locale}.yml']
+    - config/locales/%{locale}.yml
+
+  yaml:
+    write:
+      line_width: -1
+
+search:
+  paths:
+   - app/
+
+  relative_roots:
+    - app/controllers
+    - app/helpers
+    - app/mailers
+    - app/views
+
+  exclude:
+    - app/assets/images
+    - app/assets/fonts
+    - app/assets/videos
+
+ignore_missing:
+  - '{devise,simple_form}.*'
+
+ignore_unused:
+  - 'activerecord.attributes.*'
+  - '{devise,will_paginate,doorkeeper}.*'
+  - 'simple_form.{yes,no}'
+  - 'simple_form.{placeholders,hints,labels}.*'
+  - 'simple_form.{error_notification,required}.:'
+  - 'errors.messages.*'
+  - 'activerecord.errors.models.doorkeeper/*'