Pular para o conteúdo principal

Kit loc

25 ferramentas. Gerado a partir do código-fonte do plugin; não edite manualmente.

As descrições das ferramentas e dos argumentos são exibidas em inglês porque espelham o schema das ferramentas (o mesmo texto que o agente recebe em tools/list).

Ferramentas​

Legenda. risco 0 = somente leitura, 1 = operação inofensiva do editor, 2 = altera asset, 3 = apaga/substitui asset, 4 = projeto/config/build, 5 = potencialmente destrutivo (chamadas acima de MaxAutoRisk exigem "_confirm": true). altera = roda numa transação (edit.undo reverte). requer PIE / requer mundo = recusado sem sessão PIE / sem nível aberto. requer plugin = indisponível quando o plugin está desativado. dryRun = aceita o argumento dryRun. smoke = coberto por edit.self_test.

loc.add_culture (risco 4, altera, smoke)​

Sem descrição.

ArgumentoTipoDescrição
culturestringobrigatório. ICU culture name such as fr, ja, pt-BR.

Retorna: target, warnings.

loc.audit_string_table (risco 0, smoke)​

Sem descrição.

ArgumentoTipoDescrição
assetstringobrigatório. StringTable asset reference.
limitintegerReturn at most this many duplicate/blank findings. Padrão 100.

Retorna: table, warnings.

loc.audit_string_tables (risco 0, smoke)​

Sem descrição.

ArgumentoTipoDescrição
folderstringContent root to scan. Padrão TEXT("/Game").
recursivebooleanInclude StringTables below Folder. Padrão true.
limitintegerMaximum returned assets. Padrão 200.

loc.compile_status (risco 0, smoke)​

Sem descrição.

ArgumentoTipoDescrição
targetstringobrigatório. Localization target name.

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

loc.create_string_table (risco 2, altera, smoke)​

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

ArgumentoTipoDescrição
folderstringobrigatório. Content folder, e.g. /Game/Localization.
namestringobrigatório. 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.

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

loc.create_target (risco 4, altera, smoke)​

Sem descrição.

ArgumentoTipoDescrição
targetstringobrigatório. New localization target name.
nativeCulturestringobrigatório. 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). Padrão true.

Retorna: target, warnings.

loc.duplicate_string_table (risco 2, altera, smoke)​

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

ArgumentoTipoDescrição
assetstringobrigatório. Source StringTable asset reference.
newNamestringobrigatório. New asset name.
folderstringDestination folder; empty uses the source folder.

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

loc.gather_status (risco 0, smoke)​

Sem descrição.

ArgumentoTipoDescrição
targetstringobrigatório. Localization target name.

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

loc.get_target (risco 0, smoke)​

Sem descrição.

ArgumentoTipoDescrição
targetstringobrigatório. Localization target name.

Retorna: target, warnings.

loc.list_string_tables (risco 0, smoke)​

Sem descrição.

ArgumentoTipoDescrição
folderstringContent root to scan. Padrão TEXT("/Game").
recursivebooleanInclude StringTables below Folder. Padrão true.
limitintegerMaximum returned assets. Padrão 200.

loc.list_targets (risco 0, smoke)​

Sem descrição.

ArgumentoTipoDescrição
scopestring"game" (default) edits the project target set; "engine" is read-only. Padrão TEXT("game").

Retorna: targets, count.

loc.remove_culture (risco 4, altera, destrutivo, smoke)​

Sem descrição.

ArgumentoTipoDescrição
culturestringobrigatório. ICU culture name such as fr, ja, pt-BR.

Retorna: target, warnings.

loc.remove_target (risco 4, altera, destrutivo, smoke)​

Sem descrição.

ArgumentoTipoDescrição
persistbooleanSave the localization settings config after the edit; false keeps the change in memory only (undoable, lost on restart). Padrão true.

Retorna: target, warnings.

loc.set_native_culture (risco 4, altera, smoke)​

Sem descrição.

ArgumentoTipoDescrição
culturestringobrigatório. ICU culture name such as fr, ja, pt-BR.

Retorna: target, warnings.

loc.string_table_clear_entries (risco 5, altera, destrutivo, smoke)​

Sem descrição.

ArgumentoTipoDescrição
assetstringobrigatório. StringTable asset reference.
limitintegerReturn at most this many duplicate/blank findings. Padrão 100.

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

loc.string_table_find_entries (risco 0, smoke)​

Sem descrição.

ArgumentoTipoDescrição
containsstringCase-insensitive text searched in keys (and source strings unless keysOnly).
keysOnlybooleanSearch keys only. Padrão false.

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

loc.string_table_get_entry (risco 0, smoke)​

Sem descrição.

ArgumentoTipoDescrição
keystringobrigatório. Entry key.
valuestringSource string (set tools only).

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

loc.string_table_list_entries (risco 0, smoke)​

Sem descrição.

ArgumentoTipoDescrição
assetstringobrigatório. StringTable asset reference.
limitintegerReturn at most this many duplicate/blank findings. Padrão 100.

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

loc.string_table_merge (risco 2, altera, smoke)​

Sem descrição.

ArgumentoTipoDescrição
targetstringobrigatório. StringTable receiving the entries.
sourcestringobrigatório. StringTable providing the entries (must differ from target).
overwritebooleanReplace keys that already exist in target. Padrão false.

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

loc.string_table_remove_entry (risco 3, altera, destrutivo, smoke)​

Sem descrição.

ArgumentoTipoDescrição
keystringobrigatório. Entry key.
valuestringSource string (set tools only).

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

loc.string_table_rename_key (risco 2, altera, smoke)​

Sem descrição.

ArgumentoTipoDescrição
keystringobrigatório. Existing key.
newKeystringobrigatório. New key.
overwritebooleanReplace newKey when it already exists. Padrão false.

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

loc.string_table_set_entries (risco 2, altera, smoke)​

Sem descrição.

ArgumentoTipoDescrição
entriesarray of UeaKeyValueobrigatório. Entries to set: key -> source string.

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

loc.string_table_set_entry (risco 2, altera, smoke)​

Sem descrição.

ArgumentoTipoDescrição
keystringobrigatório. Entry key.
valuestringSource string (set tools only).

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

loc.validate_target (risco 0, smoke)​

Sem descrição.

ArgumentoTipoDescrição
targetstringobrigatório. Localization target name.

Retorna: target, warnings.

loc.validate_targets (risco 0, smoke)​

Sem descrição.

ArgumentoTipoDescrição
targetsarray of stringTarget names. Empty validates every target in scope.

Retorna: results, validCount, invalidCount.