Skip to content

Localization

Inf2z edited this page May 13, 2026 · 2 revisions

Localization for the Custom Information

To make your custom info accessible to players worldwide, you can use localization keys. This allows the mod to display text in the player's chosen language via a resource pack. All localization keys needed to be added through resourcepack:

(Your Resource Pack)
 ↳ assets
   ↳ rws
     ↳ lang
       ↳ en_us.json

Using Localization Keys in Variables

Instead of using static text, use the following placeholders in your configuration:
Label: %var(number).lang.label%
Format: %var(number).lang.format%
That means localization keys in your .json files will be look like this:

{
    "rws.var(number).label": "",
    "rws.var(number).format": ""
}

Example

You want to create a Zombies Killed counter using variable #3. Then set it up like this:
Label: %var3.lang.label%
Format: %var% %var3.lang.format%
In your en_us.json file:

{
    "rws.var3.label": "Killed",
    "rws.var3.format": "zombies"
}

Clone this wiki locally