Tirohia Whirihoranga mō te aronuinga YAML me te raupapa utanga.
Ngā tāuru e hiahiatia ana
sourceLocaleKo te wāhi pūtake (hei tauira, en) e whakamahia ana hei kimi i ngā kōnae rauemi pēnei i te **/*.en.resx. I tukuna hoki ki te kaiwhakarato hei from=<locale>.
Tīpakonga kaiwhakarato me ngā taipitopito tuakiri
Kōwhiria tētahi kaiwhakarato mō ia whakahaere me provider. Homai anake ngā taipitopito tuakiri o te kaiwhakarato kua tīpakohia — tirohia te aratohu Ngā tāuru me ngā tāputa mō te tatūnga katoa.
providerKaituku whakamāori: azure (taunoa), aws, google rānei. Kotahi anake te kaiwhakarato e whakamahia ana mō ia waea hohenga.
subscriptionKeyKī ohaurunga Azure AI Translator. E hiahiatia ana mō azure. Hipa mā secrets.
endpointAzure Translator endpoint URL, e.g. https://api.cognitive.microsofttranslator.com/. E hiahiatia ana mō azure.
awsAccessKeyIdTT kī uru AWS. Kōwhiringa — waiho (me te awsSecretAccessKey) ki te whakamahi i te mekameka taipitopito tuakiri taunoa AWS / OIDC. Hipa mā secrets.
awsSecretAccessKeyKī uru muna AWS. Me tuku tahi me te awsAccessKeyId. Hipa mā secrets.
awsSessionTokenHe maimai wātū AWS kōwhiri mō ngā taipitopito tuakiri rangitahi. Hipa mā te secrets.
awsRegionRohe AWS mō te ratonga Whakamāori (hei tauira, us-east-1). E hiahiatia ana mō te aws ki te kore AWS_REGION e tautuhia ki te taiao.
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.
googleApiKeyKī API Kapua Google. Homai tēnei googleCredentials OR mō google. Hipa mā secrets.
googleCredentialsKī pūkete-ratonga Google Cloud hei aho JSON. Homai tēnei googleApiKey OR mō google. Hipa mā secrets.
googleProjectIdID kaupapa Google Cloud kōwhiringa. I te nuinga o te wā ka whakawhiwhia mai i te taipitopito tuakiri pūkete ratonga.
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.
Ngā tāurunga kōwhiringa pūnoa
regionRohe rauemi kaiwhakamāori (waiho mō ngā rauemi huri noa).
toLocalesNgā rohe hei whakamāori. Ka whakaae ki tētahi huānga JSON (["fr","de"]), ngā uara whakawehe-piko rānei.
includeNgā tauira glob wehewehe-raina-hou; Ko ngā kōnae ōrite anake ka whakamāoritia.
excludeNgā tauira glob wehewehe-raina-hou; Ka tīpoka ngā kōnae ōrite (ka hoatu ā muri i te whakauru).
configPathAra ki te kōnae whirihoranga YAML (e pātahi ana ki te iomatua mokowāmahi).
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.
dryRunIna true, whakahaerehia ngā whakawhitinga me te tuku whakarāpopototanga, engari kaua e tuhi kōnae.
failOnErrorIna true, ka hinga ngā hapa ohorere i te hohenga; Ina false, he whakatūpato ngā hapa.
Ngā tāurunga tono Azure Translator
Ka mahere hāngai ēnei ki ngā tawhā uiui Azure AI Translator v3, ā, ka hoatu ki te kaiwhakarato Azure. ka whakamaheretia hoki te textType me te profanityAction ki AWS/Google kei reira tētahi ōrite (tirohia te aratohu kaiwhakarato); ko te toenga he Azure-anake. He kōwhiringa ia mea; ka hoatu ngā taunoa Kaiwhakamāori inā wetetautuhia.
categoryIdKāwai Custom Translator Azure — te pona ahumahi/rohe/oro. I whakamua hei ?category=....
textTypeplain html rānei. Whakamahia html anake ina he kongakonga HTML tūturu ō uara rauemi.
profanityActionNoAction, Marked, Deleted rānei. Ka whakahaere i te āhua o te whakaputa i ngā kupu whakarihariha i roto i ngā whakamāoritanga.
profanityMarkerAsterisk Tag rānei. Whai tikanga anake ina Marked profanityAction.
allowFallbackIna false, ka whakahokia e te Kaiwhakamāori tētahi hapa, kaua e hoki whakamuri ki te pūnaha ahuwhānui mēnā kāore he tukunga o tō categoryId mō tētahi wāhi ūnga.
apiVersionPutanga REST API kaiwhakamāori.
Te manahau me te parenga puriwāhi
Mā ēnei tāurunga e whakahaere te whanonga o te hohenga ina katia e te Kaiwhakamāori tō tono, me te whakangungu i ngā maimai puriwāhi pēnei i te {{name}}, i te {0} rānei kia kore ai e pakaru i te wā o te whakamāoritanga.
maxRetriesKo te mōrahi o ngā nganatanga ngana anō i runga i ngā urupare HTTP rangitahi (408, 425, 429, 500, 502, 503, 504). He 1 + maxRetries te tapeke o ngā waea HTTP mō ia tono.
retryBackoffMsPū (i roto i ngā hēkona) i runga i tētahi moe whakamuri kotahi. Ka whakahonoretia e te hohenga te pane urupare Retry-After a Azure i te wā e noho ana; ki te kore ka whakamahia e ia te whakahoki taupua jittered kua whakakapia ki tēnei uara.
protectPlaceholdersIna true (taunoa), ka whakakapia ngā puriwāhi pēnei i te {{name}}, te ${var}, te {0}, te {0:N2}, te %s, te %1$s me ngā mea HTML ki ngā maimai sentinel i mua i te whakamāoritanga, ā, ka whakaoratia ā muri ake. Monokia anake mēnā kei roto i tō pūtake he kupu puriwāhi tūturu e tika ana kia whakamāoritia.
customPlaceholderPatternsKua tāpirihia ngā regex wehe-raina hōu (me te kore kaiwehe) ki te huinga puriwāhi taunoa, hei tauira, <<.+?>> mō te wetereo maimai ritenga.
noTranslatePatternsKo ngā tauira glob wehe-raina hōu e ōrite ana ki ngā kī taumata-parser (ara iraira JSON, RESX name, PO msgid, XLIFF unit id, kī INI/restext). Ka whakatakahia ngā kī ōrite mai i te tono Kaiwhakamāori, ā, ka puta atu me te uara pūtake e pupuritia ana.
Ngā Huaputa
summary-titleHe whakarāpopototanga taitara PR poto, hei tauira, Machine-translated 320 files, a total of 5,418 translations.
summary-detailsWhakarāpopototanga whakahekenga e tika ana mō tētahi tinana PR, whakarāpopototanga mahi rānei.
has-new-translations'true' i te wā i hangaia ai tētahi, neke atu rānei o ngā whakamāoritanga hōu.