stefalda/ReactNativeLocalization

Quick way to get stats on translations

開放

#77 建立於 2017年5月18日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (119 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (891 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南