0.3.0 • Published 2 years ago

i18n-ui5 v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

i18n-ui5

The tool to check and synchronize i18n messages file from source code of SAPUI5/OpenUI5 application

The tool searches patterns:

  • __("MSGID")
  • getText("MSGID")
  • "{i18n>MSGID}"
  • "{@i18n>MSGID}"

Then activate/deactivate/add messages in/to i18n.properties file which is used for the translations.

Install

	npm install i18n-ui5

Usage

Check current i18n file if contains all messages from source codes. The i18n file is webapp/i18n/i18n.properties by default.

	npx i18n-ui5 --check

Update i18n file by changes in source code.

	npx i18n-ui5 --replace

Use different destination file

	npx i18n-ui5 --replace --destination i18n.properties

Ignore some i18n tokens

	npx i18n-ui5 --ignore SEMANTIC_CONTROL_SAVE_AS_TILE --ignore SEMANTIC_CONTROL_SAVE

To ignroe more i18n tokens create .i18nignore file in root of your project and add tokens to the file.

SEMANTIC_CONTROL_SAVE_AS_TILE
SEMANTIC_CONTROL_SAVE
0.3.0

2 years ago

0.2.2

2 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago