-
Notifications
You must be signed in to change notification settings - Fork 1
CommandExtractTranslations
hso-d365 extractTranslations
hso-d365 extract
You project crm.json file contains a setting for translation:
- 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.
- 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.
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.
Use command
hso-d365 extractTranslations --help
hso-d365 extract