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:

Babel — Internationalization library for Python. Site:


pip install babel-vue-extractor


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

Download files

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

Files for babel-vue-extractor, version 1.4.3
Filename, size File type Python version Upload date Hashes
Filename, size babel_vue_extractor-1.4.3-py2-none-any.whl (7.1 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size babel_vue_extractor-1.4.3-py3-none-any.whl (7.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size babel-vue-extractor-1.4.3.tar.gz (10.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page