Try to use i18n in your project.
- Support multiple languages
- Support error message with I18n
- Support message key with Redis, or file, or cache
<dependency>
<groupId>com.nduyhai</groupId>
<artifactId>i18n-spring-boot-starter</artifactId>
<version>0.0.7</version>
</dependency>
<dependency>
<groupId>com.nduyhai</groupId>
<artifactId>i18n-redis-spring-boot-starter</artifactId>
<version>0.0.7</version>
</dependency>
<dependency>
<groupId>com.nduyhai</groupId>
<artifactId>i18n-cache-spring-boot-starter</artifactId>
<version>0.0.7</version>
</dependency>
Since GitHub Packages require authentication, it's best to configure it in your Maven settings.xml file.
Open or create the file:
Global: ~/.m2/settings.xml (for all projects) Project-specific: /settings.xml Add your GitHub credentials:
<servers>
<server>
<id>github</id>
<username>YOUR_GITHUB_USERNAME</username>
<password>YOUR_PERSONAL_ACCESS_TOKEN</password>
</server>
</servers>
Replace YOUR_GITHUB_USERNAME with your GitHub username. Replace YOUR_PERSONAL_ACCESS_TOKEN with a GitHub personal access token (PAT). It must have the read:packages scope.