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.4.2.tar.gz
(10.7 kB
view hashes)
Built Distributions
Close
Hashes for babel-vue-extractor-1.4.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e18d068461b0559aabc1ae7cb6d7fbef41e2f7e54fb723c295a6b0ee737e5aa |
|
MD5 | 25280fc6846baa830fcc98eccb55143f |
|
BLAKE2b-256 | 7967ad044fa42571c6c376487aa8dfd218a2ee2e27de194daf77d5bc1aaff33e |
Close
Hashes for babel_vue_extractor-1.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 464f4a7f40b257b8663b642d7b1df849089da99060cf5a9eeaffdf4207f5cde1 |
|
MD5 | a1bd894c112b5186e8e5947b9efc082f |
|
BLAKE2b-256 | e300699618e8f5e009e47195e00e7f36b41e79db7162d3f9f30e5eb8a9552bc1 |
Close
Hashes for babel_vue_extractor-1.4.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 484dcab295897ae14e5316a5955735375da4db247631ce7df8b5abc18e0e82d8 |
|
MD5 | 69646993ae7bba2a6c0c41288c10f461 |
|
BLAKE2b-256 | 796d840480b78b91b1d640268f6983d24ac27245178801629b1b4e60fe48e971 |