2.0.0-beta.10 • Published 3 years ago
@qutejs/i18n v2.0.0-beta.10
Qute Items Group (@qutejs/i18n)
A Qute internationalization plugin based on polyglot.
Qute is a reactive component model designed for plain old javascript lovers.
Getting Started
Use the Qute project generator to create a new Qute application or component project:
npm init @qutejs
Go here for the Qute i18n documentation.
Installing
npm install @qutejs/i18n
Usage
import Qute from '@qutejs/runtime';
import '@qutejs/i18n';
var i18n = new Qute.Intl({
resources: {
en: {
hello: 'Hello World!'
},
fr: {
hello: 'Bonjour monde!'
},
ro: 'remote/messages-ro.json'
}
});
i18n.load('en').then(function() {
// phrases loaded -> ready to translate
// you can mount your application now
})
Then you can use the translate method t()
from a Qute component template:
<div>{{t('hello')}}</div>
Building
Qute packages are built from the Qute multi-package repository root. See github.
Authors
Bogdan Stefanescu - Intial Work - Quandora
License
2.0.0-beta.9
3 years ago
2.0.0-beta.10
3 years ago
2.0.0-beta.8
3 years ago
2.0.0-beta.7
3 years ago
2.0.0-beta.6
3 years ago
2.0.0-beta.5
3 years ago
2.0.0-beta.4
3 years ago
2.0.0-beta.3
3 years ago
2.0.0-beta.2
3 years ago
2.0.0-beta.1
4 years ago
2.0.0-beta
4 years ago
1.0.0-rc.12
4 years ago
1.0.0-rc.11
4 years ago
1.0.0-rc.10
4 years ago
1.0.0-rc.9
4 years ago
1.0.0-rc.8
4 years ago
1.0.0-rc.7
4 years ago
1.0.0-rc.6
4 years ago
1.0.0-rc.5
4 years ago
1.0.0-rc.4
4 years ago
1.0.0-rc.3
4 years ago
1.0.0-rc.2
4 years ago
1.0.0-rc.1
4 years ago