-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于日期框中英文翻译没有效果的问题 #20524
Comments
你好 能提供一个复现 demo 地址吗? 检查了一下 calendar 组件貌似没有这个问题 |
是在中英文切换的时候没有效果,初始化的时候是正常的
…------------------ 原始邮件 ------------------
发件人: "ElemeFE/element" <notifications@github.com>;
发送时间: 2020年12月27日(星期天) 晚上7:41
收件人: "ElemeFE/element"<element@noreply.github.com>;
抄送: "李红平"<643171715@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [ElemeFE/element] 关于日期框中英文翻译没有效果的问题 (#20524)
你好 能提供一个复现 demo 地址吗? 检查了一下 calendar 组件貌似没有这个问题
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
希望你有空能提供一个复现 demo, 不然我们也没办法帮助到你 |
demo已发,运行就能看到,代码路径:src\views\dashboard\index.vue
…------------------ 原始邮件 ------------------
发件人: "ElemeFE/element" <notifications@github.com>;
发送时间: 2020年12月27日(星期天) 晚上7:41
收件人: "ElemeFE/element"<element@noreply.github.com>;
抄送: "李红平"<643171715@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [ElemeFE/element] 关于日期框中英文翻译没有效果的问题 (#20524)
你好 能提供一个复现 demo 地址吗? 检查了一下 calendar 组件貌似没有这个问题
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
demo 在哪呢, 或者直接提供一个 github repo 也可以 |
------------------ 原始邮件 ------------------
发件人: "ElemeFE/element" <notifications@github.com>;
发送时间: 2021年1月18日(星期一) 下午4:04
收件人: "ElemeFE/element"<element@noreply.github.com>;
抄送: "李红平"<643171715@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [ElemeFE/element] 关于日期框中英文翻译没有效果的问题 (#20524)
demo 在哪呢, 或者直接提供一个 github repo 也可以
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
demo请见附件,那你最后是怎么处理了?
…------------------ 原始邮件 ------------------
发件人: "ElemeFE/element" <notifications@github.com>;
发送时间: 2021年2月2日(星期二) 下午5:46
收件人: "ElemeFE/element"<element@noreply.github.com>;
抄送: "李红平"<643171715@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [ElemeFE/element] 关于日期框中英文翻译没有效果的问题 (#20524)
你好 能提供一个复现 demo 地址吗? 检查了一下 calendar 组件貌似没有这个问题
我也遇到了这个问题了,具体原因我看了下源代码,是WEEK_DAYS并没有改变。
data(){
return WEEK_DAYS:getI18nSettings().dayNames
}
我的理解是因为这个getI18nSettings在切换语言的时候,并不会重新执行一遍,这个方法在'element-ui/src/utils/date-util'文件里,并没有被监听。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
您好,请您看下我上面的回复。。。感觉是一个bug,帮忙解决下吧 |
我这边也遇到了这个问题,官方还没做出处理
…------------------ 原始邮件 ------------------
发件人: "ElemeFE/element" <notifications@github.com>;
发送时间: 2021年2月3日(星期三) 上午9:16
收件人: "ElemeFE/element"<element@noreply.github.com>;
抄送: "李红平"<643171715@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [ElemeFE/element] 关于日期框中英文翻译没有效果的问题 (#20524)
您好,请您看下我上面的回复。。。感觉是一个bug,帮忙解决下吧
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
please use
|
用的就是i18n,您能看下我给您发的邮件吗,我感觉是您取这个星期头文字的方法的问题,并不是响应式的。或者您看我上面的留言 |
切换语言的时候,WEEK_DAYS: getI18nSettings().dayNames这个是否要再次执行下,不然不会给WEEK_DAYS赋值新的值,导致星期文字还是之前的 |
demo地址:http://45.77.11.4/#/dashboard |
fixed in #20758, thanks |
#20758
你看下这个
…------------------ 原始邮件 ------------------
发件人: "ElemeFE/element" <notifications@github.com>;
发送时间: 2021年2月6日(星期六) 中午1:09
收件人: "ElemeFE/element"<element@noreply.github.com>;
抄送: "李红平"<643171715@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [ElemeFE/element] 关于日期框中英文翻译没有效果的问题 (#20524)
希望你有空能提供一个复现 demo, 不然我们也没办法帮助到你
demo地址:http://45.77.11.4/#/dashboard
您看下,点击右上角切换语言,calendar组件的顶部年月日和上一个月,下一个月,今天是会切换成对应语言,但是星期文字没有变化
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
* I18n: Update ar.js (ElemeFE#16653) * Date-Picker: add className picker option (ElemeFE#16632) * add classname * add docs * add test * add range picker * update api name * update api name * update test * Fix: httprequest type (ElemeFE#16633) * docs: Update contributing guide (ElemeFE#14800) * Tree: Increase css weight (ElemeFE#16799) * Test: refactor unit test to use data-uri instead (ElemeFE#16847) * DateTimePicker: fix time-spinner not scroll to right position * Table: prevent click handler after drag (ElemeFE#16850) * Tab: fix tabs-item's padding cause active-bar's width and transform err( … ElemeFE#15355) (ElemeFE#16520) * Tab: Refactor tabs-item's padding with dynamic value * Docs: fix typo in Drawer docs (ElemeFE#16848) * Calendar : Fix weekdays i18n issue (ElemeFE#16772) * Popover: add close-delay prop (ElemeFE#16671) * Input: Fix Korean composition event (ElemeFE#15069) * Table: fix wrong empty block height (ElemeFE#16861) * Chore: Theme Extension (ElemeFE#16686) * Checkbox: Improve screen reader experience (ElemeFE#16575) * Docs: Update custom theme (ElemeFE#16983) * DOC: update spanish doc 2.11.1 (ElemeFE#16961) * update spanish doc 2.11 * update spanish doc 2.11 * update spanish doc 2.11 * DOC: update spanish doc 2.11 * DOC: update spanish doc 2.11 * DOC: update spanish doc 2.11 * DOC: update spanish doc 2.11 * i18n: add Esperanto translation (ElemeFE#16955) * Table: fix chrome crash when set thead css display to none (ElemeFE#16956) * Cascader: fix display errors (ElemeFE#16665) * Cascader: Fix disable status and close button issue (ElemeFE#16209) * Input: the click event of clear button is not trigger when using v-loading (ElemeFE#16576) * BackTop: use cubic bezier scrolling * Tabs: fix activated tab is out of visual range bug (ElemeFE#17033) * RadioGroup: not produce invalid HTML in table if "is" attribute is specify (ElemeFE#17070) * Table: not throw error when calling toggleExpansion (ElemeFE#16304) * Divider: Support custom classes (ElemeFE#17078) * Table: not trigger sort-change event when mounted (ElemeFE#17113) * Table: set toggleAllSelection as instance property (ElemeFE#17137) * Dialog: update sass var (ElemeFE#16365) * Docs: Update input-number document about change event (ElemeFE#16316) (ElemeFE#16966) * Calendar: fix locale error * Transfer: fix style error * Chore(deps): Bump mixin-deep from 1.3.1 to 1.3.2 (ElemeFE#17211) * Table: fix setCurrentRow unable to clear highlight row (ElemeFE#16879) * Table: fix expand-row-keys not work when data is loaded asynchronously (ElemeFE#16899) * Select: not toggle dropdown when filtering (ElemeFE#17205) * changelog for 2.12.0 (ElemeFE#17218) * chore: update folder (ElemeFE#17220) * [build] 2.12.0 * [release] 2.12.0 * doc: fix time-select typo (ElemeFE#17250) * DatePicker: fix bug of only select min date of date range problem (ElemeFE#17191) (ElemeFE#17207) * [Select]: fix select test cases * README: fix typo (ElemeFE#16952) * Docs: fix Drawer attribute accepted value typo in es (ElemeFE#17122) * add font-size for the style of tree empty-text (ElemeFE#17094) * Avatar: remove no-used css-property (ElemeFE#16975) * Table: column header can be costumed (ElemeFE#17291) * Table: update table header cell style (ElemeFE#17284) * Table: fix table header height after filter (ElemeFE#17348) * Table: fixed row-style with display not work (ElemeFE#17002) * update webpack config (ElemeFE#17373) * Docs: update Spanish changelog 2.12.0 (ElemeFE#17364) * Calendar: import el-button and el-button-group (ElemeFE#17376) * MessageBox: fix icon position error (ElemeFE#17410) * i18n: update locale es.js (ElemeFE#17419) * TimePicker: Set the selection range after scrolling up or down (ElemeFE#16868) * Chore: update readme Dingtalk QR code (ElemeFE#17656) * Doc: Fix Changelog typo (ElemeFE#17874) * Docs: Fix Loading demo (ElemeFE#17862) (ElemeFE#17863) * Message: fix close instace offsetHeight(ElemeFE#17564) (ElemeFE#17852) * I18n: Update avatar component fr doc (ElemeFE#17762) * Form: callback of validateField should be optional (ElemeFE#17314) * Cascader: fix TypeScript 3.7 compatibility (ElemeFE#17881) Fix error: 导入声明与“CascaderOption”的局部声明冲突 * Menu: fix router NavigationDuplicated error when using vue-router@^3.1.0 (ElemeFE#17269) * Menu: fix router NavigationDuplicated error when using vue-router@^3.1.0 * Better fix * comment * fix * Popconfirm: Add popconfirm component (ElemeFE#17548) * init * init * init docs * init docs2 * init type * update test * update naming * Dropdown: update type file (ElemeFE#17550) * Chore: SSR test (ElemeFE#16797) * init ssr test * ssr test * Progress: add strokeLinecap prop (ElemeFE#17552) * Progress: add strokeLinecap prop * update docs * InfiniteScroll: Skip trigger event on invisible element (ElemeFE#17553) * InfiniteScroll: Do not trigger event on invisible element * InfiniteScroll: Do not trigger event on invisible element2 * Image: Perfect picture preview behavior (ElemeFE#16985) (ElemeFE#17375) * Perfect picture preview function * update test * Avatar: recover removed css-property (ElemeFE#17372) This reverts commit 10592d1. * Image: Fix shield the page when preview big image (ElemeFE#16796) (ElemeFE#16997) * Image: Fix shield the page when preview big image * refine * Image:fix page scroll when use image-viewer by keyup and keydown * add notes * Table: fix header table not display (ElemeFE#17341) * I18n: Update sv-SE.js (ElemeFE#17926) * Drawer: bugfix/drawer-append-to-body-not-working (ElemeFE#16953) - 修复了 AppendToBody API 不管用的问题. - 修复了展开动画会出现滚动条的问题 - 新增了一个新的 API `withHeader` 来控制是否显示 Header 栏 - 动画流畅度的一个小改动 - 对应文档的改动 - 对应单元测试的改动 * Select: Fix tag show value or empty issue (17199) (ElemeFE#17396) * Select: Fix tag show value or empty issue * update docs * Docs: add input event in input Events Table (ElemeFE#18061) * docs: Input Events Table add input event update input doc, add input event the issue is ElemeFE#7592 * docs: update input docs and add input event * docs: update input docs and add input event * Docs: delete Input repeat change event (ElemeFE#18085) * fix: FF scroll bar width (ElemeFE#18091) * Chore: Update Changelog (ElemeFE#18200) * change log * update sub folder * [build] 2.13.0 * [release] 2.13.0 * Transfer: fix incorrect line-height of el-transfer's first list item when it was used with el-form-item (ElemeFE#18917) * [Input Number] Correctly compute inputNumberDisabled (ElemeFE#18439) * doc: Popconfirm doc update (ElemeFE#18324) * Carousel: fix console typo bug (ElemeFE#18264) * doc: fix step-strictly docs typo (ElemeFE#18705) * Autocomplete: add change event (ElemeFE#17913) * Autocomplete: fix suggestion error when textarea (ElemeFE#18478) * Image: don't show image-viewer when preview is false (ElemeFE#18967) * Image: Fix preview dose not show when preview list not contain src issue (ElemeFE#18975) (ElemeFE#19130) * chore: remove index intro (ElemeFE#19155) * Image: Fix shortcut key not work at second time issue (ElemeFE#18983) (ElemeFE#19156) * Image: fix shortcut key not work at second time issue (ElemeFE#18983) * fix test case * fix test case Co-authored-by: cl199793 <cl199793@alibaba-inc.com> * Docs: fix a type error in document of steps component. (ElemeFE#17555) * Chore: Update Changelog (ElemeFE#19162) * [build] 2.13.1 * [release] 2.13.1 * Autocomplete: fix change event bug (ElemeFE#19200) * fix: Image update error status * locale: Fix ru-RU popconfirm translation (ElemeFE#19220) * locale: Fix vi translation (ElemeFE#19244) * locale: Update Catalan and Spanish translations (ElemeFE#19296) * locale: Update locale Indonesia (id.js) (ElemeFE#19320) * locale: Update Brazilian Portuguese translation (ElemeFE#19374) * chore: update changelog (ElemeFE#19442) * chore: update changelog * chore: update changelog style * [build] 2.13.2 * [release] 2.13.2 * doc: Update Spanish Changelog 2.13.2 (ElemeFE#19944) * chore: Update Discussion Group Link (ElemeFE#20175) * doc: Correct calendar English docs (ElemeFE#19912) * fix: Update km.js (ElemeFE#20077) Update Khmer translate * fix(progress): fix attribute error (ElemeFE#19985) * fix: Update Russian locale (ru-RU.js) (ElemeFE#19451) * chore: update README (Vue 3.0) (ElemeFE#20345) add migration guide to Vue 3.0 * fix: Update ua locale (ElemeFE#20344) * docs: fix color picker default value typo (ElemeFE#20212) * fix: re-name error popconfirm event name (ElemeFE#20240) * chore: update changelog (ElemeFE#20347) * chore: update version.js * [build] 2.14.0 * [release] 2.14.0 * chore: remove donation section * i18n: Update Arabic translation (ElemeFE#20202) * chore: readme add link to Vue.js 3.0 Migration repository (ElemeFE#20199) Now that Vue.js 3.0 has been release, it'll be nice to let users/developers know that we are working on the migration there. * chore: update sponsor (ElemeFE#20425) * Popover: compatible with 2.6 new v-slot syntax (ElemeFE#20424) * i18n: Update Uighur locale (ElemeFE#20177) * chore: update changelog (ElemeFE#20427) * [build] 2.14.1 * [release] 2.14.1 * Update faas config * chore: update issue template (ElemeFE#20588) * Select: fix placeholder i18n bug (ElemeFE#17644) * fix: fix Popconfirm i18n bug * docs: fix typo in french translation of datetime-picker.md (ElemeFE#20543) * Drawer: fix focus bug (ElemeFE#20626) Co-authored-by: wp178491 <wp178491@alibaba-inc.com> * Docs: add format attribute description to the progress component (ElemeFE#20641) * Image: preview optimization (ElemeFE#20652) * feat: add change log 2.15.0 (ElemeFE#20692) * [build] 2.15.0 * [release] 2.15.0 * fix(Drawer): fix size number bug (ElemeFE#20718) * fix: fix incorrect image object fit ratio in IE (ElemeFE#19583) * chore: update Axure resource v2.1.0 * Cascader: fix cascader panel active path (ElemeFE#20730) * fix: fix calendar component i18n bug fix ElemeFE#20524 * fix(color-picker): fix color-picker can't select 8-digit hex color (ElemeFE#20710) * chore: update header banner * docs: add change log (ElemeFE#20798) * [build] 2.15.1 * [release] 2.15.1 * chore: remove getTestEle (ElemeFE#20811) * Image: fix z-index and keydown event add stopPropagation (ElemeFE#20859) * Input: fix show password cursor (ElemeFE#20870) * Input: fix show password icon in edge (ElemeFE#20902) * fix: update isFunction (ElemeFE#20912) * Carousel: fix interval and scale bug (ElemeFE#20931) * Cascader: fix delete tag bug (ElemeFE#20939) * Drawer: add overflow auto (ElemeFE#20948) * feat: add change log (ElemeFE#21032) * [build] 2.15.2 * [release] 2.15.2 * Skeleton: add skeleton component (ElemeFE#21038) * Local: fix week translations for hr locale (ElemeFE#21040) * Table: fix lazy load data (ElemeFE#21041) * Docs: fix form hide-required-asterisk description (ElemeFE#21045) * Fix drawer destroy (ElemeFE#20715) * Drawer: fix destroyOnClose bug * Row: fix align top (ElemeFE#20963) * Select: fix the bug when the value is Boolean (ElemeFE#21052) * Calendar: fix first-day-of-week (ElemeFE#21057) * Utils: fix isScroll (ElemeFE#21065) * Skeleton: fix skeleton.d.ts (ElemeFE#21074) * Empty: add empty component (ElemeFE#21080) * CascaderPanel: export type (ElemeFE#21070) * Spinner: add spinner.d.ts (ElemeFE#21090) * fix(utils.dom): fix utils.dom error (ElemeFE#21049) In IE browser, If the reference element(slot="reference") under the popover component is a SVG element, an error will be reported. [ElemeFE#21048](ElemeFE#21048) * chore: add changelog (ElemeFE#21108) * [build] 2.15.3 * [release] 2.15.3 * Utils: fix isScroll (ElemeFE#21098) * Descriptions: add description component (ElemeFE#21129) * Translation: update it.js (ElemeFE#21133) added missing translations * RadioGroup: fix RadioGroup used in component causes exception ElemeFE#17908 (ElemeFE#20783) * chore: fix lint and some errors (ElemeFE#21136) * chore: fix lint * chore: fix lint and some errors * Result: add result component (ElemeFE#21171) * Message: fix message[type] (ElemeFE#21088) * Carousel: reset the timer when setActiveItem method is called (ElemeFE#20846) * Cascader: fix emitPath (ElemeFE#21185) * Select: fix select filterable bug (ElemeFE#17494) * Tree: fix insertChild (ElemeFE#21194) * Select: fix a bug that makes the browser jitter in zoom mode (ElemeFE#21197) * chore: add changelog (ElemeFE#21199) * [build] 2.15.4 * [release] 2.15.4 * Select: fix resetInputHeight (ElemeFE#21201) * chore: add changelog (ElemeFE#21203) * [build] 2.15.5 * [release] 2.15.5 * Cascader: fix a bug that makes the browser jitter in zoom mode (ElemeFE#21207) * i18n: fix italian mistake (ElemeFE#21012) * Cascader: optimize performance (ElemeFE#21231) * Select: fix long text overflow in multiple mode (ElemeFE#21237) * Dropdown: add disabled property (ElemeFE#21235) * Radio: fix checked state when browser go back (ElemeFE#21250) * Descriptions: fix type declaration (ElemeFE#21265) * Descirptions: avoid table style conflict (ElemeFE#21254) * Descirptions: avoid table style conflict * Table: avoid `th` & `td` style conflict * Table: fix class location avoid click event errors * Table: optimize getCellClass method * Descriptions: add missing class * Drawer: fix append to body (ElemeFE#21264) * chore: add changelog (ElemeFE#21286) * [build] 2.15.6 * [release] 2.15.6 * Select: fix click icon triggering dropdown (ElemeFE#21314) * Badge: fix type class when is-dot (ElemeFE#21308) * Form: validate method reject error info (ElemeFE#21374) * Select: fix keydown event when composition (ElemeFE#21336) * Table: fix resizeObserver loop limit exceeded (ElemeFE#21255) * Chore: create preview.yml (ElemeFE#21457) * Chore: fix CI (ElemeFE#21461) * Create preview-build.yml * Chore: fix ci * Descriptions: fix label slot bug (ElemeFE#21462) * Chore: replace node-sass with dart-sass (ElemeFE#21019) * chore: 移除 node-sass 替换为 sass 进行构建 - 更新调用库 gulp-sass 更新为 gulp-dart-sass 以支持 sass - 更新 scss 使用语法旧语法已被废弃 * chore: add yarn lock * Table: fix toggleAllSelection bug when table is empty (ElemeFE#21456) * Button: fix disabled priority (ElemeFE#21375) * Docs: fix skeleton typos (ElemeFE#21408) * Table: optimize performance (ElemeFE#21330) * Table: optimize performance * Table: fix sync height * chore: add changelog (ElemeFE#21481) * [build] 2.15.7 * [release] 2.15.7 * Table: revert sync fixed table rows height (ElemeFE#21486) * Switch: fix toggling value error (ElemeFE#19473) Co-authored-by: Edwin Betancourt <EdwinBetanc0urt@hotmail.com> * i18n: Update Azerbaijani translation (ElemeFE#21771) * i18n: Update Slovenian translation (ElemeFE#21729) * fix: vue version explicitly to 2.x (ElemeFE#21736) * i18n: Update Slovak translations (ElemeFE#21711) * i18n: Add Icelandic translation (ElemeFE#21709) * i18n: Add Bengali translation (ElemeFE#21485) * Docs: update input typo about size attribute (ElemeFE#21723) * Docs: Update skeleton.md (ElemeFE#21601) * DatePicker: fix function name typo (ElemeFE#21663) * Revert "Chore: replace node-sass with dart-sass (ElemeFE#21019)" (ElemeFE#21791) This reverts commit d6dedac. * chore: add changelog (ElemeFE#21792) * i18n: Format optimization * [build] 2.15.8 * [release] 2.15.8 Co-authored-by: Lukas <12974004+l3op@users.noreply.github.com> Co-authored-by: iamkun <kunhello@outlook.com> Co-authored-by: luckyCao <cao.lei1031@163.com> Co-authored-by: Jeff Wen <sinchangwen@gmail.com> Co-authored-by: Hazlank <401840614@qq.com> Co-authored-by: Cr <631807682@qq.com> Co-authored-by: jesse-li <lijiexi93@gmail.com> Co-authored-by: hetech <dengzhiyang123@126.com> Co-authored-by: 咸fish <victorting_2015@aliyun.com> Co-authored-by: winkay <34124953+winkay@users.noreply.github.com> Co-authored-by: SeongYeob Jeong <ubi.toffee@gmail.com> Co-authored-by: LachlanStuart <26366936+LachlanStuart@users.noreply.github.com> Co-authored-by: Moonhyuk Im <godmoon00@naver.com> Co-authored-by: Tyler Trotter <tylertrotter@gmail.com> Co-authored-by: Gonzalo Nandez <godan2310@yahoo.es> Co-authored-by: Maksim Koryukov <maxkoryukov@users.noreply.github.com> Co-authored-by: zhangHongEn <zhang_h_n@163.com> Co-authored-by: Inside <inside74@163.com> Co-authored-by: lon <longhao.lhl@alibaba-inc.com> Co-authored-by: Geass <nullptru@gmail.com> Co-authored-by: Zhi Cun <island205@gmail.com> Co-authored-by: Haoran Yu <haoran_yu@hotmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jiewei Qian <wacky6@users.noreply.github.com> Co-authored-by: Kerwin Ch <smk0621@hotmail.com> Co-authored-by: msidolphin <OoMass-EffectoO@hotmail.com> Co-authored-by: 0xflotus <0xflotus@gmail.com> Co-authored-by: wurong <w18801775254@163.com> Co-authored-by: spengjie <spengjie@sina.com> Co-authored-by: 不得不错 <hnsxxscyx@gmail.com> Co-authored-by: MASONGZHI <511071161@qq.com> Co-authored-by: Bryan Matthews <mattheyan@gmail.com> Co-authored-by: 任立欣 <1060754972@qq.com> Co-authored-by: Weiqi Wu <295290708@qq.com> Co-authored-by: Gong <445722156@qq.com> Co-authored-by: Baptiste Lombard <17877656+blombard@users.noreply.github.com> Co-authored-by: Carter Li <CarterLi@users.noreply.github.com> Co-authored-by: Emil Ahlbäck <Emil.Ahlback99@gmail.com> Co-authored-by: jeremywu <591449570@qq.com> Co-authored-by: vimvinter <zhoudaxia5683@163.com> Co-authored-by: Hanx <xuanxinhan@vip.qq.com> Co-authored-by: ashuser-pendo <ashuser@Pendo.io> Co-authored-by: IceFox <zengxinhai007@gmail.com> Co-authored-by: 张超杰 <1098626505@qq.com> Co-authored-by: 三咲智子 <sxzz@sxzz.moe> Co-authored-by: Roojay <roojay520@users.noreply.github.com> Co-authored-by: inooNgt <inoongt@gmail.com> Co-authored-by: cl199793 <cl199793@alibaba-inc.com> Co-authored-by: 刘宏玺 <liuhongxi0000@163.com> Co-authored-by: Philip Solovyev <philvv@mail.ru> Co-authored-by: Quang LN <nhatquang2810@hotmail.com> Co-authored-by: Ismail D <didouhismael@gmail.com> Co-authored-by: therour <nizomsidiq@gmail.com> Co-authored-by: Diego Mengarda <diegormengarda@gmail.com> Co-authored-by: Bryce Barbara <BryceBarbara@users.noreply.github.com> Co-authored-by: vc3nt <keansovay@gmail.com> Co-authored-by: Caaalabash <1121062986@qq.com> Co-authored-by: Emil Yangirov <32175431+yangirov@users.noreply.github.com> Co-authored-by: Alex <alexk.mammut@gmail.com> Co-authored-by: Zhwt <greatzhwt@gmail.com> Co-authored-by: Vladislav Bakaev <vladislav-bakaev@mail.ru> Co-authored-by: Ahmed Elkattan <58733479+elkattan@users.noreply.github.com> Co-authored-by: Enguerrand des Vaux <enguerrand@des-vaux.fr> Co-authored-by: IlhamTahir <yili@howzhi.com> Co-authored-by: nzh63 <nzh21@outlook.com> Co-authored-by: Peng Gao <ggjqzjgp103@qq.com> Co-authored-by: Lucas Soulier <lucas@buckless.com> Co-authored-by: 好多大米 <lost1q84@gmail.com> Co-authored-by: wp178491 <wp178491@alibaba-inc.com> Co-authored-by: charlie0228 <charlie800228@gmail.com> Co-authored-by: UxieKong <1351117103@qq.com> Co-authored-by: zj9495 <zj9495@gmail.com> Co-authored-by: qige2016 <286882998@qq.com> Co-authored-by: fw6 <45113594+fw6@users.noreply.github.com> Co-authored-by: yanzhuang <qq984245844@gmail.com> Co-authored-by: bliberi <beatrice.liberi@gmail.com> Co-authored-by: lichao <18709270892@163.com> Co-authored-by: Nekojita1 <bearlove@ooxx.me> Co-authored-by: pofore <pofore@qq.com> Co-authored-by: Ricardo Tondello <rkdtondello@gmail.com> Co-authored-by: SHIODA Masaharu <masaharu.shioda@legalforce.co.jp> Co-authored-by: Aex <adaex@qq.com> Co-authored-by: Aex <spryti@qq.com> Co-authored-by: dennyak47 <20741686+dennyak47@users.noreply.github.com> Co-authored-by: bchen1029 <39672197+bchen1029@users.noreply.github.com> Co-authored-by: TommyShao <tomieric@gmail.com> Co-authored-by: Lin <yunfax@outlook.com> Co-authored-by: zhhbstudio <zhhbstudio@gmail.com> Co-authored-by: Edwin Betancourt <EdwinBetanc0urt@outlook.com> Co-authored-by: Edwin Betancourt <EdwinBetanc0urt@hotmail.com> Co-authored-by: Chingiz Mammadov <info@chz.dev> Co-authored-by: Patrick <patik.developer@outlook.com> Co-authored-by: Chen Kai <k_0520@qq.com> Co-authored-by: sjaustirni <22116610+sjaustirni@users.noreply.github.com> Co-authored-by: Aron Hrafnsson <aronhr@users.noreply.github.com> Co-authored-by: llwwtt <592171420@qq.com> Co-authored-by: Allen <allenforuse@gmail.com> Co-authored-by: 离岛 <yanwydxf@163.com> Co-authored-by: bofeng <xinguanhua@gmail.com> Co-authored-by: 博风 <xinguanhua.xgh@alibaba-inc.com>
核心代码:
import Vue from 'vue'
import ElementUI from 'element-ui'
import enlocale from 'element-ui/lib/locale/lang/en' // lang i18n
import zhlocale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
切换事件里面:
如果当前是中文,执行Vue.use(ElementUI, { zhlocale })
如果当前是中文,执行Vue.use(ElementUI, { enlocale})
执行完之后,除了日历组件没有效果以外,其他翻译是正常的
The text was updated successfully, but these errors were encountered: