Saltar al contenido principal

Kit loc

25 herramientas. Generado a partir del código fuente del plugin; no lo edites a mano.

Las descripciones de las herramientas y de los argumentos se muestran en inglés porque reflejan el schema de las herramientas (el mismo texto que el agente recibe en tools/list).

Herramientas​

Leyenda. riesgo 0 = solo lectura, 1 = operación inofensiva del editor, 2 = modifica un asset, 3 = elimina/reemplaza un asset, 4 = proyecto/configuración/build, 5 = potencialmente destructivo (las llamadas por encima de MaxAutoRisk requieren "_confirm": true). modifica = se ejecuta en una transacción (edit.undo la revierte). requiere PIE / requiere mundo = se rechaza sin una sesión PIE / sin un nivel abierto. requiere el plugin = no disponible cuando el plugin está desactivado. dryRun = acepta el argumento dryRun. smoke = cubierto por edit.self_test.

loc.add_culture (riesgo 4, modifica, smoke)​

Sin descripción.

ArgumentoTipoDescripción
culturestringobligatorio. ICU culture name such as fr, ja, pt-BR.

Devuelve: target, warnings.

loc.audit_string_table (riesgo 0, smoke)​

Sin descripción.

ArgumentoTipoDescripción
assetstringobligatorio. StringTable asset reference.
limitintegerReturn at most this many duplicate/blank findings. Valor predeterminado 100.

Devuelve: table, warnings.

loc.audit_string_tables (riesgo 0, smoke)​

Sin descripción.

ArgumentoTipoDescripción
folderstringContent root to scan. Valor predeterminado TEXT("/Game").
recursivebooleanInclude StringTables below Folder. Valor predeterminado true.
limitintegerMaximum returned assets. Valor predeterminado 200.

loc.compile_status (riesgo 0, smoke)​

Sin descripción.

ArgumentoTipoDescripción
targetstringobligatorio. Localization target name.

Devuelve: target, root, manifestExists, archiveExists, locresCultures, missingCultures, notes.

loc.create_string_table (riesgo 2, modifica, smoke)​

Creates a StringTable asset with an optional namespace and initial key -> source entries; returns the entries.

ArgumentoTipoDescripción
folderstringobligatorio. Content folder, e.g. /Game/Localization.
namestringobligatorio. Asset name, e.g. ST_UI.
namespacestringText namespace of the table; empty keeps the engine default (the table id).
entriesarray of UeaKeyValueInitial entries: key -> source string.

Devuelve: asset, entries, count, tables, count, totalEntries, totalBlankSources.

loc.create_target (riesgo 4, modifica, smoke)​

Sin descripción.

ArgumentoTipoDescripción
targetstringobligatorio. New localization target name.
nativeCulturestringobligatorio. Native culture such as en, en-US, pt-BR.
persistbooleanSave the localization settings config after the edit; false keeps the change in memory only (undoable, lost on restart). Valor predeterminado true.

Devuelve: target, warnings.

loc.duplicate_string_table (riesgo 2, modifica, smoke)​

Duplicates a StringTable asset (new table id = new asset path); returns the copy's entries.

ArgumentoTipoDescripción
assetstringobligatorio. Source StringTable asset reference.
newNamestringobligatorio. New asset name.
folderstringDestination folder; empty uses the source folder.

Devuelve: asset, entries, count, tables, count, totalEntries, totalBlankSources.

loc.gather_status (riesgo 0, smoke)​

Sin descripción.

ArgumentoTipoDescripción
targetstringobligatorio. Localization target name.

Devuelve: target, root, manifestExists, archiveExists, locresCultures, missingCultures, notes.

loc.get_target (riesgo 0, smoke)​

Sin descripción.

ArgumentoTipoDescripción
targetstringobligatorio. Localization target name.

Devuelve: target, warnings.

loc.list_string_tables (riesgo 0, smoke)​

Sin descripción.

ArgumentoTipoDescripción
folderstringContent root to scan. Valor predeterminado TEXT("/Game").
recursivebooleanInclude StringTables below Folder. Valor predeterminado true.
limitintegerMaximum returned assets. Valor predeterminado 200.

loc.list_targets (riesgo 0, smoke)​

Sin descripción.

ArgumentoTipoDescripción
scopestring"game" (default) edits the project target set; "engine" is read-only. Valor predeterminado TEXT("game").

Devuelve: targets, count.

loc.remove_culture (riesgo 4, modifica, destructivo, smoke)​

Sin descripción.

ArgumentoTipoDescripción
culturestringobligatorio. ICU culture name such as fr, ja, pt-BR.

Devuelve: target, warnings.

loc.remove_target (riesgo 4, modifica, destructivo, smoke)​

Sin descripción.

ArgumentoTipoDescripción
persistbooleanSave the localization settings config after the edit; false keeps the change in memory only (undoable, lost on restart). Valor predeterminado true.

Devuelve: target, warnings.

loc.set_native_culture (riesgo 4, modifica, smoke)​

Sin descripción.

ArgumentoTipoDescripción
culturestringobligatorio. ICU culture name such as fr, ja, pt-BR.

Devuelve: target, warnings.

loc.string_table_clear_entries (riesgo 5, modifica, destructivo, smoke)​

Sin descripción.

ArgumentoTipoDescripción
assetstringobligatorio. StringTable asset reference.
limitintegerReturn at most this many duplicate/blank findings. Valor predeterminado 100.

Devuelve: asset, entries, count, tables, count, totalEntries, totalBlankSources.

loc.string_table_find_entries (riesgo 0, smoke)​

Sin descripción.

ArgumentoTipoDescripción
containsstringCase-insensitive text searched in keys (and source strings unless keysOnly).
keysOnlybooleanSearch keys only. Valor predeterminado false.

Devuelve: asset, entries, count, tables, count, totalEntries, totalBlankSources.

loc.string_table_get_entry (riesgo 0, smoke)​

Sin descripción.

ArgumentoTipoDescripción
keystringobligatorio. Entry key.
valuestringSource string (set tools only).

Devuelve: asset, entries, count, tables, count, totalEntries, totalBlankSources.

loc.string_table_list_entries (riesgo 0, smoke)​

Sin descripción.

ArgumentoTipoDescripción
assetstringobligatorio. StringTable asset reference.
limitintegerReturn at most this many duplicate/blank findings. Valor predeterminado 100.

Devuelve: asset, entries, count, tables, count, totalEntries, totalBlankSources.

loc.string_table_merge (riesgo 2, modifica, smoke)​

Sin descripción.

ArgumentoTipoDescripción
targetstringobligatorio. StringTable receiving the entries.
sourcestringobligatorio. StringTable providing the entries (must differ from target).
overwritebooleanReplace keys that already exist in target. Valor predeterminado false.

Devuelve: asset, entries, count, tables, count, totalEntries, totalBlankSources.

loc.string_table_remove_entry (riesgo 3, modifica, destructivo, smoke)​

Sin descripción.

ArgumentoTipoDescripción
keystringobligatorio. Entry key.
valuestringSource string (set tools only).

Devuelve: asset, entries, count, tables, count, totalEntries, totalBlankSources.

loc.string_table_rename_key (riesgo 2, modifica, smoke)​

Sin descripción.

ArgumentoTipoDescripción
keystringobligatorio. Existing key.
newKeystringobligatorio. New key.
overwritebooleanReplace newKey when it already exists. Valor predeterminado false.

Devuelve: asset, entries, count, tables, count, totalEntries, totalBlankSources.

loc.string_table_set_entries (riesgo 2, modifica, smoke)​

Sin descripción.

ArgumentoTipoDescripción
entriesarray of UeaKeyValueobligatorio. Entries to set: key -> source string.

Devuelve: asset, entries, count, tables, count, totalEntries, totalBlankSources.

loc.string_table_set_entry (riesgo 2, modifica, smoke)​

Sin descripción.

ArgumentoTipoDescripción
keystringobligatorio. Entry key.
valuestringSource string (set tools only).

Devuelve: asset, entries, count, tables, count, totalEntries, totalBlankSources.

loc.validate_target (riesgo 0, smoke)​

Sin descripción.

ArgumentoTipoDescripción
targetstringobligatorio. Localization target name.

Devuelve: target, warnings.

loc.validate_targets (riesgo 0, smoke)​

Sin descripción.

ArgumentoTipoDescripción
targetsarray of stringTarget names. Empty validates every target in scope.

Devuelve: results, validCount, invalidCount.