From f0f9662957d5f5639126b82ed682e4a5de4bd27c Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Mon, 23 Jul 2018 16:16:04 +1000 Subject: [PATCH] Update gem i18n-js to pick up locale changes We had some problems recently with changes in en.yml not being picked up by i18n-js to be included in all.js. There have been some patches for the current version that have an impact on that: https://github.com/fnando/i18n-js/commit/578555f57ece1cf226ef004118e60738502b859a https://github.com/fnando/i18n-js/commit/db3cdf82aaa33a0be558214d82e89a27204380a4 https://github.com/fnando/i18n-js/commit/a88b206644a14b0de7bbb58e0ba1baab93737a8e Trying it out locally, the updated i18n-js gem works while the old version doesn't update the Javascript translations when new keys are added. To reproduce the issue, you can add a new key in `en.yml` and reference it from an Angular template in `app/assets/javascripts/`. The old version complained about a missing translation until you ran: ``` bundle exec rake tmp:cache:clear ``` We don't need to do that any more. --- Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 3002dd93aa..dac1b3d220 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -439,8 +439,8 @@ GEM multi_json (~> 1.0) multi_xml i18n (0.6.11) - i18n-js (3.0.0) - i18n (~> 0.6, >= 0.6.6) + i18n-js (3.0.11) + i18n (>= 0.6.6, < 2) immigrant (0.1.6) activerecord (>= 3.0) foreigner (>= 1.2.1)