Code Monkey home page Code Monkey logo

unplugin-fluent-vue's Introduction

SWUbanner

fluent-vue logo

Internationalization plugin for Vue.js

GitHub Workflow Status codecov npm bundle size Standard - JavaScript Style Guide GitHub license

fluent-vue is a Vue.js integration for Fluent.js - JavaScript implementation of Mozilla's Project Fluent

๐Ÿš€ Features

  • Simple api for developers: Just 2 methods, 1 directive and 1 component
  • Powerfull syntax for translators: Use the entire expressive power of every language without need for changes to application source code
  • Isolation: Locale-specific logic doesn't leak to other locales. A simple string in English can map to a complex multi-variant translation in another language
  • Seamless migration: Works for both Vue 3 and 2
  • No bundler required: Usable via CDN

๐ŸŽ‰ Example

<template>
  <div>
    <div>{{ $t('hello-user', { userName }) }}</div>
    <div>{{ $t('shared-photos', { userName, photoCount, userGender }) }}</div>
  </div>
</template>

<fluent locale="en">
# Simple things are simple.
hello-user = Hello, {$userName}!

# Complex things are possible.
shared-photos =
  {$userName} {$photoCount ->
     [one] added one photo
    *[other] added {$photoCount} new photos
  } to {$userGender ->
     [male] his stream
     [female] her stream
    *[other] their stream
  }.
</fluent>

๐Ÿ“– Documentation

Documentation can be found here: https://fluent-vue.demivan.me

Examples for different Vue.js versions and build systems can be found here.

๐Ÿ“œ Changelog

Changes for each release are documented in the CHANGELOG.md.

๐Ÿ“ฆ Packages

Project NPM Repo
fluent-vue fluent-vue fluent-vue/fluent-vue
unplugin-fluent-vue unplugin-fluent-vue fluent-vue/unplugin-fluent-vue

๐Ÿ“„ License

MIT License ยฉ 2020 Ivan Demchuk

unplugin-fluent-vue's People

Contributors

demivan avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

isabella232

unplugin-fluent-vue's Issues

Throw syntax errors for ftl files

Describe the bug

There is no syntax error on files

Reproduction

No response

System Info

pnpmPackages

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct.
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/test.yml
  • actions/checkout v4.1.1
  • actions/setup-node v4.0.1
  • pnpm/action-setup v2.4.0
  • codecov/codecov-action v3
  • actions/checkout v4.1.1
  • actions/setup-node v4.0.1
  • pnpm/action-setup v2.4.0
  • actions/checkout v4.1.1
  • actions/checkout v4.1.1
  • actions/setup-node v4.0.1
  • pnpm/action-setup v2.4.0
npm
package.json
  • @fluent/syntax ^0.19.0
  • @rollup/pluginutils ^5.0.0
  • magic-string ^0.30.0
  • unplugin ^1.0.0
  • @antfu/eslint-config-ts 0.40.0
  • @release-it-plugins/lerna-changelog 6.0.0
  • @types/node 20.10.5
  • @vitejs/plugin-vue 5.0.0
  • @vitest/coverage-istanbul ^0.34.1
  • @vue/compiler-sfc 3.3.4
  • dotenv-cli 7.2.1
  • eslint 8.46.0
  • execa 8.0.1
  • husky 8.0.3
  • lint-staged 15.2.0
  • memfs 4.2.0
  • release-it 17.0.1
  • tsup 8.0.1
  • typescript 5.1.6
  • vite 5.0.10
  • vitest 0.34.1
  • vue 3.3.4
  • vue-loader 17.2.2
  • webpack 5.88.2

  • Check this box to trigger a request for Renovate to run again on this repository

Migrate nuxt modules here

Clear and concise description of the problem

No need to have a separate package for nuxt modules now.

Suggested solution

Migrate nuxt modules into this package

Alternative

No response

Additional context

No response

Validations

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.