Skip to content

Instantly share code, notes, and snippets.

@muffinresearch
Last active December 30, 2015 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muffinresearch/7828184 to your computer and use it in GitHub Desktop.
Save muffinresearch/7828184 to your computer and use it in GitHub Desktop.
node_modules/*

Steps to reproduce

npm install jsxgettext

Then run this command a few times:

node_modules/.bin/jsxgettext test.html -o messages.pot --join-existing -L Jinja

msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2013-12-06 16:48+0000\n"
"Content-Type: text/plain;\n"
#: templates/foo.html:1
msgid "This is a <a href=\"#\">Link</a>"
msgstr ""
#!/usr/bin/env sh
npm install jsxgettext
node_modules/.bin/jsxgettext test.html -o messages.pot --join-existing -L Jinja
<p>{{ gettext('This is a <a href="#">Link</a>') }}</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment