Skip to main content

A plugin for babel to work with vue.js templates

Project description

Build Status Coverage Status

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/.

https://raw.githubusercontent.com/nonamenix/babel-vue-extractor/master/babel_vuejs.png

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


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)

Uploaded Source

Built Distributions

babel_vue_extractor-1.4.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

babel_vue_extractor-1.4.3-py2-none-any.whl (7.1 kB view details)

Uploaded Python 2

File details

Details for the file babel-vue-extractor-1.4.3.tar.gz.

File metadata

File hashes

Hashes for babel-vue-extractor-1.4.3.tar.gz
Algorithm Hash digest
SHA256 dac36a49d21dc861888ade9ce923356f9fbdef476131e0e67aa712972dc767ba
MD5 2d254ea0a80a9215ccfa7177106794ac
BLAKE2b-256 49e2926f3546575c6b0f2d7664c0ff173d501eedf5e6f04e81594b967310b2d0

See more details on using hashes here.

File details

Details for the file babel_vue_extractor-1.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for babel_vue_extractor-1.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f8ebb2b941892cdcec8d77ab2805d8b29467516b08bed2d58de444243fd9a0c2
MD5 0e61d39562b6e4d2c70dec0b6a1fc764
BLAKE2b-256 d4aa8a963289a9d049bab342f6e40c4060e1d77e84f6bfeb7dc8cfd4bd93629a

See more details on using hashes here.

File details

Details for the file babel_vue_extractor-1.4.3-py2-none-any.whl.

File metadata

File hashes

Hashes for babel_vue_extractor-1.4.3-py2-none-any.whl
Algorithm Hash digest
SHA256 03c7a9d65ecd3ffa661d59562d8a96ff31ac3e7c9cc6923fd94b7210d7d2360c
MD5 c61a9dfa65e54f8cd1c5c822d380712d
BLAKE2b-256 818c6061036294642e8d8e0adab3777cc7bd8cc4e769e33ccb0838cc8083f176

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page