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.

Filename, size & hash SHA256 hash help File type Python version Upload date
babel_vue_extractor-1.4.3-py2-none-any.whl (7.1 kB) Copy SHA256 hash SHA256 Wheel py2
babel_vue_extractor-1.4.3-py3-none-any.whl (7.1 kB) Copy SHA256 hash SHA256 Wheel py3
babel-vue-extractor-1.4.3.tar.gz (10.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

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