Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-9436

Load only needed locale for moment.js

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6-M1, 6.6
    • Component/s: Web
    • Labels:

      Description

      Currently moment.js is loading all possible locale data for all available languages. This is a huge overkill, because all data takes 56kb (gzipped).

      Instead we should load and manually set the current effective locale, the same one which is used to localize messages.

        Attachments

          Activity

            People

            Assignee:
            gregoire.aubert Gregoire Aubert
            Reporter:
            stas.vilchik Stas Vilchik (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: