जुदि नोंथांनो default नङै location नांगौ अब्ला configPath इनपुटजों लामाखौ override खालाम।
Schema
# .github/resource-translator.ymlsourceLocale: en
# Provider config can be nested. Keep secrets in workflow inputs; use repo# config for non-secret defaults like region, model, formality, or category.provider: azure: categoryId: my-custom-translator-category apiVersion: "3.0" allowFallback: true
toLocales: - fr - de - esinclude: - "src/**/*.en.json" - "apps/**/*.en.resx"exclude: - "**/__tests__/**"glossary: Acme: Contoso Octocat: Octocat # keep brand names verbatim
# Translator request shape — most users can ignore these.textType: plain # plain | htmlprofanityAction: NoAction # NoAction | Marked | DeletedprofanityMarker: Asterisk # Asterisk | Tag (only when profanityAction == Marked)
# Resilience — Translator returns 429 under load. Defaults are usually# fine; tune only if your runs are large enough to hit them.maxRetries: 5retryBackoffMs: 30000 # cap on any single backoff sleep (ms)
# Placeholder protection. ON by default — wraps tokens like {{name}},# {0}, %s, ${var} into sentinels before translation and restores them# on the way back. Set false only when source intentionally contains# placeholder-shaped literals.protectPlaceholders: truecustomPlaceholderPatterns: - "<<.+?>>" # any extra token syntax you use
# Per-key opt-out. Keys matching any glob are dropped from the request# and pass through with the source value preserved.noTranslatePatterns: - "errors.code.*" - "brands.*"फोथार फोरमायथि
providerEither a provider string or a nested provider block (provider.azure, provider.aws, or provider.google). Prefer nested blocks for provider-specific settings; keep secrets in workflow inputs rather than committed config.
sourceLocaleसेट खालामाब्ला sourceLocale इनपुटआव गोग्लैफिनो। लोगोसे Translator नो फरवार्ड खालामनाय जायो मानोना from=<locale> short strings आ autodetected जाया।
toLocalesमोनसे array एबा comma-आलादा string।
include / excludeGlob pattern निरपेक्ष आरो workspace-relative paths नि बेरेखायै बिजिरनाय।
glossaryरावसोलायनायनि उननि सोदोबा बारलाङो। सोदोब-सिमा सांग्रांथि (सामलाय C++, .NET)।
categoryIdAzure Custom Translator केटेगरी — नोंथांनि दारिमिन/डोमेन नब (आयेन, मेडिकेल, मारकेटिं टोन बायदि बायदि)। ?category=... महरै दैथाय हरबाय।
textTypeडिफल्ट टु plain। नोंनि फुंखा html बेसेनाव नंगुबै HTML खोन्दोफोर दंब्लासो बाहाय।
profanityActionरावसोलायनाय आउटपुटआव गाज्रि सोदोबफोरखौ माबोरै फाहामनो।
profanityMarkerअब्लासो ओंथिगोनां profanityAction "Marked"।
allowFallbackजेब्ला नोंथांनि categoryId सरासनस्रा मडेलआव थांफिन्नायनि अनगायै थांखिनाय लोकेलनि थाखाय जेबो थिसनथाय गैया अब्ला रावसोलायनायखौ फेलें खालामनो थाखाय false सेट खालाम।
apiVersionरावसोलायगिरि REST API रोखोम। डिफल्ट टु 3.0।
awsFormalityAWS Translate formality setting for supported target languages.
awsBrevitySet to true to enable AWS Translate brevity mode for supported language pairs.
awsTerminologyNames / awsParallelDataNamesAWS Translate custom terminology and parallel data resource names. Either an array or comma-separated string.
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.
maxRetriesक्षणिक HTTP फिनजाथाइफोराव बांसिनै नाजानाय नाजानाय (408, 425, 429, 500, 502, 503, 504)। डिफल्ट टु 5। मोनफ्रोमबो खावलायनायाव गासै HTTP कलफोरा 1 + maxRetries।
retryBackoffMsजायखि जाया मोनसे बेकअफ उन्दुनायाव Cap (ms)। डिफल्ट टु 30000। Azure नि Retry-After हेडरखौ थाबथाबैनो मान होनाय जायो; नङाब्ला जिट्टर घातारि बेकअफखौ बाहायनाय जायो, बे मानखौ केप खालामनाय जायो।
protectPlaceholdersडिफल्ट टु true। जेब्ला सोलिबाय थायो, {{name}}, ${var}, {0}, {0:N2}, %s, %1$s आरो HTML सिनायथिफोर बायदि टोकनफोरखौ रावसोलायनायनि सिगां सेन्टिनल टोकनजों सोलायनाय जायो आरो उनाव फिन बानायफिननाय जायो। जेब्ला फुंखायाव गोसोजानानै प्लेसहोल्डर महरनि सोदोबफोर थायो अब्लासो होबथा।
customPlaceholderPatternsउफ्रा regex patterns (delimiters गैयालासे) default placeholder set आव दाजाबदेरनाय, जेरै custom token syntax नि थाखाय <<.+?>>। इनलिड रेगेक्सफोरखौ नेवसिनाय जायो।
noTranslatePatternsग्लब पेटार्नफोरा पार्सर-थाखोनि keys (JSON dotted path, RESX name, PO msgid, XLIFF इउनिट id, INI/restext key) जों गोरोबदोंमोन। गोरोबनाय keys फोरखौ खावलायनायनिफ्राय बोखारनाय जायो आरो बिसोरनि फुंखा मानखौ संरैखा खालामनानै बारहोनाय जायो।
changeDetectionDefaults to smart. Uses the committed state manifest to translate only changed or missing parser keys. Set to disabled or false to preserve the legacy always-translate behavior.
statePathPath to the deterministic smart change-detection state manifest. Defaults to .github/resource-translator-state.json.
ल'द अर्डार
- खामानिआ वर्कफ्लोनिफ्राय रोखा इनपुटफोरखौ फरायो।
- बेयो YAML config खौ
configPathनिफ्राय ल'ड खालामो। - मोनफ्रोमबो रानलायनाय फोथारनि थाखाय, इनपुटआ देरहायो; नङाब्ला YAML मानखौ बाहायनाय जायो।
- ज' खालामनाय मानफोरा फोरमान जायो। इनलिड एनम (जेरै
profanityAction: Mask) मोनसे रोखा खौरांजों मावनायखौ गोख्रै फेलें खालामो।
टोन आरो दारिमिन, गोरलै सोदोबाव।
Azure AI Translator v3 API आव मोनसेल' टोन knob गैया। मोननै सेटिंआ खौसे जानानै नोंथांनो बांसिन एखे कन्ट्रल होयो:
- दारिमिन / डोमेन: गावनि कर्पासनि सायाव फोरोंथाय Custom Translator Azure थाखोखौ दिन्थिनो थाखाय
categoryIdबाहाय। बेयो टोन, ब्रान्ड आवाज आरो सोदोब बिहुंनि थाखाय बयनिख्रुइबो गोख्रोंसिन लिभार। - बिखं बिजाब: ब्रान्ड मुं आरो दिहुनथाइ सोदोबफोरखौ सोदोबजों लक खालामनो थाखाय सोदोब बिहुं बाहाय, आरो लाइमोन नायगिरिफोरनि थाखाय जायगायारि
profanityActionथांखिनाय समाव गाज्रि सोदोबफोरखौ स्क्रब खालामनो थाखाय बाहाय।