-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (34 loc) · 872 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="./node_modules/systemjs/dist/system.js"></script>
<script src="./config.js"></script>
</head>
<body>
<div id="target"></div>
</body>
<script>
System.import('i18next')
.then(function(i18next) {
i18next.init({
lng: 'en',
resources: {
en: {
translation: {
"heading_1": "Hello World!",
"grapes": "lucious dark grapes",
"brown_fox_falls": "Failing to reach the grapes, the fox fell back to earth, landing with a big frump."
}
}
}
});
})
.then(function() {
System.import('test.html!i18nt').then(translatedText => {
document.getElementById('target').innerHTML = translatedText
});
})
</script>
</html>