Skip to content

CommandExtractTranslations

Niels Steenbeek edited this page Apr 3, 2020 · 7 revisions

CLI Command extractTranslations

Command

hso-d365 extractTranslations
hso-d365 extract

Configuration

You project crm.json file contains a setting for translation:

  1. resx (default)

This one is recommended since it uses Xrm.Utility.getResourceString under the hood. When running the extractTranslations command a src/translation/locales/locales.resx file will be generated if not there. Please duplicate and rename for each required language to filenames like locales.1033.resx. When running the extractTranslations command again, all resx file keys will be updated.

  1. i18n

The created project contains a i18next-scanner.config.js file for specifying required translations. When running the extractTranslation command a src/translation/locales/{LCID}.json file will be generated for every language. See i18next-scanner for more information about i18n.

Description

CLI Command 'extractTranslations' extracts all translation from project TypeScript files. The TypeScript files using translations, needs to specify all translation files as dependencies. The Deploy command will do this job for you.

Help

Use command

hso-d365 extractTranslations --help

Examples

hso-d365 extract
Clone this wiki locally