Bula kopo ea ho hula ka mor'a ho matha ka 'ngoe le e' ngoe
- 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: phetolelo ea scope ka sephutheloana
with: sourceLocale: en include: | apps/web/**/*.en.resx packages/shared/**/*.en.json exclude: | **/dist/** **/__tests__/**Glossary bakeng sa mabitso a brand le mantsoe a sehlahisoa
Beha .github/resource-translator.yml ho repo:
glossary: Acme: Contoso Octocat: Octocat ".NET": ".NET" "C++": "C++"Mantsoe a glossary a sebelisoa Ka mor'a phetolelo, ka hona tlhahiso e fetoletsoeng ka mochini e boloka letšoao leo u le ratang le ha mohlala o le fapanyetsana bakeng sa synonym.
Sehlopha sa mofetoleli oa tloaelo (indasteri / domain)
with: sourceLocale: en subscriptionKey: ${{ secrets.TRANSLATOR_KEY }} endpoint: ${{ secrets.TRANSLATOR_ENDPOINT }} categoryId: 1234abcd-5678-90ef-... Koetlisa sehlopha sa Azure Custom Translator ho corpus e nkang mantsoe le molumo oa hau oa indasteri (molao, bongaka, papatso, boenjiniere ba kahare, jj.) 'me u fetise ID ea eona ka categoryId. Ena ke molumo o matla ka ho fetisisa oa molumo o fanang ka Azure.
Taolo ea molumo + ho oela ka thata
# .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 Kopanya mofetoleli oa moetlo categoryId le profanityAction le allowFallback: false ho qobella lentsoe le sa fetoheng le ho hloleha ts'ebetso haeba sehlopha se khethiloeng se se na ts'ebetso bakeng sa e 'ngoe ea libaka tseo u li shebileng.
Dry run pele o bula ts'ebetso ea ts'ebetso
with: dryRun: true failOnError: false Ketso e ntse e fana ka liphetho tse khuts'oane le kakaretso ea mohato, empa ha ho na lifaele tse ngotsoeng. Kopanya le failOnError: false ho hlahisa taba e 'ngoe le e' ngoe e le temoso ha u ntse u pheta-pheta.