menu_bookDocumentation
Localization: Multi-Language Token System for UI Text
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
| Language | Code |
|---|---|
| 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 |
| Polish | pl |
| Turkish | tr |
| Italian | it |
| Dutch | nl |
| Swedish | sv |
| Arabic | ar |
| Ukrainian | uk |
| Czech | cs |
| Finnish | fi |
| Norwegian | no |
| Thai | th |
| Vietnamese | vn |
| Pirate | en-pt |
Was this helpful?