I18n using regions is not working
Specifying a region when adding a new language doesn't work as expected:
Creating the locale as described in our docs creates the folder, but not the mentioned files.
Doing this with the region capitalized does work as expected: bundle exec rake 'gettext:add_language[zh_CN]'
, adding the language to Gitlab::I18n::AVAILABLE_LANGUAGES
should use the same capitalization.
When using a translation like this, the cycle analytics page doesn't render
When opening the cycle analytics page we see the following error.
Uncaught TypeError: Cannot read property 'domain' of undefined
at new Jed (eval at ../../../node_modules/jed/jed.js (locale.bundle.js:6), <anonymous>:107:17)
at eval (eval at ./locale/index.js (locale.bundle.js:42), <anonymous>:31:14)
at Object../locale/index.js (locale.bundle.js:42)
at __webpack_require__ (runtime.bundle.js:53)
at Object.21 (locale.bundle.js:50)
at __webpack_require__ (runtime.bundle.js:53)
at webpackJsonpCallback (runtime.bundle.js:24)
at locale.bundle.js:1