Strings
Text by key and language. A record is { "en": "text", "fr": "texte" }; the key is the id. The file strings/<lang>.json is shorthand: { "key": "text" } for that language. Text fields elsewhere point here with "@key". The game reads English only for now.
patchaddreplaceremove
| File | data/strings.json |
| Ids | pattern ^[%w_%.%-]+$ |
Fields
Section titled “Fields”| Field | Type | Range | Example | What it does |
|---|---|---|---|---|
<lang> |
text | 1 to 400 characters | Any language code (en, pt-br…) maps to text. |
Add text
Section titled “Add text”{ "flare.landed": "FLARE %d LANDED", "flare.name": "Solar Flare"}Point a text field at a key with "@flare.name". Read a key from Luau with mod.text("flare.landed", 3).