2021-06-10 01:36:20 +02:00
|
|
|
import {Translation} from "./UI/i18n/Translation";
|
|
|
|
import Locale from "./UI/i18n/Locale";
|
|
|
|
import Combine from "./UI/Base/Combine";
|
2020-08-31 02:59:47 +02:00
|
|
|
|
2021-06-10 01:36:20 +02:00
|
|
|
|
|
|
|
new Combine(["Some language:",new Translation({en:"English",nl:"Nederlands",fr:"Françcais"})]).AttachTo("maindiv")
|
|
|
|
|
|
|
|
Locale.language.setData("nl")
|
|
|
|
window.setTimeout(() => {
|
|
|
|
Locale.language.setData("en")
|
|
|
|
}, 1000)
|
|
|
|
|
|
|
|
window.setTimeout(() => {
|
|
|
|
Locale.language.setData("fr")
|
|
|
|
}, 5000)
|