This package has been deprecated

Author message:

Use unplugin-fluent-vue instead

fluent-vue-loader
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

fluent-vue-loader

GitHub Workflow Status codecov Standard - JavaScript Style Guide GitHub license

Webpack loader that allows to use Vue custom blocks for locale messages in fluent-vue

Installation

Add fluent-vue-loader to your dev-dependencies:

For npm users:

npm install fluent-vue-loader --save-dev

For yarn users:

yarn add fluent-vue-loader --dev

Add loader to your Webpack config

module.exports = {
  module: {
    rules: [
      // ...
      {
        resourceQuery: /blockType=fluent/,
        loader: 'fluent-vue-loader',
      },
      // ...
    ]
  }
}

Example

Example of App.vue with custom block:

<template>
  <p>{{ $t('hello') }}</p>
</template>

<script>
export default {
  name: 'app'
}
</script>

<fluent locale="en">
hello = hello world!
</fluent>

Package Sidebar

Install

npm i fluent-vue-loader

Weekly Downloads

171

Version

3.0.1

License

MIT

Unpacked Size

21.4 kB

Total Files

7

Last publish

Collaborators

  • demivan