ഓരോ ഓട്ടത്തിന് ശേഷവും ഒരു പുൾ അഭ്യർത്ഥന തുറക്കുക
- id: translate uses: IEvangelist/resource-translator@v3 with: sourceLocale: en subscriptionKey: ${{ secrets.TRANSLATOR_KEY }} endpoint: ${{ secrets.TRANSLATOR_ENDPOINT }} region: ${{ secrets.TRANSLATOR_REGION }}
- if: steps.translate.outputs.has-new-translations == 'true' uses: peter-evans/create-pull-request@v7 with: branch: machine-translation title: ${{ steps.translate.outputs.summary-title }} body: ${{ steps.translate.outputs.summary-details }} labels: localizationMonorepos: ഓരോ പാക്കേജിനും സ്കോപ്പ് വിവർത്തനം
with: sourceLocale: en include: | apps/web/**/*.en.resx packages/shared/**/*.en.json exclude: | **/dist/** **/__tests__/**ബ്രാൻഡ് പേരുകൾക്കും ഉൽപ്പന്ന നിബന്ധനകൾക്കുമുള്ള ഗ്ലോസറി
റെപ്പോയിലേക്ക് ഒരു .github/resource-translator.yml ഇടുക:
glossary: Acme: Contoso Octocat: Octocat ".NET": ".NET" "C++": "C++"വിവർത്തന ശേഷം ഗ്ലോസറി പദങ്ങൾ പ്രയോഗിക്കുന്നു, അതിനാൽ മെഷീൻ വിവർത്തനം ചെയ്ത ഔട്ട്പുട്ട് നിങ്ങളുടെ ഇഷ്ടപ്പെട്ട ബ്രാൻഡിംഗ് നിലനിർത്തുന്നു.
ഇച്ഛാനുസൃത വിവർത്തക വിഭാഗം (വ്യവസായം / ഡൊമെയ്ൻ)
with: sourceLocale: en subscriptionKey: ${{ secrets.TRANSLATOR_KEY }} endpoint: ${{ secrets.TRANSLATOR_ENDPOINT }} categoryId: 1234abcd-5678-90ef-... നിങ്ങളുടെ ഇൻഡസ്ട്രി പദാവലിയും ടോണും (ലീഗൽ, മെഡിക്കൽ, മാർക്കറ്റിംഗ്, ഇന്റേണൽ എഞ്ചിനീയറിംഗ് മുതലായവ) ക്യാപ്ചർ ചെയ്യുന്ന ഒരു കോർപ്പസിൽ ഒരു അഷ്വർ Custom Translator വിഭാഗം പരിശീലിപ്പിക്കുക, categoryId വഴി അതിന്റെ ഐഡി പാസ് ചെയ്യുക. അഷ്വർ വാഗ്ദാനം ചെയ്യുന്ന ഏറ്റവും ശക്തമായ ടോൺ ഇതാണ്.
ടോൺ നിയന്ത്രണം + കർശനമായ വീഴ്ച
# .github/resource-translator.yml# Industry / domain — choose your tone via a Custom Translator categorycategoryId: legal-en
# Treat profanity strictly for content aimed at younger audiencesprofanityAction: MarkedprofanityMarker: Tag
# Fail the run rather than silently fall back to the general modelallowFallback: false ഒരു ഇഷ് ടാനുസൃത വിവർത്തകൻ categoryId profanityAction allowFallback: false ഉപയോഗിച്ച് സംയോജിപ്പിക്കുക, തിരഞ്ഞെടുത്ത വിഭാഗത്തിന് നിങ്ങളുടെ ടാർഗെറ്റ് ലോക്കലുകളിലൊന്നിന് വിന്യാസം ഇല്ലെങ്കിൽ വർക്ക്ഫ്ലോ പരാജയപ്പെടുത്തുക.
വർക്ക്ഫ്ലോ ഓണാക്കുന്നതിന് മുമ്പ് ഡ്രൈ റൺ
with: dryRun: true failOnError: false പ്രവർത്തനം ഇപ്പോഴും സംഗ്രഹ ഔട്ട്പുട്ടുകളും ഒരു ഘട്ട സംഗ്രഹവും പുറപ്പെടുവിക്കുന്നു, പക്ഷേ ഫയലുകളൊന്നും എഴുതിയിട്ടില്ല. നിങ്ങൾ ആവർത്തിക്കുമ്പോൾ ഓരോ പ്രശ്നവും ഒരു മുന്നറിയിപ്പായി ഉപരിതലമാക്കാൻ failOnError: false സംയോജിപ്പിക്കുക.