Only include embed related messages in the embed javascript
authorTom Hughes <tom@compton.nu>
Tue, 28 Aug 2018 17:02:32 +0000 (18:02 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 28 Aug 2018 17:02:32 +0000 (18:02 +0100)
app/assets/javascripts/embed.js.erb
config/i18n-js.yml

index 15839a2..36b2366 100644 (file)
@@ -1,6 +1,7 @@
 //= require leaflet
 //= require leaflet.osm
-//= require i18n/translations
+//= require i18n
+//= require i18n/embed
 
 window.onload = function () {
   if (navigator.languages) {
index 0697bfe..fa97034 100644 (file)
@@ -14,3 +14,7 @@ translations:
     - "*.diary_entry.edit.marker_text"
     - "*.layouts.project_name.title"
     - "*.geocoder.search_osm_nominatim.*"
+  - file: "app/assets/javascripts/i18n/embed.js"
+    pretty_print: true
+    only:
+    - "*.javascripts.embed.*"