aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorThomas Haddad2017-05-03 17:28:42 +0200
committerThomas Haddad2017-05-03 17:28:42 +0200
commitfdff8db191dbda598406392ccfdde251318d7140 (patch)
tree243aa8657b1ca7e63dd43aa76c5aab0b50af3a45 /app/views
parent9c1ce95c49b7410bd5e28ec13f9a8ed86b75dbc8 (diff)
downloadchouette-core-fdff8db191dbda598406392ccfdde251318d7140.tar.bz2
Refs #3284: use I18n for transport_(sub)mode in vj edit
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
Diffstat (limited to 'app/views')
-rw-r--r--app/views/vehicle_journeys/index.html.slim3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/vehicle_journeys/index.html.slim b/app/views/vehicle_journeys/index.html.slim
index 92bc3951a..38e07ad82 100644
--- a/app/views/vehicle_journeys/index.html.slim
+++ b/app/views/vehicle_journeys/index.html.slim
@@ -19,6 +19,7 @@
| window.vehicleJourneysLength = #{@vehicle_journeys.total_entries()};
| window.vehicleJourneysPerPage = #{@ppage};
| window.line_footnotes = #{raw @footnotes};
- | window.perms = #{raw @perms}
+ | window.perms = #{raw @perms};
+ | window.I18n = #{(I18n.backend.send(:translations).to_json).html_safe};
= javascript_include_tag 'es6_browserified/vehicle_journeys/index.js'