Add translation guide to CONTRIBUTING.md

This commit is contained in:
jermanuts 2025-07-03 16:45:29 +02:00 committed by GitHub
parent c6ef499ced
commit 19d4df8b2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,4 +20,14 @@ When you have something new built for Haveno, submit a pull request for review t
## Developer guide
See the [developer guide](developer-guide.md) to get started developing Haveno.
See the [developer guide](developer-guide.md) to get started developing Haveno.
## Translation
Existing translation files are in [core/src/main/resources/i18n/](/core/src/main/resources/i18n/), feel free to update or improve them if needed.
To add a new locale translations, follow these steps:
- Add your [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) standard country language code to [core/src/main/java/haveno/core/locale/LanguageUtil.java](/core/src/main/java/haveno/core/locale/LanguageUtil.java) and remove it from "// not translated yet" if it is there.
- Copy [displayStrings.properties](/core/src/main/resources/i18n/displayStrings.properties), create new file in [core/src/main/resources/i18n/](/core/src/main/resources/i18n/) in this format: `displayStrings_[insertLocaleName].properties` and then add translations.