compile translation files to AST for efficiency
Description
Environment
None
Potential Workaround
None
clones
is cloned by
relates to
Checklist
hideTestRail: Results
Activity
Show:
Done
Details
Details
Assignee
Reporter
Priority
Story Points
1
Sprint
None
Development Team
Stripes Force
Fix versions
Release
Poppy (R2 2023)
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created May 8, 2023 at 7:18 PM
Updated October 11, 2023 at 7:55 PM
Resolved May 12, 2023 at 7:51 PM
Overview:
Steps to Implement (See ui-plugin-find-user PR for example):
Add
@formatjs/cli
as a dev-depAdd the following command to package.json with (replacing <ui-module-name> with your module name):
Run the command
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
.github/workflows/build-npm-*.yml
to runformatjs-compile
. In theenv
section near the top add:and after the "Run yarn test" step add a compile-translations step:
See https://github.com/folio-org/stripes/blob/master/doc/dev-guide.md#pre-compiling-translations-into-ast-format for reference.