guillaumepotier / gettext.js

gettext.js is a lightweight yet complete and accurate GNU gettext port for node and the browser.
http://guillaumepotier.github.io/gettext.js
147 stars 48 forks source link

ttag not mentioned as an alternative in README #53

Open andrewperry opened 2 years ago

andrewperry commented 2 years ago

Just wondering if there's a comparison with https://github.com/ttag-org/ttag - it's not mentioned in the README under "Why another i18n javascript library?" like Jed and i18n-next - very interested in your take on that project by comparison

guillaumepotier commented 2 years ago

Hi @andrewperry, thanks for your issue.

If you look closely, gettext.js started back in 2014, while ttag seems to begin in 2017.

After giving a quick look, this lib seems pretty solid, and maybe more active than this one.

On an other hand, it seems a little bit heavier in production, and documentation is very thin, I dunno if it embeds all the original gettext magic (appart context, plurals and ES6 synthax (wow :p)).

Please let me know if you find something more useful there that lacks gettext.js

Best

kevinlul commented 2 years ago

What about https://github.com/alexanderwallin/node-gettext?

guillaumepotier commented 2 years ago

What about https://github.com/alexanderwallin/node-gettext?

The lib you referenced is aimed for node backend purpose only, meanwhile this one is for frontend and aim to be very lightweight and minimalist. Plus I really don't get the huge plurals.js file in the lib you referenced