ପ୍ରତ୍ୟେକ ଦୌଡିବା ପରେ ଏକ ପୁଲ୍ ଅନୁରୋଧ ଖୋଲନ୍ତୁ
- 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: localizationମୋନୋରେପୋସ୍: ପ୍ୟାକେଜ୍ ପ୍ରତି ସ୍କୋପ୍ ଅନୁବାଦ
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-... ଏକ କର୍ପସରେ ଏକ Azure Custom Translator ବର୍ଗକୁ ତାଲିମ ଦିଅନ୍ତୁ ଯାହା ଆପଣଙ୍କ ଶିଳ୍ପ ଶବ୍ଦକୋଷ ଏବଂ ସ୍ୱର (ଆଇନଗତ, ମେଡିକାଲ୍, ମାର୍କେଟିଂ, ଆଭ୍ୟନ୍ତରୀଣ-ଇଞ୍ଜିନିୟରିଂ, ଇତ୍ୟାଦି) କ୍ୟାପଚର କରେ ଏବଂ categoryId ମାଧ୍ୟମରେ ଏହାର ID ପାସ୍ କରେ। ଏହା ହେଉଛି ସବୁଠାରୁ ଶକ୍ତିଶାଳୀ ସ୍ୱର ଲିଭର ଆଜୁର୍ ପ୍ରଦାନ କରେ |
ଟୋନ୍ ନିୟନ୍ତ୍ରଣ + କଠୋର ଫଲବ୍ୟାକ୍
# .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 ସହିତ ମିଶ୍ରଣ କରନ୍ତୁ |