Skip to content
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

国际化失败, 比如时间组件还是中文 #445

Open
ydf opened this issue Nov 3, 2022 · 1 comment
Open

国际化失败, 比如时间组件还是中文 #445

ydf opened this issue Nov 3, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@ydf
Copy link
Contributor

ydf commented Nov 3, 2022

bug描述

  • *Bug description * *
    国际化失败, 比如时间组件还是中文

简单的描述下遇到的bug:
Briefly describe the bugs encountered:
这个是编译后的, 没办法看代码修复
https://github.com/newpanjing/simpleui/blob/master/simpleui/static/admin/simpleui-x/elementui/index.js

重现步骤
** repeat step **

  1. 设置英文界面
    2.开始时间和结束时间的组件是中文
    image

环境
** environment**

1.Operating System:
(Windows/Linux/MacOS)....

2.Python Version:

3.Django Version:

4.SimpleUI Version:
最新版本

Description

@Star-fly-Cheng
Copy link

Star-fly-Cheng commented Oct 26, 2023

在/simpleui/templates/admin/includes/js-part.html中加入:
`
{% load static simpletags %}

<script type="text/javascript" src="{% static 'admin/simpleui-x/js/vue.min.js' %}?_={% get_version %}"></script> <script type="text/javascript" src="{% static 'admin/simpleui-x/elementui/index.js' %}?_={% get_version %}"></script> <script src="//unpkg.com/element-ui/lib/umd/locale/en.js"></script> <script> ELEMENT.locale(ELEMENT.lang.en) </script>

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants