ފުލީ ބެކްވާޑް ކޮމްޕެޓިބަލް: provider ޑިފޯލްޓް ޓު azure، އެހެންވެ މިހާރު ހުރި އެޒުއަރ ވޯކްފްލޯތައް ބަދަލެއް ނުގެނެސް މަސައްކަތް ކުރެއެވެ.
ޚިދުމަތްދޭ ފަރާތެއް ޚިޔާރުކުރުން
provider އިންޕުޓް azure (ޑިފޯލްޓް)، aws ނުވަތަ google އަށް ސެޓް ކުރުމަށްފަހު އެ ޕްރޮވައިޑަރުގެ ކްރެޑެންޝިއަލް ސަޕްލައި ކުރާށެވެ. ކޮންމެ އެކްޝަން ކޯލަކަށް ބޭނުންކުރެވެނީ އެންމެ ޕްރޮވައިޑަރެކެވެ. މި އެކްޝަން ޑިޓާމިނިސްޓިކް ގޮތުން ފެކްޓަރީއެއްގެ ފަހަތުގައި ހުންނަ އެސްޑީކޭ އަށް ޑެލިގޭޓް ކުރެވެއެވެ.
ޕްރޮވައިޑަރ ކޮމްޕެރިޝަން
ސަބްސްކްރިޕްޝަންކީ، އެންޑްޕޮއިންޓް، ރީޖަން (އޮޕްޝަނަލް)
އޯ.އައި.ޑީ.ސީ / ޑިފޯލްޓް ޗެއިން، ނުވަތަ awsAccessKeyId + awsSecretAccessKey؛ އަވްސްރީޖަން
ގޫގުލް އެޕިކީ ނުވަތަ ގޫގުލް ކްރެޑެންޝަލްސް (ސާވިސް އެކައުންޓް ޖޭއެސްއޯއެން)
Azure AI Translator (default)
ޑިފޯލްޓް ޕްރޮވައިޑަރ އެޒޫރ އޭއައި ޓްރާންސްލޭޓަރ ރިސޯސް އަދި ޕާސް 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-sdk/client-translate. އޯއައިޑީސީ އަށް އިސްކަން ދޭށެވެ aws-actions/configure-aws-credentials ދިގު މުއްދަތަކަށް ދިގު މުއްދަތަކަށް އެއްވެސް ސިއްރު ރައްކާ ނުކުރެވޭ ގޮތަށް އޯއައިޑީސީ އަށް އިސްކަން ދޭށެވެ. އެހެން ގޮތަކަށް awsAccessKeyId އަދި awsSecretAccessKey ޕާސް ކޮށްލާށެވެ. ސަރަހައްދެއް އަބަދުވެސް ބޭނުންވާނީ awsRegion ނުވަތަ AWS_REGION ތިމާވެށި ވޭރިއަބަލް މެދުވެރިކޮށެވެ.
Official AWS docs
- Amazon Translate overview
- TranslateText API reference
- Setting formality
- Using brevity
- Custom terminology
- Parallel data
- Supported languages
އޯ.އައި.ޑީ.ސީ (ރިކޮމެންޑެޑް)
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"]'އޯ.އައި.ޑީ.ސީ.ގެ ބަދަލުގައި ސްޓެޓިކް ކީތައް ބޭނުންކުރުމަށް aws-actions/configure-aws-credentials ސްޓެޕް ޑްރޮޕް ކުރުމަށްފަހު awsAccessKeyId / awsSecretAccessKey (ވިއަރ secrets) ޕްލަސް awsRegion.
ގޫގުލް ކްލައުޑް ޓްރާންސްލޭޝަން
ބޭނުންކުރަނީ @google-cloud/translate (v2). އޭޕީއައި ކީ (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ލޮކޭލް ކޯޑުތައް ޕްރޮވައިޑަރަކަށް ތަފާތު
ކޮންމެ ޕްރޮވައިޑަރަކުން ވެސް އެމީހެއްގެ އަމިއްލަ ލޯކަލް ކޯޑުތައް ބޭނުންކުރެ އެވެ (މިސާލަކަށް ސިމްޕްލިފައިޑް ޗައިނީޒް އަކީ އެޒުއަރ ގައި zh-Hans، އޭޑަބްލިއުއެސް ގައި zh އަދި ގޫގުލްގައި zh-CN އެވެ). ކޯޑުތައް އެޒް އިޒް އިން ގޮސް އައުޓްޕުޓް ފައިލް ނަންތައް ޑްރައިވް ކުރާތީ toLocales ޕްރޮވައިޑާ ސަޕޯޓް ކުރާ ވެލިއުތައް ޚިޔާރުކުރާށެވެ.