Ga Configuración pa ar esquema YAML ne ya carga.
Entradas requeridas
| Thuuhu | Descripción |
|---|---|
sourceLocale | 'Mui 'rini (nt'udi, en) utilizado pa tingigi mbo archivos recursos komongu ar **/*.en.resx. 'Nehe reenviado da Translator komongu ar from=<locale>. |
subscriptionKey | Azure AI Translator subscription key. Thogi ir nge secrets |
endpoint | URL ar ngäts'i ar traductor, nt'udi, https://api.cognitive.microsofttranslator.com/. |
Entradas opcionales pa ngatho
| Thuuhu | Defecto | Descripción |
|---|---|---|
region | Ninguno | Traductor hnini recursos (omitir pa recursos globales). |
toLocales | ga̲tho apoyados | Ja ya hnini pa gi 'rats'u̲hñä Zits'uwi 'nar matriz JSON (["fr","de"]) wa valores separados ya comas. |
include | Ninguno | Patrones globo separados 'ra'yo 'ñu; Ho̲ntho bí traducen ya archivos coincidentes. |
exclude | Ninguno | Patrones globo separados 'ra'yo 'ñu; Archivos coincidentes ar omiten (aplicados 'mefa xta inclui). |
configPath | .github/resource-translator.yml | Ruta ar archivo configuración YAML (yá Ts'ut'ubi dige yá raíz ar espacio ar 'be̲fi). |
dryRun | false | Nu'bu̲ true, ejecutar traducciones ne emitir resúmenes pe hingi 'yot'i archivos. |
failOnError | true | Nu'bu̲ true, errores inesperados fallan ar nt'ot'e; Nu'bu̲ false, ya errores ya advertencias. |
Entradas petición traductor
Nuya 'me̲ni Hmunts'i jar Azure AI Translator v3 parámetros consulta. Ga̲tho ya jä'i ar opcional; ya valores predeterminados ar Translator aplican nu'bu̲ hingi ar establecer.
| Thuuhu | Defecto | Descripción |
|---|---|---|
categoryId | general | Azure Custom Translator category — the industry/domain/tone knob. Pe̲hni komongu ar ?category=.... |
textType | plain | plain wa html Utilice html ho̲ntho nu'bu̲ yá valores recursos ya fragmentos HTML reales. |
profanityAction | NoAction | NoAction, Marked wa Deleted Controla Temu̲ ar emiten ngäts'i profanos jar traducciones. |
profanityMarker | Asterisk | Asterisk wa Tag Ho̲ntho di ne ar profanityAction nu'bu̲ Marked |
allowFallback | true (Translator defecto) | Nu'bu̲ false, Translator devuelve 'nar error en lugar de volver ko ya Nxoge nu'bu̲ ár categoryId hingi pe̲ts'i ningún despliegue pa 'nar ja 'mu̲i 'mu̲i. |
apiVersion | 3.0 | Traductor versión API REST. |
Resiliencia & 'ba̲ts'i marcador ar posición
Gi entradas controlan Temu̲ ar nt'ot'e ar comporta nu'bu̲ Translator limita ár zohni 'nehe ne honja protege fichas marcador posición komongu {{name}} wa {0} da destrozado Nxoge ar traducción.
| Thuuhu | Defecto | Descripción |
|---|---|---|
maxRetries | 5 | Intentos reintentos máximos jar nthädi HTTP transitorias (408, 425, 429, 500, 502, 503, 504). Ar 'bede Nxoge ya llamadas HTTP ya zohni 'nehe ar 1 + maxRetries. |
retryBackoffMs | 30000 | Tapón (jar milisegundos) jar 'na Honto ar 'ye̲ retroceso. Ar nt'ot'e honra cabecera respuesta Retry-After Azure exactamente nu'bu̲ 'mui; Ar nä'ä contrario gi japu̲'be̲fi retroceso exponencial tremeado limitado jar nuna hmädi. |
protectPlaceholders | true | Nu'bu̲ true (predeterminado), marcadores ya posición komongu ar {{name}}, ${var}, {0}, {0:N2}, %s, %1$s ne ya entidades HTML ar reemplazan ko fichas centinela nu'bu ar traducción ne ar restauran 'me̲fa. Desactivar ho̲ntho nu'bu̲ ár fuente contiene intencionalmente texto dets'e marcador ar posición literal nä'ä da 'ra'yo ar. |
customPlaceholderPatterns | Ninguno | Regex separados 'nar 'ra'yo líneas (hinda delimitadores) añadidos jar conjunto marcador posición predeterminado, nt'udi, <<.+?>> pa ar sintaxis ar ficha personalizada. |
noTranslatePatterns | Ninguno | Patrones globo separados 'ra'yo 'ñu coinciden ko ya claves za̲ ár nthe̲ analizador (JSON 'ñu punteado, RESX name, PO msgid, XLIFF ar xe̲ni id, INI yá restext key). Claves coincidentes ar caen ar zohni 'nehe Translator ne thogi ko ár hmädi fuente preservado. |
Salidas
| Thuuhu | Descripción |
|---|---|
summary-title | Resumen xi maa PR — hontho amigable, nt'udi, Machine-translated 320 files, a total of 5,418 translations. |
summary-details | Resumen Markdown mfädi pa 'nar komongu PR wa resumen ar 'be̲fi. |
has-new-translations | 'true' nu'bu̲ bí generaron 'nar wa mäs 'ra'yo traducciones. |