You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use the yarn translation scripts to make the deepl translation to portuguese (pt-pt), but was unable, here is the output:
/mnt/d/git/nosgestesclimat$ DEEPL_API_KEY=<deepl_auth_key> yarn translate:rules
yarn run v1.22.19
warning ../package.json: No license field
$ node scripts/i18n/translate-rules.js
Parsing rules of 'data/**/*.yaml'
Getting missing rule for en-us...
Found no new entry to translate...
Getting missing rule for pt-pt...
Translating 2055 new entries to pt-pt...
pt-pt | 2053/2055 | ████████████████████████████████████████ | Translating alimentation . boisson . sucrées . facteur...
[SKIPPED] - actions:
Glossary not found, message: Not found
[SKIPPED] - actions pétrole:
Glossary not found, message: Not found
[SKIPPED] - alimentation . réduire viande . par deux:
Glossary not found, message: Not found
[SKIPPED] - alimentation . réduire viande . par deux:
Glossary not found, message: Not found
[SKIPPED] - alimentation . réduire viande . par deux . par semaine:
Glossary not found, message: Not found
...
This happens both in the nosgestesclimat, and the nosgestesclimat-site repos.
The text was updated successfully, but these errors were encountered:
micaelbatista
changed the title
Translation script doesn't work for Portuguese (pt-pt) | Le script de traduction ne fonctionne pas pour le portugais (pt-pt)
Translation script doesn't work for Portuguese (pt-pt)
Feb 20, 2023
Thanks for the report ! Yes, I think the drawbacks of not using the glossary are not primordial, we can live without it if it enables a new language :)
What do you think @EmileRolley ?
For now, DeepL's glossary is limited in pair of languages supported. Consequently, I think we need to implement ourself a glossary step in our translation workflow.
I tried to use the yarn translation scripts to make the deepl translation to portuguese (pt-pt), but was unable, here is the output:
This happens both in the nosgestesclimat, and the nosgestesclimat-site repos.
After further investigation, I found out that currently DeepL doesn't support the portuguese lang in the glossary.
Is it possible to skip the glossary and do the translation directly?
The text was updated successfully, but these errors were encountered: