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.3.tar.gz
(10.9 kB
view details)
Built Distributions
File details
Details for the file babel-vue-extractor-1.4.3.tar.gz
.
File metadata
- Download URL: babel-vue-extractor-1.4.3.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dac36a49d21dc861888ade9ce923356f9fbdef476131e0e67aa712972dc767ba |
|
MD5 | 2d254ea0a80a9215ccfa7177106794ac |
|
BLAKE2b-256 | 49e2926f3546575c6b0f2d7664c0ff173d501eedf5e6f04e81594b967310b2d0 |
File details
Details for the file babel_vue_extractor-1.4.3-py3-none-any.whl
.
File metadata
- Download URL: babel_vue_extractor-1.4.3-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8ebb2b941892cdcec8d77ab2805d8b29467516b08bed2d58de444243fd9a0c2 |
|
MD5 | 0e61d39562b6e4d2c70dec0b6a1fc764 |
|
BLAKE2b-256 | d4aa8a963289a9d049bab342f6e40c4060e1d77e84f6bfeb7dc8cfd4bd93629a |
File details
Details for the file babel_vue_extractor-1.4.3-py2-none-any.whl
.
File metadata
- Download URL: babel_vue_extractor-1.4.3-py2-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03c7a9d65ecd3ffa661d59562d8a96ff31ac3e7c9cc6923fd94b7210d7d2360c |
|
MD5 | c61a9dfa65e54f8cd1c5c822d380712d |
|
BLAKE2b-256 | 818c6061036294642e8d8e0adab3777cc7bd8cc4e769e33ccb0838cc8083f176 |