]> git.openstreetmap.org Git - rails.git/blobdiff - config/i18n-js.yml
Merge remote-tracking branch 'upstream/pull/4717'
[rails.git] / config / i18n-js.yml
index f80b142c5e9cfc7e3fb9f7b25cc80cd7deeede12..b7f3b4dbcbae8c6b03e211c0827daceb05fbe163 100644 (file)
@@ -1,29 +1,20 @@
-# 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: "*"
-#
+export_i18n_js: false
+
 translations:
 translations:
-  - file: "app/assets/javascripts/i18n/translations.js"
+  - file: "app/assets/javascripts/i18n/%{locale}.js"
+    pretty_print: true
     only:
     only:
+    - "*.date"
+    - "*.time"
     - "*.browse.start_rjs.*"
     - "*.browse.start_rjs.*"
-    - "*.export.start_rjs.*"
     - "*.javascripts.*"
     - "*.javascripts.*"
+    - "*.site.edit.*"
     - "*.site.index.remote_failed"
     - "*.site.index.remote_failed"
+    - "*.site.sidebar.search_results"
+    - "*.diary_entries.edit.marker_text"
+    - "*.layouts.project_name.title"
+    - "*.geocoder.search_osm_nominatim.*"
+  - file: "app/assets/javascripts/i18n/embed.js"
+    pretty_print: true
+    only:
+    - "*.javascripts.embed.*"