Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add config option to select how translation percentages are calculated #2246

Open
krisgerhard opened this issue Apr 15, 2024 · 3 comments
Assignees

Comments

@krisgerhard
Copy link

Currently percentages are calculated based on word count.
For some users it might make more sense to get an overview based on key count.

This topic was also discussed in #2021

@JanCizmar
Copy link
Contributor

Thanks! Can you please elaborate more on, whats the exact reason why would you like to count with the keys and not the words. AFAIK words are standard in the localization world.

@krisgerhard
Copy link
Author

Our word-based percentage is 21, when key-based would be 41. The untranslated labels are very long thus the big difference.

41 represents better the state of the translation file -> "41% of all the label in the application are translated."
21 represents better the amount of work the translator needs to do.

So I think it comes down to get observer's information needs. I, as developer, want to know how much of the application is translated.

On a sidenote. Would I ever reach 100% if base language has more words than given language?

@JanCizmar
Copy link
Contributor

JanCizmar commented Apr 15, 2024

Thanks for clarification.

On a sidenote. Would I ever reach 100% if base language has more words than given language?

Yes, since the base words are always counted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants