localization_manage
Manage Godot localization CSV workflows: scaffold translation files, add or update entries, switch locales, test translations, and extract tr() strings from project files.
Instructions
Godot TranslationServer Localization and CSV Translation Workflows.
Ops:
scaffold_csv(path="res://localization.csv", languages=["en", "es", "fr", "de", "ja", "zh"]) Generate a starter localization CSV file and register it in ProjectSettings.
add_entry(path="res://localization.csv", key="ui_start", translations={"en": "Start", "es": "Iniciar"}) Add or update a translation string row in the project's localization CSV.
get_locales() Query loaded locales, active locale, and translation settings from TranslationServer.
set_locale(locale="es") Switch the active test locale in TranslationServer.
translate(message="ui_start", context="") Test and evaluate translation string resolution via TranslationServer.
extract_strings(root_dir="res://") Scan project GDScript and scene files for tr() message lookup occurrences.
Canonical call shape: {"op": "<verb>", "params": {...}}. Flat op parameters are accepted as a compatibility alias when the client transmits them; op and session_id remain top-level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| params | No | ||
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||