/babel-vue-extractor

Babel messages extractor for vuejs templates

Primary LanguagePythonApache License 2.0Apache-2.0

Babel extractor for vue.js [DEPRECATED]

Build Status Coverage Status Deprecated

Why deprecated?

Just retrieve l10n strings from compiled .js files.

Description

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