-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.ts
More file actions
35 lines (31 loc) · 848 Bytes
/
main.ts
File metadata and controls
35 lines (31 loc) · 848 Bytes
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
import { Aurelia } from 'aurelia-framework';
import { PLATFORM } from 'aurelia-pal';
export function configure(aurelia: Aurelia) {
aurelia.use
.standardConfiguration()
.plugin('aurelia-validation')
.plugin('aurelia-i18n', (instance) => {
return instance.setup({
resources: {
en: {
translation: {
title: 'Hello world!'
}
}
},
lng: 'en',
fallbackLng: 'en',
debug: false
});
})
.plugin('aurelia-dialog')
.plugin('custom-legacy-plugin')
.feature(PLATFORM.moduleName('resources/index'));
if (environment.debug) {
aurelia.use.developmentLogging();
}
if (environment.testing) {
aurelia.use.plugin(PLATFORM.moduleName('aurelia-testing'));
}
aurelia.start().then(() => aurelia.setRoot('app'));
}