Commit 8161fe21eb2532c6632507fa166fad0590b71957
1 parent
e413826a
1.完善主页的英文翻译
Showing
2 changed files
with
7 additions
and
2 deletions
src/components/Common/PersonCenter/MenuSearchPopovor.js
| ... | ... | @@ -6,6 +6,7 @@ import { Modal, message } from 'antd-v4'; |
| 6 | 6 | import { AutoComplete, Input } from "antd-v4"; |
| 7 | 7 | import * as commonUtils from "@/utils/utils"; /* 通用方法 */ |
| 8 | 8 | import config from '@/utils/config'; |
| 9 | +import * as commonFunc from "@/components/Common/commonFunc"; | |
| 9 | 10 | const MenuSearchPopovor = props => { |
| 10 | 11 | |
| 11 | 12 | const { menuPanel, onSetMenuSearchPopoverVisible, onAddPane, app, dispatch, updateMenuPanel } = useMemo( |
| ... | ... | @@ -141,6 +142,8 @@ const MenuSearchPopovor = props => { |
| 141 | 142 | return [...commonlyUsedOption, ...options]; |
| 142 | 143 | }, [menuPanel.panelMenus]); |
| 143 | 144 | |
| 145 | + const searchTitle = commonFunc.showMessage(app.commonConst, 'btnSearch') || '搜索122'; | |
| 146 | + | |
| 144 | 147 | return ( |
| 145 | 148 | <div ref={popovorRef}> |
| 146 | 149 | <AutoComplete |
| ... | ... | @@ -177,7 +180,7 @@ const MenuSearchPopovor = props => { |
| 177 | 180 | onSetMenuSearchPopoverVisible(false); |
| 178 | 181 | }} |
| 179 | 182 | > |
| 180 | - <Input.Search size="large" placeholder="搜索" /> | |
| 183 | + <Input.Search size="large" placeholder={searchTitle} /> | |
| 181 | 184 | </AutoComplete> |
| 182 | 185 | </div> |
| 183 | 186 | ); | ... | ... |
src/components/Common/PersonCenter/PersonCenter.js
| ... | ... | @@ -63,7 +63,9 @@ class PersonCenter extends Component { |
| 63 | 63 | } |
| 64 | 64 | componentDidMount() { |
| 65 | 65 | if (this.changePwd) { |
| 66 | - message.warn('系统判断密码为初始密码,请修改密码后再操作!', 10); | |
| 66 | + const changePwd = commonFunc.showLocalMessage(this.props, 'changePwd', '系统判断密码为初始密码,2请修改密码后再操作!'); | |
| 67 | + | |
| 68 | + message.warn(changePwd, 10); | |
| 67 | 69 | } |
| 68 | 70 | } |
| 69 | 71 | ... | ... |