Project

General

Profile

Refactor #17263

move javascript JED / i18n translations code to webpack

Added by Ohad Levy about 2 years ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internationalization
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

currently its not possible to use the __ function within webpack code.
While its possible to use the function on a browser (which loads the function via the asset pipeline), its not possible to execute tests against code that uses that (as its not defined).

Another point to ensure is that new strings that are introduced within webpack ES6 code are extracted.


Related issues

Related to Foreman - Bug #18213: Strings are not extracted from webpack folders.Closed2017-01-24
Related to Katello - Bug #25135: use i18n from webpackClosed

Associated revisions

Revision 60e4da4c (diff)
Added by Amir Fefer 2 months ago

Fixes #17263 - move jed (i18n) to webpack

History

#1 Updated by Dominic Cleal about 2 years ago

  • Category set to Internationalization

#2 Updated by Tomer Brisker almost 2 years ago

  • Related to Bug #18213: Strings are not extracted from webpack folders. added

#3 Updated by The Foreman Bot 9 months ago

  • Assignee set to Amir Fefer
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5342 added

#4 Updated by Ohad Levy 2 months ago

  • Target version set to 1.20.0
  • Fixed in Releases 1.20.0 added

#5 Updated by Amir Fefer 2 months ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Justin Sherrill 2 months ago

  • Related to Bug #25135: use i18n from webpack added

Also available in: Atom PDF