Allow for the creation and management of organization records (UXPROD-1139)

[UIPFCONT-18] Compile Translation Files into AST Format Created: 09/Apr/21  Updated: 28/May/21  Resolved: 28/May/21

Status: Closed
Project: ui-plugin-find-contact
Components: None
Affects versions: None
Fix versions: 2.4.0
Parent: Allow for the creation and management of organization records

Type: Task Priority: P3
Reporter: Zak Burke Assignee: Andrei Shumski
Resolution: Done Votes: 0
Labels: ui-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Relates
relates to STCLI-158 compile translation files to AST for ... Closed
Sprint: ACQ Sprint 115
Story Points: 0
Development Team: Thunderjet
Epic Link: Allow for the creation and management of organization records

 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 Peter Murray 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.


Generated at Thu Feb 08 22:17:20 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.