mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:21:53 +00:00
fix(client): i18n.t in schema
This commit is contained in:
parent
7611beea0f
commit
c93d22ec27
@ -69,8 +69,8 @@ Installation
|
|||||||
|
|
||||||
#### Quickstart
|
#### Quickstart
|
||||||
~~~shell
|
~~~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`
|
# `--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
|
#### Step by step
|
||||||
@ -82,9 +82,9 @@ yarn create nocobase-app my-nocobase-app
|
|||||||
cd my-nocobase-app
|
cd my-nocobase-app
|
||||||
|
|
||||||
# 3. create initialization data
|
# 3. create initialization data
|
||||||
|
yarn nocobase init --import-demo --lang=en-US
|
||||||
# `--import-demo` Importing demo data
|
# `--import-demo` Importing demo data
|
||||||
# `--lang=en-US` Language settings support `--lang=en-US` and `--lang=zh-CN`
|
# `--lang=en-US` Language settings support `--lang=en-US` and `--lang=zh-CN`
|
||||||
yarn nocobase init --import-demo --lang=en-US
|
|
||||||
|
|
||||||
# 4. start project
|
# 4. start project
|
||||||
yarn start
|
yarn start
|
||||||
|
@ -50,7 +50,7 @@ const schema: ISchema = {
|
|||||||
properties: {
|
properties: {
|
||||||
item1: {
|
item1: {
|
||||||
type: 'void',
|
type: 'void',
|
||||||
title: i18n.t('System settings'),
|
title: "{{t('System settings')}}",
|
||||||
'x-component': 'Menu.Action',
|
'x-component': 'Menu.Action',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
icon: 'SettingOutlined',
|
icon: 'SettingOutlined',
|
||||||
@ -58,7 +58,7 @@ const schema: ISchema = {
|
|||||||
properties: {
|
properties: {
|
||||||
drawer1: {
|
drawer1: {
|
||||||
type: 'void',
|
type: 'void',
|
||||||
title: i18n.t('System settings'),
|
title: "{{t('System settings')}}",
|
||||||
'x-decorator': 'Form',
|
'x-decorator': 'Form',
|
||||||
'x-decorator-props': {
|
'x-decorator-props': {
|
||||||
useResource,
|
useResource,
|
||||||
@ -70,13 +70,13 @@ const schema: ISchema = {
|
|||||||
properties: {
|
properties: {
|
||||||
title: {
|
title: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: i18n.t('System title'),
|
title: "{{t('System title')}}",
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
'x-component': 'Input',
|
'x-component': 'Input',
|
||||||
},
|
},
|
||||||
logo: {
|
logo: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: i18n.t('Logo'),
|
title: "{{t('Logo')}}",
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
'x-component': 'Upload.Attachment',
|
'x-component': 'Upload.Attachment',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
|
Loading…
Reference in New Issue
Block a user