Sheba Tlhophiso bakeng sa schema ea YAML le taelo ea ho jara.
Lisebelisoa tse hlokahalang
sourceLocaleMohloli oa sebaka (mohlala, en) o sebelisetsoang ho fumana lifaele tsa lisebelisoa tse kang **/*.en.resx. E boetse e romelloa ho mofani oa thepa joalo ka from=<locale>.
Khetho ea mofani le mangolo
Khetha mofani a le mong ka ho matha le provider. Fana feela ka mangolo a mofani ea khethiloeng — bona tataiso ea Input & Outputs bakeng sa tlhophiso e felletseng.
providerMofani oa phetolelo: azure (boiketsetso), aws, kapa google. Ke mofani a le mong feela ea sebelisoang mohala o mong le o mong oa ketso.
subscriptionKeyAzure AI Translator subscription key. Ho hlokahala bakeng sa azure. Feta ka secrets.
endpointAzure Translator endpoint URL, mohlala https://api.cognitive.microsofttranslator.com/. Ho hlokahala bakeng sa azure.
awsAccessKeyIdId ea senotlolo sa phihlello ea AWS Boikhethelo — tlohela (ka awsSecretAccessKey) ho sebelisa ketane ea netefatso ea AWS / OIDC. Feta ka secrets.
awsSecretAccessKeySenotlolo sa Phihlello ea Lekunutu la AWS E tlameha ho fanoa hammoho le awsAccessKeyId. Feta ka secrets.
awsSessionTokenLetšoao la seboka sa AWS bakeng sa mangolo a nakoana. Fetisa ka secrets.
awsRegionSebaka sa AWS bakeng sa ts'ebeletso ea phetolelo (mohlala, us-east-1). E hlokahala bakeng sa aws ntle le haeba AWS_REGION behiloe tikolohong.
awsFormalityAWS Translate formality setting: FORMAL or INFORMAL.
awsBrevityWhen true, enables AWS Translate brevity mode for supported language pairs.
awsTerminologyNamesAWS Translate custom terminology resource names. Accepts a JSON array or comma-separated values.
awsParallelDataNamesAWS Translate parallel data resource names. Accepts a JSON array or comma-separated values.
googleApiKeySenotlolo sa Google Cloud API Fana ka sena KAPA googleCredentials bakeng sa google. Feta ka secrets.
googleCredentialsSenotlolo sa ak'haonte ea ts'ebeletso ea Google Cloud joalo ka khoele ea JSON. Fana ka sena KAPA googleApiKey bakeng sa google. Feta ka secrets.
googleProjectIdBoikhethelo ba projeke ea Google Cloud Hangata e kenngoa ho tsoa ho ak'haonte ea ts'ebeletso.
googleModelGoogle Cloud Translation model, e.g. nmt or base.
googleApiEndpointOptional Google Cloud Translation API endpoint override.
googleAutoRetryOptional Google Cloud Translation automatic retry toggle. Leave unset to use the Google client default.
Lisebelisoa tse tloaelehileng tsa boikhethelo
regionSebaka sa mohloli oa mofetoleli (tlohela lisebelisoa tsa lefats'e).
toLocalesLibaka tseo u lokelang ho li fetolela E amohela JSON array (["fr","de"]) kapa litekanyetso tse arohaneng ka comma.
includeLipaterone tsa glob tse arohaneng tsa Newline; Ke lifaele tse lumellanang feela tse fetolelitsoeng.
excludeLipaterone tsa glob tse arohaneng tsa Newline; Lifaele tse lumellanang li tlosoa (li sebelisoa ka mor'a ho kenyelletsa).
configPathTsela e eang faeleng ea config ea YAML (e amanang le motso oa sebaka sa mosebetsi).
changeDetectionSmart change detection mode. smart translates only keys whose source value, target presence, state entry, or translation-affecting settings require it. Use disabled or false to send every eligible key on every run.
statePathPath to the compact deterministic smart change-detection state manifest. Defaults to .github/resource-translator-state.json; commit it so future runs can audit and reuse unchanged translations.
snapshotOnlyWhen true, create/update the smart change-detection manifest from existing source and target files without calling a translation provider or writing target resource files. Useful when bootstrapping statePath while a provider is unavailable.
dryRunHa true, tsamaisa liphetolelo 'me u ntše litlhaloso empa u se ke ua ngola lifaele.
failOnErrorHa true, liphoso tse sa lebelloang li hloleha ketso; Ha false, liphoso ke tlhokomeliso.
Azure Translator request inputs
Tsena li etsa 'mapa ka kotloloho ho Azure AI Translator v3 mme li sebetsa ho mofani oa azure. textType le ho nyefola le tsona li 'mapa ho AWS / Google moo e lekanang e leng teng (bona tataiso ea bafani); tse ling kaofela ke Azure feela. E 'ngoe le e' ngoe ke ea boikhethelo; Liphoso tsa mofetoleli li sebetsa ha li sa sebelisoa.
categoryIdAzure Custom Translator category — the industry/domain/tone knob. E romele E romele Joalo ka ?category=...
textTypeplain kapa html. Sebelisa html feela ha boleng ba hau ba lisebelisoa e le likotoana tsa 'nete tsa HTML.
profanityActionNoAction, Marked kapa Deleted. Laola hore na mantsoe a litšila a hlahisoa joang liphetolelong.
profanityMarkerAsterisk kapa Tag. E na le moelelo feela ha profanityAction Marked.
allowFallbackHa false, mofetoleli o khutlisetsa phoso ho fapana le ho khutlela tsamaisong e akaretsang haeba categoryId ea hau e se na ts'ebetso ea sebaka se shebiloeng.
apiVersionTranslator REST API version.
Ts'ireletso ea Ts'ireletso le Ts'ireletso ea Sebaka
Lisebelisoa tsena li laola hore na ketso e itšoara joang ha Mofetoleli a fokotsa kopo ea hau le hore na e sireletsa li-tokens tsa placeholder joalo ka {{name}} kapa {0} hore li se ke tsa senyeha nakong ea phetolelo.
maxRetriesLiteko tse phahameng tsa ho leka hape ho likarabo tsa nakoana tsa HTTP (408, 425, 429, 500, 502, 503, 504). Palo e felletseng ea mehala ea HTTP ka kopo ke 1 + maxRetries.
retryBackoffMsCap (ka milliseconds) ka boroko bofe kapa bofe ba morao. Ketso e hlompha hlooho ea karabelo ea Retry-After ea Azure hantle ha e le teng; ho seng joalo e sebelisa jittered exponential backoff e koahetsoeng ka boleng bona.
protectPlaceholdersHa true (default), li-placeholder tse kang {{name}}, ${var}, {0}, {0:N2}, %s, %1$s le HTML li nkeloa sebaka ke li-tokens tsa sentinel pele li fetoleloa ebe li khutlisetsoa morao. Tima feela ha mohloli oa hau o na le mongolo o bōpehileng joaloka sebaka o lokelang ho fetoleloa.
customPlaceholderPatternsLi-regexes tse arohaneng tsa Newline (ntle le li-delimiters) li ekelitsoe ho sete ea placeholder e sa fetoheng, mohlala <<.+?>> bakeng sa syntax ea letšoao la tloaelo.
noTranslatePatternsLipaterone tsa glob tse arohaneng tsa Newline li bapisoa le linotlolo tsa boemo ba parser (JSON dotted path, RESX name, PO msgid, XLIFF unit id, INI / restext key). Linotlolo tse lumellanang li tlosoa ho tsoa ho kopo ea Mofetoleli ebe li fetisoa ka boleng ba tsona ba mohloli bo bolokiloeng.
Liphetho
summary-titleKakaretso e khuts'oane ea PR-title-friendly, mohlala Machine-translated 320 files, a total of 5,418 translations.
summary-detailsMarkdown summary e loketseng 'mele oa PR kapa kakaretso ea mosebetsi.
has-new-translations'true' ha phetolelo e le 'ngoe kapa tse' maloa tse ncha li hlahisitsoe.