အပြည့်အဝ နောက်ပြန် လိုက်လျောညီထွေ မှု : provider သည် azure သို့ စံထား ထား သောကြောင့် ၊ လက်ရှိ Azure အလုပ် လုပ်ကိုင် မှု များ သည် ပြောင်းလဲ မှု မ ရှိ ဘဲ အလုပ် လုပ် နေ သည် - တည်းဖြတ် မှု များ မ လိုအပ် ပါ ။
ထောက်ပံ့ သူ တစ် ဦး ရွေးချယ် ခြင်း
provider အဝင်ကို azure (စံထားချက်)၊ aws သို့မဟုတ် google အဖြစ် သတ်မှတ်ပြီးနောက် ထိုထောက်ပံ့ပေးသူ၏ အထောက်အထားများကို ထောက်ပံ့ပေးပါ။ လုပ်ဆောင် မှု ခေါ် ဆို မှု တစ် ခု လျှင် ထောက်ပံ့ သူ တစ် ဦး သာ အသုံးပြု သည် ။ အဆိုပါ လှုပ်ရှား မှု သည် စက်ရုံ တစ် ရုံ နောက်ကွယ် ရှိ ညီညွတ် သော အက်စ်ဒီကေ ကို ဆုံးဖြတ် ချက် အရ လွှဲပြောင်း ပေး သည် ။
ကုမ္ပဏီ နှိုင်းယှဉ်
subscriptionKey, endpoint, region (ရွေးချယ်စရာ)
OIDC / စံထားချက် ချိတ်ဆက်၊ သို့မဟုတ် awsAccessKeyId + awsSecretAccessKey; awsRegion
googleApiKey သို့မဟုတ် googleCredentials (ဝန်ဆောင်မှုအကောင့် JSON)
Azure AI Translator (default)
စံထားချက် ထောက်ပံ့ပေးသူ။ Azure AI Translator အရင်းအမြစ် တစ် ခု ကို ထောက်ပံ့ ပေး ပြီး subscriptionKey ၊ endpoint ၊ နှင့် ရွေးချယ် နိုင် သော region များ ကို ဖြတ်ကျော် ပါ ။ ၎င်း သည် လက်ရှိ အလုပ် လုပ်ကိုင် မှု များ အသုံးပြု ပြီး သား တူညီ သော ပုံစံ ဖြစ် သည် ။
Official Azure docs
jobs: translate: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5
- id: translator uses: IEvangelist/resource-translator@v3 with: provider: | azure: subscriptionKey: ${{ secrets.TRANSLATOR_KEY }} endpoint: ${{ secrets.TRANSLATOR_ENDPOINT }} region: ${{ secrets.TRANSLATOR_REGION }} sourceLocale: en toLocales: '["es","fr","de"]'AWS ဘာသာပြန်
@aws-sdk/client-translate အသုံးပြုသည်။ ကြာရှည် လျှို့ဝှက် ချက် များ ကို သိမ်းဆည်း ခြင်း မ ရှိ သောကြောင့် aws-actions/configure-aws-credentials မှတစ်ဆင့် OIDC ကို ပိုမို နှစ်သက် ပါ သည် - လှုပ်ရှား မှု သည် AWS SDK စံထား အထောက်အထား ချိတ်ဆက် မှု ကို ဖတ်ရှု သည် ။ သို့မဟုတ် ၊ awsAccessKeyId နှင့် awsSecretAccessKey ကို ရှင်းလင်း စွာ လက်ဆင့်ကမ်း ပါ ။ နယ်မြေ တစ် ခု သည် ၊ awsRegion သို့မဟုတ် AWS_REGION ပတ်ဝန်းကျင် ကိန်းဂဏန်း မှတစ်ဆင့် အမြဲတမ်း လိုအပ် သည် ။
Official AWS docs
- Amazon Translate overview
- TranslateText API reference
- Setting formality
- Using brevity
- Custom terminology
- Parallel data
- Supported languages
OIDC (အကြံပြု)
permissions: id-token: write # for aws-actions/configure-aws-credentials OIDC contents: write pull-requests: write
jobs: translate: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5
- uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: arn:aws:iam::123456789012:role/gh-actions-translate aws-region: us-east-1
- id: translator uses: IEvangelist/resource-translator@v3 with: provider: | aws: region: us-east-1 # or rely on AWS_REGION from the step above formality: FORMAL brevity: true sourceLocale: en toLocales: '["es","fr","de"]'OIDC အစား တည်ငြိမ် သော့ များ ကို အသုံးပြု ရန် ၊ aws-actions/configure-aws-credentials အဆင့် ကို ချ ပြီး awsAccessKeyId / awsSecretAccessKey ( secrets မှတစ်ဆင့် ) နှင့် awsRegion ကို ဖြတ် ပါ ။
ဂူဂဲလ် 클라우드 ဘာသာပြန်
@google-cloud/translate (v2) ကိုအသုံးပြုသည်။ API သော့(googleApiKey) သို့မဟုတ် ဝန်ဆောင်မှုအကောင့် JSON အထောက်အထား (googleCredentials) ဖြင့် ခွင့်ပြုပါ။ တစ်ခုအတိအကျကို ထောက်ပံ့ပေးပါ။ ရွေးချယ် စရာ တစ် googleProjectId ကို ချန်လှပ် သောအခါ အထောက်အထား မှ ကောက်ချက်ချ သည် ။
Official Google docs
jobs: translate: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5
- id: translator uses: IEvangelist/resource-translator@v3 with: provider: | google: # Provide EITHER a service-account JSON credential... credentials: ${{ secrets.GCP_TRANSLATE_CREDENTIALS }} # ...OR an API key: # apiKey: ${{ secrets.GCP_TRANSLATE_API_KEY }} model: nmt sourceLocale: en toLocales: '["es","fr","de"]'ရည်ရွယ်ချက်-သတ်မှတ်သူ မြေပုံရေးဆွဲခြင်း
ထောက်ပံ့ သူ - သီးခြား သတ်မှတ် ချက် များ ကို တူညီ သော နေရာ တွင် မြေပုံ ရေးဆွဲ ထား သည် ။ တခြားအရာအားလုံးက အကျိုးသင့်အကြောင်းသင့်ရှိတဲ့ စံထားချက်တွေဆီ ပြန်ကျသွားတဲ့အတွက် အပြုအမူက တစ်သမတ်တည်းဖြစ်နေတယ်။
textTypeprofanityActioncategoryIdallowFallbackawsFormalityawsBrevityawsTerminologyNamesawsParallelDataNamesgoogleModelgoogleApiEndpointဒေသခံသင်္ကေတသည် ထောက်ပံ့ပေးသူတစ်ဦးချင်းစီ ကွဲပြားခြားနားသည်
ထောက်ပံ့ သူ တစ် ဦး စီ သည် ၎င်း တို့ ၏ ကိုယ်ပိုင် ဒေသ သင်္ကေတ များ ကို အသုံးပြု သည် ( ဥပမာ ၊ ရိုးရိုး တရုတ် ကို Azure တွင် zh-Hans ၊ AWS တွင် zh ၊ နှင့် ဂူဂဲလ် တွင် zh-CN ) ကို အသုံးပြု သည် ။ သင်္ကေတ များ သည် အနေဖြင့် ဖြတ်သန်း ပြီး ထွက် လာ သော ဖိုင် အမည် များ ကို မောင်းနှင် သည် ၊ ထို့ကြောင့် သင် ရွေးချယ် ထား သော ထောက်ပံ့ ပေး သူ က ထောက်ပံ့ ပေး သော toLocales တန်ဖိုး များ ကို ရွေးချယ် ပါ ။