gulp-i1337n
A gulp plugin for static translations. Uses babylon under the hood.
Install
yarn add gulp-i1337n --dev
Usage
const gulp = ;const i1337n = ; gulp;
Turns this:
{ console;}
into this:
{ console;}
API
Simply pipe the package's export.
i1337n(translations[, options])
translations
Your object of translations. Keys are replaced with values. Value must be a string.
options (optional)
Two properties:
func
(string) - the function name to search for, default__
strict
(boolean) - should the plugin fail on missing translation
License
MIT