canvas-lms/gems/i18n_tasks
Jon Jensen 3f36c05513 fix locale fallbacks in JS land, fixes CNVS-29506, refs SD-71
in JS land, if a locale doesn't provide all strings, ensure we fall back
to its ancestor locales (if any) before we try `en`. this already works
correctly in ruby land.

also don't dump empty locales, since this hasn't been necessary since
cd8cd591ac

test plan:
1. run canvas without RAILS_LOAD_ALL_LOCALES or USE_OPTIMIZED_JS
2. switch to spanish
3. you should see english everywhere and not get js errors or missing
   translation messages
4. run canvas with RAILS_LOAD_ALL_LOCALES and USE_OPTIMIZED_JS
5. you should see spanish
6. ensure you have a custom en-GB-* locale per CNVS-29506
7. switch to that locale
8. ensure you see its strings, and en-GB where it doesn't specify any,
   e.g. "colour" in the Theme Editor instead of "color"

Change-Id: I349ef79ca3bb300a83cd45a11cf3b7ffd0fc2cf9
Reviewed-on: https://gerrit.instructure.com/80094
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
2016-05-20 20:56:19 +00:00
..
lib fix locale fallbacks in JS land, fixes CNVS-29506, refs SD-71 2016-05-20 20:56:19 +00:00
spec fix the way lolcalize handles hash arguments 2015-01-07 18:28:32 +00:00
.rspec extract i18n_tasks gem 2014-04-21 03:19:47 +00:00
Gemfile remove rails 3 support 2015-12-23 21:36:43 +00:00
Rakefile extract i18n_tasks gem 2014-04-21 03:19:47 +00:00
i18n_tasks.gemspec allow rails 4.2 on gems that pass specs with it 2015-12-17 22:50:17 +00:00
test.sh simplify gem test harnesses 2016-01-19 17:52:58 +00:00