Skip to content

ykshatroff/babel-vue-extractor

 
 

Repository files navigation

Babel extractor for vue.js

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>

Issue Tracking

GitHub: https://github.com/nonamenix/babel-vue-extractor/issues

About

Babel messages extrator for vuejs templates

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.0%
  • Makefile 4.0%