Merge remote-tracking branch 'origin/locale'
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
This is the branch for new locale changes to Rankup.
|
This is the branch for new locale changes to Rankup.
|
||||||
Locale names are in ISO-639-1 and are in the folder [`src/main/resources/locale`](https://github.com/okx-code/Rankup3/tree/locale/src/main/resources/locale)
|
Locale names are in ISO-639-1 and are in the folder [`src/main/resources/locale`](https://github.com/okx-code/Rankup3/tree/locale/src/main/resources/locale)
|
||||||
|
|
||||||
When a locale is added, it should be saved [here](https://github.com/okx-code/Rankup3/blob/locale/src/main/java/sh/okx/rankup/Rankup.java#L193), ie through adding a line such as `saveLocale("es");`
|
When a locale is added, it should be saved [here](https://github.com/okx-code/Rankup3/blob/locale/src/main/java/sh/okx/rankup/Rankup.java#L201), ie through adding a line such as `saveLocale("es");`. However, I can do it if you forget.
|
||||||
|
|
||||||
You can use the [English](https://github.com/okx-code/Rankup3/blob/locale/src/main/resources/locale/en.yml) locale to help translate.
|
You can use the [English](https://github.com/okx-code/Rankup3/blob/locale/src/main/resources/locale/en.yml) locale to help translate.
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
files:
|
||||||
|
- source: src/main/resources/locale/en.yml
|
||||||
|
translation: src/main/resources/locale/%two_letters_code%.yml
|
||||||
Reference in New Issue
Block a user