A hi'o Faanahoraa no te faanahoraa YAML e te ana'iraa faautaraa.
Te mau mana'o e titauhia
sourceLocaleSource locale (ei hi'oraa, en) faaohipahia no te imi i te mau pu'e parau mai te **/*.en.resx. Ua hapono-atoa-hia i te taata horo'a ei from=<locale>.
Ma'itiraa e te mau parau faati'a
A ma'iti i te hoê pŭpŭ no te hororaa tata'itahi e te provider. A horo'a noa i te mau parau faati'a a te taata i ma'itihia — a hi'o i te Te mau mea e faaô mai arata'iraa no te faaineineraa taatoa.
providerTaata iriti : azure (default), aws, e aore râ google. Hoê ana'e faanahoraa e faaohipahia i te hoê piiraa ohipa.
subscriptionKeyAzure AI Translator subscription key. Titauhia no te azure. A haere na roto i te secrets.
endpointAzure Translator endpoint URL, e.g. https://api.cognitive.microsofttranslator.com/. Titauhia no te azure.
awsAccessKeyIdAWS access key id. Ma'itiraa — haapae (e te awsSecretAccessKey) no te faaohipa i te AWS default credential chain / OIDC. A haere na roto i te secrets.
awsSecretAccessKeyAWS secret access key. E mea ti'a ia horo'ahia e te awsAccessKeyId. A haere na roto i te secrets.
awsSessionTokenOptional AWS session token for temporary credentials. A haere na roto i te secrets.
awsRegionAWS no te faanahoraa Translate (ei hi'oraa, us-east-1). Titauhia no te aws maori râ ua tuuhia te AWS_REGION i roto i te vahi nohoraa.
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.
googleApiKeyTaviri API Google Cloud. A horo'a i teie OR googleCredentials no te google. A haere na roto i te secrets.
googleCredentialsGoogle Cloud service-account key as a JSON string. A horo'a i teie OR googleApiKey no te google. A haere na roto i te secrets.
googleProjectIdOptional Google Cloud project id. E mea pinepine te reira i te faahitihia mai roto mai i te parau faati'a no te taviniraa.
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.
Te mau faaôraa ma'itihia
regionTuhaa fenua no te mau rave'a no te feia iriti parau (eiaha no te mau rave'a na te ao atoa nei).
toLocalesTe mau vahi no te iritiraa. E farii i te hoê faanahoraa JSON (["fr","de"]) e aore râ, te mau faito tei faataa-ê-hia e te vira.
includeTe mau hoho'a o te reni apî ; o te mau putu'ite tu'ati ana'e te iritihia ra.
excludeTe mau hoho'a o te reni apî ; E haapaehia te mau putu'ite tu'ati (faaohipahia i muri a'e i te tuuraa).
configPathTe e'a no te putu'ite config YAML (no ni'a i te aa o te vahi ohiparaa).
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.
dryRunIa true ana'e, a horo'a i te mau iritiraa e a horo'a i te mau haapotoraa, eiaha râ e papa'i i te mau putu'ite.
failOnErrorIa true ana'e, eita te mau hape mana'o-ore-hia e manuïa ; Ia false ana'e, e faaararaa te mau hape.
Azure Translator request inputs
E faanaho-ti'a-hia te reira i ni'a i te Azure AI Translator v3 query parameters e e faaohipahia i ni'a i te Azure Provider. textType e te profanityAction e faanaho-atoa-hia i ni'a i te AWS/Google mai te mea te vai ra te hoê tu'atiraa (a hi'o i te buka arata'i a te feia horo'a) ; te toe'a no te Azure ana'e. E ma'itiraa te mau mea atoa ; e tano te Translator default mai te mea e, aita e faanahoraa.
categoryIdAzure Custom Translator category — the industry/domain/tone button. Haponohia mai te ?category=....
textTypeplain e aore râ html. A faaohipa i te html mai te mea e, e mau hu'ahu'a HTML mau ta outou mau rave'a.
profanityActionNoAction, Marked, e aore râ, Deleted. E hi'opo'a i te huru o te mau parau faufau i roto i te mau iritiraa.
profanityMarkerAsterisk e aore râ Tag. E mea faufaa noa ia profanityAction Marked.
allowFallbackIa false ana'e, e faaho'i mai te Translator i te hoê hape eiaha râ e ho'i i ni'a i te faanahoraa rahi mai te mea e, aita ta outou categoryId e faanahoraa no te hoê vahi i tapa'ohia.
apiVersionTranslator REST API version.
Te faaoroma'iraa e te parururaa i te vahi
Na teie mau faaararaa e hi'opo'a i te huru o te ohipa ia faaiti ana'e te Translator i ta outou aniraa e nahea te reira i te paruru i te mau tapa'o mai te {{name}} e aore râ te {0} ia ore te reira ia ino i roto i te iritiraa.
maxRetriesRahiraa tamataraa no te tamata faahou i ni'a i te mau pahonoraa HTTP poto (408, 425, 429, 500, 502, 503, 504). Te rahiraa o te mau piiraa HTTP i te aniraa tata'itahi, e 1 + maxRetries ïa.
retryBackoffMsA tapo'i (i roto i te milliseconds) i ni'a i te hoê noa taotoraa. E faatura te ohipa i te upoo parau o te pahonoraa Retry-After Azure i te taime ti'a ; aita ana'e, e faaohipa oia i te ho'iraa exponential jittered tei taoti'ahia i teie faufaa.
protectPlaceholdersMai te mea e, true (default), e monohia te mau placeholder mai te {{name}}, ${var}, {0}, {0:N2}, %s, %1$s e HTML e te mau token sentinel hou te iritiraa e e faaho'ihia mai i muri iho. A tupohe noa mai te mea e, te vai ra i roto i ta outou tumu parau te mau papa'iraa e ti'a ia iritihia i roto i ta outou rave'a.
customPlaceholderPatternsNewline-separated regexes (without delimiters) added to the default placeholder set, e.g. <<.+?>> for custom token syntax.
noTranslatePatternsTe mau hoho'a o te reni apî tei faataa-ê-hia i ni'a i te mau taviri parser (JSON dotted path, RESX name, PO msgid, XLIFF unit id, INI/restext key). E faaorehia te mau taviri tu'ati mai roto mai i te aniraa a te Translator e e faahereherehia te faufaa no te tumu parau.
Te mau ohipa e noaa mai
summary-titleHaapotoraa poto no ni'a i te upoo parau PR, ei hi'oraa, Machine-translated 320 files, a total of 5,418 translations.
summary-detailsHaapotoraa no te tapa'o e tano no te hoê tino haaparareraa parau e aore râ no te hoê haapotoraa ohipa.
has-new-translations'true' ia hamanihia te hoê aore ra hau atu mau huriraa apî.