stefalda/ReactNativeLocalization

Quick way to get stats on translations

Open

#77 opened on May 18, 2017

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (891 stars) (119 forks)batch import
enhancementhelp wanted

Description

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 :)

Contributor guide