Skip to content

Commit b8f6582

Browse files
committed
Make the VueI18n instance available for custom views
closes codecentric#1373
1 parent dcbee42 commit b8f6582

File tree

1 file changed

+4
-3
lines changed
  • spring-boot-admin-server-ui/src/main/frontend

1 file changed

+4
-3
lines changed

spring-boot-admin-server-ui/src/main/frontend/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2019 the original author or authors.
2+
* Copyright 2014-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,19 +15,19 @@
1515
*/
1616

1717
import '@/assets/css/base.scss';
18-
import moment from 'moment';
1918
import axios from '@/utils/axios';
19+
import moment from 'moment';
2020
import 'moment/locale/de';
2121
import Vue from 'vue';
2222
import VueRouter from 'vue-router';
2323
import components from './components';
24+
import i18n from './i18n';
2425
import Notifications from './notifications';
2526
import sbaConfig from './sba-config'
2627
import sbaShell from './shell';
2728
import Store from './store';
2829
import ViewRegistry from './viewRegistry';
2930
import views from './views';
30-
import i18n from './i18n';
3131

3232
moment.locale(navigator.language.split('-')[0]);
3333
Vue.use(VueRouter);
@@ -46,6 +46,7 @@ installables.forEach(view => view.install({
4646
viewRegistry,
4747
applicationStore,
4848
vue: Vue,
49+
vueI18n: i18n,
4950
axios
5051
}));
5152

0 commit comments

Comments
 (0)