mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-27 06:29:48 -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",
|
||||
fallbackLocale: "en",
|
||||
silentFallbackWarn: true,
|
||||
silentTranslationWarn: false,
|
||||
silentTranslationWarn: process.env.NODE_ENV !== "development",
|
||||
messages: languageList,
|
||||
});
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import "bootstrap";
|
||||
import { createApp, h } from "vue";
|
||||
import contenteditable from "vue-contenteditable";
|
||||
import Toast from "vue-toastification";
|
||||
import contenteditable from "vue-contenteditable"
|
||||
import "vue-toastification/dist/index.css";
|
||||
import App from "./App.vue";
|
||||
import "./assets/app.scss";
|
||||
|
@ -9,10 +9,9 @@ import { i18n } from "./i18n";
|
|||
import { FontAwesomeIcon } from "./icon.js";
|
||||
import datetime from "./mixins/datetime";
|
||||
import mobile from "./mixins/mobile";
|
||||
import publicMixin from "./mixins/public";
|
||||
import socket from "./mixins/socket";
|
||||
import theme from "./mixins/theme";
|
||||
import publicMixin from "./mixins/public";
|
||||
|
||||
import { router } from "./router";
|
||||
import { appName } from "./util.ts";
|
||||
|
||||
|
@ -27,10 +26,10 @@ const app = createApp({
|
|||
data() {
|
||||
return {
|
||||
appName: appName
|
||||
}
|
||||
};
|
||||
},
|
||||
render: () => h(App),
|
||||
})
|
||||
});
|
||||
|
||||
app.use(router);
|
||||
app.use(i18n);
|
||||
|
|
Loading…
Reference in a new issue