Skip to content

🏃 Java Spring Boot i18n message_*.properties formatter application for microservice Spring Boot projects 🏃

Notifications You must be signed in to change notification settings

brunotot/spring-boot-i18n-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-i18n-formatter

Build and run

Summary

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.

Steps for starting the application

# 1. Position CLI to a desired folder for cloning and proceed...

# 2. Clone the repository
git clone [email protected]: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

Command line params list

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

Output can contain 6 types of data for each of the existing languages.

  1. KEY_IN_CORE - Key already exists in Core app.
  2. KEY_NOT_IN_USE - Key is not in use.
  3. VALUE_EMPTY - Translation is empty.
  4. WRONG_LANGUAGE_TRANSLATION - Entry language is not the same as the entry file's language.
  5. KEY_MISSING - Translation key is missing in some of the messages_*.properties files.
  6. DUPLICATE_VALUES - Translation is duplicating on multiple keys.

About

🏃 Java Spring Boot i18n message_*.properties formatter application for microservice Spring Boot projects 🏃

Topics

Resources

Stars

Watchers

Forks