@vslutov/jsxgettext-stream
Version:
A tool like jsxgettext, but works for es6 + jsx that babel support
22 lines (20 loc) • 759 B
JavaScript
exports.DEFAULT_FUNCTION_NAMES = {
gettext: ['msgid'],
dgettext: ['domain', 'msgid'],
ngettext: ['msgid', 'msgid_plural', 'count'],
dngettext: ['domain', 'msgid', 'msgid_plural', 'count'],
pgettext: ['msgctxt', 'msgid'],
dpgettext: ['domain', 'msgctxt', 'msgid'],
npgettext: ['msgctxt', 'msgid', 'msgid_plural', 'count'],
dnpgettext: ['domain', 'msgctxt', 'msgid', 'msgid_plural', 'count']
}
exports.DEFAULT_HEADERS = {
'project-id-version': 'PACKAGE VERSION',
'language-team': 'English <en@li.org>',
'po-revision-date': 'YEAR-MO-DA HO:MI+ZONE',
'language': 'en_US',
'mime-version': '1.0',
'content-type': 'text/plain; charset=UTF-8',
'content-transfer-encoding': '8bit',
'plural-forms': 'nplurals = 2; plural = (n !== 1);'
}