globeAdding Localization

Adding a New Localization

1) Duplicate the English locale file

Go to: hoff-battlebuddies/locales/

Duplicate en.lua and rename the copy to your new locale code. Example: ch.lua

Important: Don’t change the .lua extension.


2) Edit your new locale file

Open the file you created: hoff-battlebuddies/locales/ch.lua

Replace the English strings with your translated strings (or custom wording). Try to keep the keys the same and only change the values, so nothing breaks.


3) Set the locale in config.lua

Open: hoff-battlebuddies/config.lua

Change Config.Locale to match your new filename without .lua. Example:

Config.Locale = "ch"

4) Test in-game

Restart the server (or restart the resource) so the locale is reloaded.

If you see missing text or errors, it usually means:

  • A key name was changed by accident

  • There’s a missing comma/quote in the locale file

  • Config.Locale doesn’t exactly match the locale filename

Last updated