UNPKG

494 BMarkdownView Raw
1# @aofl/i18n-loader
2
3The **\@aofl/i18n-loader** generates `language.js` files used by `@aofl/i18n-mixin` from `.po` files. See the `@aofl/i18n-mixin` docs for more usage details.
4
5## Getting started
6
7Run `npm i -D @aofl/i18n-loader`
8
9Then add the loader to your webpack config:
10
11```js
12module: {
13 rules: [
14 {
15 test: /language\.js$/,
16 use: [
17 {
18 loader: '@aofl/i18n-loader',
19 options: {
20 cache: true
21 }
22 }
23 ]
24 }
25 ]
26}
27```