add partial localization support for report page
This commit is contained in:
@@ -2,6 +2,7 @@ import { AtTextarea, AtButton, AtForm, AtMessage } from 'taro-ui';
|
||||
import { Component, ReactNode } from 'react';
|
||||
import './report.scss';
|
||||
import Taro from '@tarojs/taro';
|
||||
import pt from '@/plain-text';
|
||||
|
||||
export default class SettingsPage extends Component {
|
||||
state = {
|
||||
@@ -49,7 +50,7 @@ export default class SettingsPage extends Component {
|
||||
value={this.state.report}
|
||||
onChange={this.handleChange.bind(this)}
|
||||
maxLength={200}
|
||||
placeholder='无论是有关于小程序的建议,还是关于E志者协会的建议,都可以提出来哦!'
|
||||
placeholder={pt.get().reportPage.placeHolderText}
|
||||
/>
|
||||
<AtButton
|
||||
loading={this.state.isLoading}
|
||||
@@ -57,10 +58,10 @@ export default class SettingsPage extends Component {
|
||||
type='primary'
|
||||
disabled={this.state.isDisable}
|
||||
>
|
||||
提交
|
||||
{pt.get().reportPage.submitText}
|
||||
</AtButton>
|
||||
<AtButton formType='reset' type='secondary'>
|
||||
清空
|
||||
{pt.get().reportPage.resetText}
|
||||
</AtButton>
|
||||
</AtForm>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user