ဖွင့်ပြီးတိုင်း ဆွဲယူမှု တောင်းဆိုချက်ကို ဖွင့်ပါ
- 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__/**တံဆိပ်အမည်များနှင့် ထုတ်ကုန်ဝေါဟာရများအတွက် အဘိဓာန်စာအုပ်
repo ထဲသို့ .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 မှတစ်ဆင့် ၎င်း၏အိုင်ဒီကို လက်ဆင့်ကမ်းပါ။ ၎င်း သည် Azure ကမ်းလှမ်း သော အ ကောင်း ဆုံး အသံ လက်ကိုင် ဖြစ် သည် ။
အသံ ထိန်းချုပ် မှု + တင်းကျပ် သော အလျှော့ပေး ခြင်း
# .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 Custom Translator categoryId တခုကို profanityAction နှင့် allowFallback: false ပေါင်းစပ်ပြီး ရွေးချယ်ထားသော အမျိုးအစားတွင် သင့်ရည်မှန်းထားသော နေရာတစ်ခုအတွက် ဖြန့်ချိမှုမရှိလျှင် အလုပ်လုပ်စဉ်ကို ကျၡုံးစေပါ။
အလုပ်လုပ်စဉ်ကို မဖွင့်ခင် အခြောက်လုပ်ပါ
with: dryRun: true failOnError: false အဆိုပါ လှုပ်ရှား မှု သည် အကျဉ်းချုပ် ထွက် လာ မှု များ နှင့် အဆင့် အကျဉ်းချုပ် တစ် ခု ကို ထုတ် လွှင့် နေ ဆဲ ဖြစ် သော်လည်း ၊ မည်သည့် ဖိုင် မျှ မ ရေးသား ခဲ့ ပါ ။ သင်ထပ်ခါထပ်ခါ failOnError: false သတိပေးချက်တစ်ခုအဖြစ် ပြဿနာတိုင်းကို ပေါ်လွင်စေရန် ပေါင်းစပ်ပါ။