Project

General

Profile

Refactor #14318

Only load JS translation table for current locale

Added by Dominic Cleal almost 5 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

As described in #12944 comments, the Javascript locale lookup tables from app/assets/javascripts/locale/ for gettext_i18n_rails_js are large as they are loaded for all languages.

These could be loaded only for the locale that the page is rendered with, and the files could be precompiled separately.


Related issues

Related to Foreman - Tracker #12944: application assets are too largeNew2015-12-27

Associated revisions

Revision bf8c7fbd (diff)
Added by Dominic Cleal almost 5 years ago

fixes #14318 - load JS translations table for current locale only

History

#1 Updated by Dominic Cleal almost 5 years ago

#2 Updated by The Foreman Bot almost 5 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3358 added

#3 Updated by Dominic Cleal almost 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Dominic Cleal almost 5 years ago

  • Legacy Backlogs Release (now unused) set to 136

Also available in: Atom PDF