menu_bookDocumentation

Localization: Multi-Language Token System for UI Text

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

s&box supports localization via JSON token files. Any displayed string beginning with # is treated as a localization token and automatically replaced with the user's language value.

Token Format

In UI, prefix strings with # to trigger localization lookup:

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

Localization Files

Place JSON files at Localization/{language_code}/{project}.json:

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

File path example: Localization/en/sandbox.json

Supported Languages

LanguageCode
Englishen
Frenchfr
Germande
Spanishes
Portuguese-Brazilpt-br
Russianru
Japaneseja
Koreanko
Simplified Chinesezh-cn
Traditional Chinesezh-tw
Polishpl
Turkishtr
Italianit
Dutchnl
Swedishsv
Arabicar
Ukrainianuk
Czechcs
Finnishfi
Norwegianno
Thaith
Vietnamesevn
Pirateen-pt
The system automatically selects the correct language file based on the user's Steam language setting. If a token is missing from the user's language, it falls back to the English value.
Was this helpful?