You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ca...@apache.org on 2022/03/03 14:21:36 UTC
[dolphinscheduler] branch dev updated: [Fix][UI Next][V1.0.0-Alpha] Fix the problem of incomplete Chinese support for all date pickers in the project. (#8688)
This is an automated email from the ASF dual-hosted git repository.
caishunfeng pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 403c672 [Fix][UI Next][V1.0.0-Alpha] Fix the problem of incomplete Chinese support for all date pickers in the project. (#8688)
403c672 is described below
commit 403c672e6d03ebc1282da2dbf1889c4db38fee95
Author: songjianet <17...@qq.com>
AuthorDate: Thu Mar 3 22:19:10 2022 +0800
[Fix][UI Next][V1.0.0-Alpha] Fix the problem of incomplete Chinese support for all date pickers in the project. (#8688)
---
dolphinscheduler-ui-next/src/App.tsx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dolphinscheduler-ui-next/src/App.tsx b/dolphinscheduler-ui-next/src/App.tsx
index 8e700a9..c82c485 100644
--- a/dolphinscheduler-ui-next/src/App.tsx
+++ b/dolphinscheduler-ui-next/src/App.tsx
@@ -19,6 +19,8 @@ import { defineComponent, computed, ref, nextTick, provide } from 'vue'
import {
zhCN,
enUS,
+ dateZhCN,
+ dateEnUS,
NConfigProvider,
darkTheme,
GlobalThemeOverrides,
@@ -61,8 +63,9 @@ const App = defineComponent({
return (
<NConfigProvider
theme={this.currentTheme}
- themeOverrides={themeOverrides}
+ theme-overrides={themeOverrides}
style={{ width: '100%', height: '100vh' }}
+ date-locale={String(this.localesStore.getLocales) === 'zh_CN' ? dateZhCN : dateEnUS}
locale={String(this.localesStore.getLocales) === 'zh_CN' ? zhCN : enUS}
>
<NMessageProvider>