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>
<div :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.3.tar.gz
(10.6 kB
view hashes)
Built Distributions
Close
Hashes for babel_vue_extractor-1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63b68dc913acae1fe6152564fae0345369a1647a246c2b97cb67afb798e36768 |
|
MD5 | af0c6d4d8b0e2813e6b59624a1950008 |
|
BLAKE2b-256 | 0404a26d517aa4614daa2e7322573b44f274712cec4f0683bc1126251f5c7f29 |
Close
Hashes for babel_vue_extractor-1.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3edbc2a9a61d12c00cddac43fc1c8db44a5bdc5339c4c8b6cf76c2daa6062d2 |
|
MD5 | 4fe6fee2251416f178696adc0cacca7c |
|
BLAKE2b-256 | b6a27f9afcf634461eab2ddffd3c92dcd58dc3d04d99087cfda40cb327d4b984 |