Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 17, 2022. It is now read-only.

fluent-vue/fluent-vue-loader

Open more actions menu

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

  •  
  •  
  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.