compile translation files to AST for efficiency

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.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:
Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Stripes Force

Fix versions

Release

Poppy (R2 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created May 12, 2023 at 1:52 PM
Updated October 12, 2023 at 12:41 AM
Resolved May 16, 2023 at 3:44 AM
TestRail: Cases
TestRail: Runs

Flag notifications