build
folder contains shell scripts for building and running the application with args.properties
configuration file.
The application first has to be built to be able to run.
# 1. Position CLI to a desired folder for cloning and proceed...
# 2. Clone the repository
git clone git@github.com:brunotot/spring-boot-i18n-formatter.git
# 3. Position CLI to the dedicated build folder in the project
cd spring-boot-i18n-formatter/build
# 4. Build the project with dependencies
sh build.sh
# 5. Make sure to configure app arguments in args.properties
# 6. Start
sh run.sh
Key | Type | Default | Example | Required |
---|---|---|---|---|
core | String |
null |
/home/crorisvanjski4/Desktop/dev /core/src/main/resources/i18n-core |
✔️ |
path | String |
null |
/home/crorisvanjski4/Desktop/dev /croris-ppg/src/main/resources/i18n |
✔️ |
removeIfKeyNotInUse | boolean |
false |
true | ❌ |
removeIfKeyExistsInCore | boolean |
true |
true | ❌ |
applyChangesOnDisk | boolean |
true |
true | ❌ |
Output can contain 6 types of data for each of the existing languages.
KEY_IN_CORE
- Key already exists in Core app.KEY_NOT_IN_USE
- Key is not in use.VALUE_EMPTY
- Translation is empty.WRONG_LANGUAGE_TRANSLATION
- Entry language is not the same as the entry file's language.KEY_MISSING
- Translation key is missing in some of the messages_*.properties files.DUPLICATE_VALUES
- Translation is duplicating on multiple keys.