Skip to content

Instantly share code, notes, and snippets.

@Blucknote
Created April 3, 2019 14:55
Show Gist options
  • Save Blucknote/ab9861992c17fdf55f3d40fa43956ee9 to your computer and use it in GitHub Desktop.
Save Blucknote/ab9861992c17fdf55f3d40fa43956ee9 to your computer and use it in GitHub Desktop.
replace django {% trans '' %} to jinja {{_('')}}
\{%\s?trans\s(.+)\s?%\}
{{ _($1) }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment