alexanderwallin / node-gettext

A JavaScript implementation of gettext, a localization framework.
Other
188 stars 36 forks source link

Any clever way of checking if a translation is already added? #45

Closed sabsaxo closed 4 years ago

sabsaxo commented 6 years ago

To avoid contacting the server over and over again (even though cached).

ArmorDarks commented 6 years ago

After you've done let gt = new Gettext(...), you can check internals of the gt. Translations object completely exposed to you, so you can do any check you'd like to.

sabsaxo commented 6 years ago

Yeah, figured I had to manually do that. Thanks.