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.2.1.tar.gz
(10.8 kB
view hashes)
Close
Hashes for babel-vue-extractor-1.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4578cd9f0383bd6310a5835b18955dafaad4e0f9b1e6e04c10e5f40f8bce033 |
|
MD5 | 31b327fd4f05dee5ccac285ee8ad3199 |
|
BLAKE2b-256 | 777876956501c9e8de82803174f7f3591eca6d874c9e2d1537a6d29537caafb2 |