fix(client): i18n.t in schema

This commit is contained in:
chenos 2021-11-08 20:46:45 +08:00
parent 7611beea0f
commit c93d22ec27
2 changed files with 6 additions and 6 deletions

View File

@ -69,8 +69,8 @@ Installation
#### Quickstart
~~~shell
yarn create nocobase-app my-nocobase-app --quickstart --lang=en-US
# `--lang=en-US` Language settings support `--lang=en-US` and `--lang=zh-CN`
yarn create nocobase-app my-nocobase-app --quickstart --lang=en-US # or zh-CN
~~~
#### Step by step
@ -82,9 +82,9 @@ yarn create nocobase-app my-nocobase-app
cd my-nocobase-app
# 3. create initialization data
yarn nocobase init --import-demo --lang=en-US
# `--import-demo` Importing demo data
# `--lang=en-US` Language settings support `--lang=en-US` and `--lang=zh-CN`
yarn nocobase init --import-demo --lang=en-US
# 4. start project
yarn start

View File

@ -50,7 +50,7 @@ const schema: ISchema = {
properties: {
item1: {
type: 'void',
title: i18n.t('System settings'),
title: "{{t('System settings')}}",
'x-component': 'Menu.Action',
'x-component-props': {
icon: 'SettingOutlined',
@ -58,7 +58,7 @@ const schema: ISchema = {
properties: {
drawer1: {
type: 'void',
title: i18n.t('System settings'),
title: "{{t('System settings')}}",
'x-decorator': 'Form',
'x-decorator-props': {
useResource,
@ -70,13 +70,13 @@ const schema: ISchema = {
properties: {
title: {
type: 'string',
title: i18n.t('System title'),
title: "{{t('System title')}}",
'x-decorator': 'FormItem',
'x-component': 'Input',
},
logo: {
type: 'string',
title: i18n.t('Logo'),
title: "{{t('Logo')}}",
'x-decorator': 'FormItem',
'x-component': 'Upload.Attachment',
'x-component-props': {