ReactNativeLocalization
ReactNativeLocalization copied to clipboard
Quick way to get stats on translations
Would be awesome if there was a few new functions added to the API that allowed stats...
For instance, since my primary language is English, I could call a function:
console.log(myStrings.getStats())
and in the console it would show:
English: 577 strings
Spanish: 545 strings
Mandarin: 12 strings (4 blank)
Italian: 574 strings
There could also be a function like:
console.log(myStrings.getMissingStrings('it'))
Since italian (it) is missing 3 strings, it would show:
it : {
Hello:"",
Goodbye:"",
Nice:""
}
This would give us as developers a good way to see how much of our work has been translated, and also easily send strings to our translators that need to be translated.
P.S. Make this available for react-localization too :)