Skip to content

Instantly share code, notes, and snippets.

@jpetto
Created November 1, 2013 15:56
Show Gist options
  • Save jpetto/7267506 to your computer and use it in GitHub Desktop.
Save jpetto/7267506 to your computer and use it in GitHub Desktop.
Sublime Text snippets for mozilla.org L10n.
<snippet>
<content><![CDATA[{{ _('$SELECTION') }}]]></content>
<description>Wrap string for l10n</description>
</snippet>
<snippet>
<content><![CDATA[{% trans %}
$SELECTION
{% endtrans %}]]></content>
<description>Wrap string for l10n</description>
</snippet>
[
{ "keys": ["super+shift+w"], "command": "insert_snippet", "args": { "name": "Packages/User/l10n.sublime-snippet" } },
{ "keys": ["super+shift+t"], "command": "insert_snippet", "args": { "name": "Packages/User/l10n_trans.sublime-snippet" } }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment