Repository - API - Source
Complete rewrite of the library since version 2
Initialization code changed from:
const enBundle = new FluentBundle('en')
const ukBundle = new FluentBundle('uk')
const fluent = createFluentVue({
locale: 'en',
bundles: [enBundle, ukBundle]
})
to:
const enBundle = new FluentBundle('en')
const ukBundle = new FluentBundle('uk')
const fluent = createFluentVue({
bundles: [enBundle]
})
Instead of using locale
property to select current locale, bundles
property is now used as current negotiated fallback chain of languages.
This allows consumers to choose language negotiation logic suitable for their app.
fluent-vue
fluent-vue
fluent-vue
import { createFluentVue } from 'fluent-vue'
const fluent = createFluentVue({
locale: 'en',
bundles: bundles
})
Vue.use(fluent)
bundle
option plugin now accepts bundles
option with array of bundles