mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-27 22:49:42 -08:00
silentTranslationWarn
if not development
This commit is contained in:
parent
58aa83331e
commit
fa9d26416c
|
@ -45,6 +45,6 @@ export const i18n = createI18n({
|
||||||
locale: localStorage.locale || "en",
|
locale: localStorage.locale || "en",
|
||||||
fallbackLocale: "en",
|
fallbackLocale: "en",
|
||||||
silentFallbackWarn: true,
|
silentFallbackWarn: true,
|
||||||
silentTranslationWarn: false,
|
silentTranslationWarn: process.env.NODE_ENV !== "development",
|
||||||
messages: languageList,
|
messages: languageList,
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import "bootstrap";
|
import "bootstrap";
|
||||||
import { createApp, h } from "vue";
|
import { createApp, h } from "vue";
|
||||||
|
import contenteditable from "vue-contenteditable";
|
||||||
import Toast from "vue-toastification";
|
import Toast from "vue-toastification";
|
||||||
import contenteditable from "vue-contenteditable"
|
|
||||||
import "vue-toastification/dist/index.css";
|
import "vue-toastification/dist/index.css";
|
||||||
import App from "./App.vue";
|
import App from "./App.vue";
|
||||||
import "./assets/app.scss";
|
import "./assets/app.scss";
|
||||||
|
@ -9,10 +9,9 @@ import { i18n } from "./i18n";
|
||||||
import { FontAwesomeIcon } from "./icon.js";
|
import { FontAwesomeIcon } from "./icon.js";
|
||||||
import datetime from "./mixins/datetime";
|
import datetime from "./mixins/datetime";
|
||||||
import mobile from "./mixins/mobile";
|
import mobile from "./mixins/mobile";
|
||||||
|
import publicMixin from "./mixins/public";
|
||||||
import socket from "./mixins/socket";
|
import socket from "./mixins/socket";
|
||||||
import theme from "./mixins/theme";
|
import theme from "./mixins/theme";
|
||||||
import publicMixin from "./mixins/public";
|
|
||||||
|
|
||||||
import { router } from "./router";
|
import { router } from "./router";
|
||||||
import { appName } from "./util.ts";
|
import { appName } from "./util.ts";
|
||||||
|
|
||||||
|
@ -27,10 +26,10 @@ const app = createApp({
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
appName: appName
|
appName: appName
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
render: () => h(App),
|
render: () => h(App),
|
||||||
})
|
});
|
||||||
|
|
||||||
app.use(router);
|
app.use(router);
|
||||||
app.use(i18n);
|
app.use(i18n);
|
||||||
|
|
Loading…
Reference in a new issue