@aofl/i18n-loader

The **\@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.

Usage no npm install needed!

<script type="module">
  import aoflI18nLoader from 'https://cdn.skypack.dev/@aofl/i18n-loader';
</script>

README

@aofl/i18n-loader

The @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.

Getting started

Run npm i -D @aofl/i18n-loader

Then add the loader to your webpack config:

module: {
  rules: [
    {
      test: /language\.js$/,
      use: [
        {
          loader: '@aofl/i18n-loader',
          options: {
            cache: true
          }
        }
      ]
    }
  ]
}