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>

Project details


Release history Release notifications

This version
History Node

1.4.2

History Node

1.3

History Node

1.2.2

History Node

1.2.1

History Node

1.2

History Node

1.1

History Node

1.0

History Node

0.2.1

History Node

0.2

History Node

0.1.8

History Node

0.1.7

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
babel_vue_extractor-1.4.2-py2-none-any.whl (8.4 kB) Copy SHA256 hash SHA256 Wheel py2 Nov 20, 2017
babel_vue_extractor-1.4.2-py3-none-any.whl (8.4 kB) Copy SHA256 hash SHA256 Wheel py3 Nov 20, 2017
babel-vue-extractor-1.4.2.tar.gz (10.7 kB) Copy SHA256 hash SHA256 Source None Nov 20, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page