Project

General

Profile

Actions

Bug #25523

closed

make i18n js code more resilient to errors

Added by Tomer Brisker almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JavaScript stack
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

in case window.locale doesn't contain the needed locale, JED initialization fails with an error and all js code fails to load.
Offending line: https://github.com/theforeman/foreman/blob/develop/webpack/assets/javascripts/react_app/common/I18n.js#L15


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #25517: Debian packages don't build localized js filesClosedActions
Actions

Also available in: Atom PDF