]> git.openstreetmap.org Git - rails.git/blobdiff - config/i18n-js.yml
Switch to using i18n-js for handling translations in javascript
[rails.git] / config / i18n-js.yml
diff --git a/config/i18n-js.yml b/config/i18n-js.yml
new file mode 100644 (file)
index 0000000..261fb6c
--- /dev/null
@@ -0,0 +1,28 @@
+# Split context in several files.
+# By default only one file with all translations is exported and
+# no configuration is required. Your settings for asset pipeline
+# are automatically recognized.
+#
+# If you want to split translations into several files or specify
+# locale contexts that will be exported, just use this file to do
+# so.
+#
+# If you're going to use the Rails 3.1 asset pipeline, change
+# the following configuration to something like this:
+#
+#   translations:
+#     - file: "app/assets/javascripts/i18n/translations.js"
+#
+# If you're running an old version, you can use something
+# like this:
+#
+#   translations:
+#     - file: "public/javascripts/translations.js"
+#       only: "*"
+#
+translations:
+  - file: "app/assets/javascripts/i18n/translations.js"
+    only:
+    - "*.browse.start_rjs.*"
+    - "*.export.start_rjs.*"
+    - "*.javascripts.*"