Open teolemon opened 5 years ago
How can I get or compute the % of translation?
percentage = count(msgstr)/count(msgstr.empty)
--> In git /lang/[lc]/texts/nutriscore.html etc. I only have the resulting HTML.
The problem is that your local value won't necessarily match the completness score of the current version on Crowdin. IMHO, the current values from Crowndin need to be used, therefore we need to investigate if the Crowdin API supports returning the % values that they already compute.
@stephanegigandet @teolemon can we close this?
@VaiTon thanks for the reminder and your efforts to close issues :+1: but I'm afraid we can't close this one. It's a very interesting need in my opinion.
I could make some tests with my Power User Script but I need to know how can I find the corresponding URL in crowdin. How do I know https://world.openfoodfacts.org/code-of-conduct is /master/lang/en/texts/code-of-conduct.html
in crowdin with https://translate.openfoodfacts.org/translate/openfoodfacts/452/en-fr URL?
@hangy @CharlesNepote there's indeed an API for this: https://support.crowdin.com/api/v2/#operation/api.projects.files.languages.progress.getMany We probably need to create a mapping between file name and file id in the config file
This page is 17% translated to Romanian. You can help improve that by clicking here.