1.0.1 • Published 6 years ago
@rocketstation/babel-plugin-component-locale v1.0.1
Babel Plugin Component Locale
Babel Plugin Component Locale adds magic to components/**/locale.js
Installation
npm i @rocketstation/babel-plugin-component-locale
Usage
.babelrc
{ "plugins": ["@rocketstation/babel-plugin-component-locale"], }
Scope
components/**/locale.js
Magic
- Adds
i18n.loadNamespaces('path-to-component')
- Adds
export default $say('path-to-component')
License
Babel Plugin Component Locale is licensed under the MIT License
Created by RocketStation