Guides
Localization
As of rHUD v1.5.0, all text in rHUD can be localized to different languages.
Locale files are stored in rhud/locale as JSON files. By default rHUD is localized to English (en-US.json).
Using a Different Locale
To use a different locale, change the general > locale option in the config.lua file to the name of the locale file you want to use.
For example, if you have a locale file named de-DE.json, the locale option should be set to 'de-DE'.
Translating rHUD
To translate rHUD to a different language, follow these steps:
- Copy and Rename the Locale File
Make a copy ofen-US.jsonwithin therhud/localefolder and rename it to a locale code of the language you are translating to.1 - Translate the Values, not the Keys
The contents of the locale file is a JSON object containing key-value pairs. Translate only the values; the keys must remain the same. - Edit the Config File
To use the translated locale, change thegeneral > localeoption in theconfig.luafile to the name of the locale file you just created, but without the.jsonextension.
Refer to the example in Using a Different Locale.
Footnotes
-
Renaming the file to a locale code is not required, but recommended for consistency. ↩