Closed ntgraph closed 1 year ago
Hello @ntgraph, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!
你好 @ntgraph,为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 issue 助手 来创建 issue 以方便我们定位错误。谢谢配合!
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。
Can you create a boilerplate that we can use as a project starter.
When upgrading to Vue 3, element-plus 2.3.12. Everything crash, culprit is Day.js.
So I suggest you can post in documentation a boilerplate project including all essentials and typical settings: Vue3, element-plus, dayjs, vue-i18n with language change (minimum of 3 languages in a header), vue-i18n to add localized key-value json (individual file, en.json). So all this have to work together.
At some upgrade, things start to break and it is annoyed to waste time to fix. It is very fustrating at time for a novice developer and without proper documentation.
Hello, after banging my head for couple days i need some help on an locale related issue, specifically seleting first day of the week in el datepicker here is a snapshot of my main.ts and no matter what i change the values in dayjs and locale there is no change in the components, i tried reinstalling yarn modules, reserving the app every change but to no avail. Any help would be appreciated.
import { createApp } from "vue"; import App from "./App.vue"; import ability from "./config/ability" import { abilitiesPlugin } from '@casl/vue';
import router from "./router"; import store from "./store"; import ElementPlus from "element-plus"; import i18n from "@/core/plugins/i18n";
import ApiService from "@/core/services/ApiService"; import { initApexCharts } from "@/core/plugins/apexcharts"; import { initInlineSvg } from "@/core/plugins/inline-svg"; import { initVeeValidate } from "@/core/plugins/vee-validate"; import SmoothScroll from "vue3-smooth-scroll";
import "@/core/plugins/keenthemes"; import "@/core/plugins/prismjs"; import "bootstrap";
import locale from "element-plus/lib/locale/lang/af"; import dayjs from "dayjs"; import "dayjs/locale/af"; dayjs.locale("af");
const app = createApp(App); app.use(store); app.use(router); app.use(ElementPlus, { locale }); app.use(SmoothScroll); app.use(abilitiesPlugin, store.getters.ability, { useGlobalProperties: true }); ApiService.init(app); initApexCharts(app); initInlineSvg(app); initVeeValidate();
app.use(i18n); app.mount("#app");
Originally posted by @MilenNeshterovatgit in https://github.com/element-plus/element-plus/discussions/5770