menu_bookDocumentation

Localization: Token-Based Multi-Language UI Text in s&box

calendar_today May 20, 2026 schedule ~1 min read person PatrickJr verified 50

s&box supports localization through token-based string replacement. Any displayed string beginning with # is recognized as a localization token and replaced with the corresponding value from the user's language file.

Token Format

In s&box Razor UI, use tokens prefixed with #:

MARKUP
<label>#spawnmenu.props</label>

Language Files

Create JSON files in Localization/{language-code}/ directory:

Filename: Localization/en/sandbox.json

JSON
{
    "menu.helloworld": "Hello World",
    "spawnmenu.props": "Models",
    "spawnmenu.tools": "Tools",
    "spawnmenu.cloud": "sbox.game"
}

Supported Languages

s&box supports 30 languages including: English (en), French (fr), German (de), Spanish (es), Portuguese-Brazil (pt-br), Russian (ru), Japanese (ja), Korean (ko), Simplified Chinese (zh-cn), Traditional Chinese (zh-tw), Arabic (ar), Polish (pl), Turkish (tr), Italian (it), Dutch (nl), Swedish (sv), Finnish (fi), Norwegian (no), Danish (da), Czech (cs), Hungarian (hu), Romanian (ro), Bulgarian (bg), Greek (el), Thai (th), Ukrainian (uk), Vietnamese (vn), and Pirate English (en-pt).

The system automatically selects the correct language file based on the user's Steam language setting.

Was this helpful?