game_locale
Set or get the active locale and translate string keys at runtime for on-the-fly language switching in Godot.
Instructions
Set/get locale and translate strings at runtime
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "game_locale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Translation key (for translate) | |
| action | Yes | Action: get, set, translate | |
| locale | No | Locale code (e.g. en, es, fr) |