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>

Issue Tracking


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 hashes)

Uploaded source

Built Distributions

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