airbnb / polyglot.js

Give your JavaScript the ability to speak many languages.
http://airbnb.github.io/polyglot.js
BSD 2-Clause "Simplified" License
3.71k stars 208 forks source link

include a function to get size of phrases #66

Closed tuevo21 closed 8 years ago

ljharb commented 8 years ago

What's the use case for this method?

tuevo21 commented 8 years ago

I think if users do multiple 'extend' calls, each with different number of objects, they can double check each time by looking up size method. In general, it just helps users to know how many objects are in phrases at any point.

ljharb commented 8 years ago

What would they be checking though? Knowing the number of phrases doesn't tell you if they're the right ones.

tuevo21 commented 8 years ago

You are correct - it is not necessary.