Skip to content
This repository was archived by the owner on Sep 17, 2022. It is now read-only.

fluent-vue/fluent-vue-loader

Repository files navigation

⚠ DEPRECATED ⚠

Funtionatily was moved to unplugin-fluent-vue

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>

About

fluent-vue Webpack loader that adds support for custom blocks in Vue SFC

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy