Get started with i18next-locize-backend CDN
MIT licensed
Node.js backend for i18next, Locize translation management.
Tags:- i18next
- i18next-backend
Stable version
Copied!
How to start using i18next-locize-backend CDN
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/i18next@latest/i18next.min.js"></script>
<script src="https://cdn.cdnhub.io/i18next-locize-backend/6.4.1/i18nextLocizeBackend.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/locize@latest/locize.min.js"></script>
<script src="path/to/your/locales.json"></script>
<title>Get started with i18next-locize-backend CDN - cdnhub.io</title>
</head>
<body>
<button id="change-language">Change Language</button>
<script>
const i18n = new I18n({
backend: {
load: (namespace, callback) => {
i18nextLocizeBackend.load(namespace, callback);
},
addResource: (namespace, key, value) => {
i18next.addResource(namespace, key, value);
},
addLng: (language, ns, callback) => {
i18next.init(ns, null, () => {
callback();
});
},
},
init: () => {},
lng: 'en',
resources: {},
});
document.getElementById('change-language').addEventListener('click', () => {
i18n.changeLanguage('fr').then(() => {
console.log(i18n.t('welcome'));
});
});
</script>
</body>
</html>
All versions
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.0.7
0.1.0
0.1.1
0.2.0
1.0.0
1.1.0
1.2.0
1.2.1
1.3.0
1.3.1
1.4.0
1.4.1
1.4.2
1.5.0
1.6.0
1.7.0
1.7.1
1.8.0
1.9.0
2.0.0
2.0.1
2.0.2
2.1.0
2.2.0
2.2.1
2.2.2
3.0.0
3.0.1
3.0.2
3.0.3
3.1.0
3.1.1
3.1.2
3.1.3
4.0.0
4.0.1
4.0.10
4.0.11
4.0.12
4.0.13
4.0.2
4.0.3
4.0.4
4.0.5
4.0.6
4.0.7
4.0.8
4.0.9
4.1.0
4.1.1
4.1.10
4.1.2
4.1.3
4.1.4
4.1.5
4.1.6
4.1.7
4.1.8
4.1.9
4.2.0
4.2.1
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.2.7
4.2.8
4.3.0
5.0.0
5.0.1
5.1.0
5.1.1
5.1.2
5.1.3
5.1.4
5.1.5
6.0.0
6.0.1
6.1.0
6.1.1
6.2.0
6.2.1
6.2.2
6.2.3
6.3.0
6.3.1
6.4.0
6.4.1
6.4.2
6.4.3
6.5.0
6.5.1
6.5.2
6.6.0
7.0.0
*** 7.0.1