Project

General

Profile

Actions

Bug #25523

closed

make i18n js code more resilient to errors

Added by Tomer Brisker about 6 years ago. Updated about 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 #1

Updated by The Foreman Bot about 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Tomer Brisker
  • Pull request https://github.com/theforeman/foreman/pull/6268 added
Actions #2

Updated by Tomer Brisker about 6 years ago

  • Related to Bug #25517: Debian packages don't build localized js files added
Actions #3

Updated by Tomer Brisker about 6 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Tomer Brisker about 6 years ago

  • Fixed in Releases 1.21.0 added
Actions #5

Updated by Tomer Brisker about 6 years ago

  • Fixed in Releases 1.20.1 added
Actions

Also available in: Atom PDF