A iriti i te hoê aniraa i muri a'e i te hororaa tata'itahi
- 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 : iritiraa no te puohu
with: sourceLocale: en include: | apps/web/**/*.en.resx packages/shared/**/*.en.json exclude: | **/dist/** **/__tests__/**Glossary no te mau i'oa e te mau parau no te mau tao'a
A tuu i te hoê .github/resource-translator.yml i roto i te repo :
glossary: Acme: Contoso Octocat: Octocat ".NET": ".NET" "C++": "C++"E i muri a'e i te faaohipahia te mau ta'o no te iritiraa, no reira, e tape'a noa te iritiraa matini i te tapa'o ta outou e au a'e noa'tu e, ua taui te hoho'a i te reira no te hoê â i'oa.
Tuhaa no te taata iriti parau (ohipa / tuhaa fenua)
with: sourceLocale: en subscriptionKey: ${{ secrets.TRANSLATOR_KEY }} endpoint: ${{ secrets.TRANSLATOR_ENDPOINT }} categoryId: 1234abcd-5678-90ef-... A haapiipii i te hoê pŭpŭ Azure Custom Translator i ni'a i te hoê pŭpŭ o te haru mai i te mau ta'o e te ta'iraa o ta outou ohipa (ture, rapaauraa, tapihooraa, ohipa aravihi i roto i te ohipa, e te tahi atu â) e a horo'a i ta'na ID na roto i te categoryId. Teie te rave'a ta'iraa puai roa a'e ta Azure e horo'a nei.
Te hi'opo'araa i te ta'iraa + te faaheporaa etaeta
# .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 A amui i te hoê categoryId Custom Translator e te profanityAction e te allowFallback: false no te haapapû i te hoê reo tamau e eita e manuïa i te tereraa ohipa mai te mea e, aita e faanahoraa no te hoê o te mau vahi ta outou i opua.
Dry run hou a tu'ama ai i te tereraa ohipa
with: dryRun: true failOnError: false E horo'a noa mai te ohipa i te mau haapotoraa e te hoê haapotoraa taahiraa, aita râ e putu'ite i papa'ihia. A amui atu i te failOnError: false no te faaite i te mau fifi atoa ei faaararaa a faahiti noa ai outou.