A plugin for babel to work with vue.js templates
Project description
Babel messages extractor for vue.js templates.
vue.js — Reactive Components for Modern Web Interfaces. Site: http://vuejs.org/.
Babel — Internationalization library for Python. Site: http://babel.pocoo.org/.
Install
pip install babel-vue-extractor
Usage
Add to your babel config
[babelvueextractor.extract.extract_vue: **.vue]
Usage in .vhtml files
<h1>{{ gettext('Hello') }}</h1>
<p> {{ ngettext('Foo', 'Foos', 1) }} </p>
<p> {{ gettext('Processed by filter')|somefilter }} </p>
<div v-text="gettext('Sometext')"></div>
Issue Tracking
GitHub: https://github.com/nonamenix/babel-vue-extractor/issues
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
babel-vue-extractor-1.2.tar.gz
(10.6 kB
view hashes)