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 15839a2ecbc4af23102a608c0804a4b988d92916..36b23666a92f8ebe61481ba8d508d014a76b60bf 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 0697bfe2ed8564766a4c1771f3224359aef38af8..fa970345f8992064002b761b6e2cfadf5d7e0912 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.*"