ދުވުމަށްފަހު ޕުލް ރިކުއެސްޓް ހުޅުވާ
- 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-... އިންޑަސްޓްރީގެ ލަފުޒާއި ޓޯން (ލީގަލް، މެޑިކަލް، މާކެޓިން، އިންޓާނަލް އިންޖިނިއަރިން ފަދަ ކަންތައްތައް) ކެޕްޗާ ކުރާ ކޯޕަސްއެއްގައި އެޒުއަރ 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 އެއްކޮށްލާށެވެ.