@chronotruck/vue-icu
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Vue ICU

Vue plugin wrapping around messageformat package to handle ICU format translations, the same manner as vue-i18n handle theirs.

Installation

npm install @chronotruck/vue-icu

Usage

import VueICU from '@chronotruck/vue-icu'

Vue.use(VueICU)

API

$trans method

Example

this.$trans('app.titles.welcome', {
  name: 'Jon Snow'
})

Icu component

Example

<template>
  <div>
    <Icu
      path="app.titles.welcome"
      :variables="{
        name: 'Jon Snow'
      }"
    />
  </div>
</template>

Readme

Keywords

none

Package Sidebar

Install

npm i @chronotruck/vue-icu

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

17 kB

Total Files

10

Last publish

Collaborators

  • williamdasilva
  • maffpool