Tsegulani pempho lokoka pambuyo pa kuthamanga kulikonse
- 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: kumasulira kwakukulu pa phukusi lililonse
with: sourceLocale: en include: | apps/web/**/*.en.resx packages/shared/**/*.en.json exclude: | **/dist/** **/__tests__/**Glossary ya mayina amtundu ndi mawu a mankhwala
Ponyani .github/resource-translator.yml mu repo:
glossary: Acme: Contoso Octocat: Octocat ".NET": ".NET" "C++": "C++"Mawu a glossary amagwiritsidwa ntchito pambuyo pake kumasulira, kotero zotsatira zomasuliridwa ndi makina zimasunga chizindikiro chanu chomwe mumakonda ngakhale pamene chitsanzocho chinasinthanitsa ndi chofanana.
Gulu la Womasulira Mwambo (makampani / gawo)
with: sourceLocale: en subscriptionKey: ${{ secrets.TRANSLATOR_KEY }} endpoint: ${{ secrets.TRANSLATOR_ENDPOINT }} categoryId: 1234abcd-5678-90ef-... Phunzitsani gulu la Azure Custom Translator pa corpus yomwe imagwira mawu anu a makampani ndi mawu (malamulo, zamankhwala, malonda, zomangamanga zamkati, ndi zina zotero) ndikudutsa ID yake kudzera pa categoryId. Iyi ndi mawu amphamvu kwambiri omwe Azure amapereka.
Kulamulira kwa kamvekedwe + kugwa kokhwima
# .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 Phatikizani categoryId Womasulira Wachizolowezi ndi profanityAction ndi allowFallback: false kuti mugwiritse ntchito mawu osasinthasintha ndikulephera kugwira ntchito ngati gulu losankhidwa lilibe kutumizidwa kwa imodzi mwa malo anu omwe mukufuna.
Kuthamanga kouma musanayambe kuyatsa ntchito
with: dryRun: true failOnError: false Mchitidwewu umatulutsabe zotsatira zachidule ndi chidule cha sitepe, koma palibe mafayilo omwe amalembedwa. Phatikizani ndi failOnError: false kuti muwonetsetse nkhani iliyonse ngati chenjezo pamene mukubwereza.