Compile Translation Files into AST Format

Description

Overview:
Steps to Implement (See ui-plugin-find-user PR for example):

  • Add @formatjs/cli as a dev-dep

    yarn add -D @formatjs/cli
  • Add the following command to package.json with (replacing <ui-module-name> with your module name):

    "formatjs-compile": "formatjs compile-folder --ast --format simple ./translations/<ui-module-name> ./translations/<ui-module-name>/compiled"
  • Run the command 

    yarn formatjs-compile

    If there are any errors, contact to let him know of the error and he will work with Lokalise to get the files corrected. After Lokalise corrects files, update your branch from master.

  • Modify Jenkinsfile to run formatjs-compile under runScripts section:

    runScripts = [ ['formatjs-compile': ''], ]

See https://github.com/folio-org/stripes/blob/master/doc/dev-guide.md#pre-compiling-translations-into-ast-format for reference.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:
Andrei Shumski
changed the StatusMay 27, 2021 at 10:30 AM
In Review
Closed
Andrei Shumski
updated the ResolutionMay 27, 2021 at 10:30 AM
None
Done
Andrei Shumski
updated the Fix versionsMay 27, 2021 at 7:35 AM
None
2.4.0
Andrei Shumski
changed the StatusMay 27, 2021 at 7:35 AM
In Code Review
In Review
Andrei Shumski
changed the StatusMay 27, 2021 at 6:49 AM
In Progress
In Code Review
Andrei Shumski
changed the StatusMay 26, 2021 at 1:10 PM
Open
In Progress
Andrei Shumski
changed the AssigneeMay 26, 2021 at 1:10 PM
Unassigned
Andrei Shumski
Victoria_Smelova
updated the RankMay 15, 2021 at 9:39 AM
None
Ranked lower
Victoria_Smelova
updated the SprintMay 15, 2021 at 9:39 AM
None
ACQ Sprint 115
Mikita Siadykh
updated the Story PointsMay 13, 2021 at 9:57 AM
None
1
Ann-Marie Breaux
updated the Epic LinkApril 16, 2021 at 9:21 AM
None
UXPROD-1141
Khalilah Gambrell
updated the LabelsApril 12, 2021 at 9:37 PM
None
ui-only
Khalilah Gambrell
updated the Development TeamApril 12, 2021 at 9:37 PM
None
Thunderjet
Khalilah Gambrell
changed the PriorityApril 12, 2021 at 9:37 PM
TBD
P3
Zak Burke
updated the Linked IssuesApril 9, 2021 at 4:32 PM
None
This issue relates to STCLI-158
Zak Burke
created the IssueApril 9, 2021 at 4:32 PM
Done

Details

Assignee

Reporter

Labels

Priority

Story Points

Sprint

Development Team

Thunderjet

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created April 9, 2021 at 4:32 PM
Updated May 27, 2021 at 10:30 AM
Resolved May 27, 2021 at 10:30 AM
TestRail: Cases
TestRail: Runs

Flag notifications