Gettext Style i18n for Modern JavaScript Appsvar i18n = new Jed({ locale_data: { ... } }); // Use the chainable API i18n.translate("There is one translation.") .onDomain("messages") .withContext("male") .ifPlural( num, "There are %d translations." ) .fetch( num ); // Or kick it old school var out = i18n.dnpgettext( "messages", "male", "There is one translation.", "There are %d translations.", num
{{#tags}}- {{label}}
{{/tags}}