mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:47:20 +00:00
fix(client): i18n.t in schema
This commit is contained in:
parent
7611beea0f
commit
c93d22ec27
@ -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
|
||||
|
@ -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': {
|
||||
|
Loading…
Reference in New Issue
Block a user