Uploaded image for project: 'ui-tenant-settings'
  1. ui-tenant-settings
  2. UITEN-171

Compile Translation Files into AST Format

    XMLWordPrintable

    Details

    • Template:
    • Development Team:
      None

      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.

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                zburke Zak_Burke
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    TestRail: Runs

                      TestRail: Cases