mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 18:46:55 +00:00
refactor: locale improve
This commit is contained in:
parent
3b7d4d8f29
commit
04cac8ac56
@ -241,6 +241,7 @@ export default {
|
|||||||
"Link to": "Link to",
|
"Link to": "Link to",
|
||||||
"Link to description": "Used to create collection relationships quickly and compatible with most common scenarios. Suitable for non-developer use. When present as a field, it is a drop-down selection used to select records from the target collection. Once created, it will simultaneously generate the associated fields of the current collection in the target collection.",
|
"Link to description": "Used to create collection relationships quickly and compatible with most common scenarios. Suitable for non-developer use. When present as a field, it is a drop-down selection used to select records from the target collection. Once created, it will simultaneously generate the associated fields of the current collection in the target collection.",
|
||||||
"Sub-table": "Sub-table",
|
"Sub-table": "Sub-table",
|
||||||
|
"Sub-details":"Sub-details",
|
||||||
"System info": "System info",
|
"System info": "System info",
|
||||||
"Created at": "Created at",
|
"Created at": "Created at",
|
||||||
"Last updated at": "Last updated at",
|
"Last updated at": "Last updated at",
|
||||||
@ -284,7 +285,6 @@ export default {
|
|||||||
"Subform": "Sub-form",
|
"Subform": "Sub-form",
|
||||||
"Field mode":"Field mode",
|
"Field mode":"Field mode",
|
||||||
"Allow add new data":"Allow add new data",
|
"Allow add new data":"Allow add new data",
|
||||||
"Text and link":"Text and link",
|
|
||||||
"Record picker": "Record picker",
|
"Record picker": "Record picker",
|
||||||
"Toggles the subfield mode": "Toggles the subfield mode",
|
"Toggles the subfield mode": "Toggles the subfield mode",
|
||||||
"Selector mode": "Selector mode",
|
"Selector mode": "Selector mode",
|
||||||
|
@ -556,10 +556,9 @@ export default {
|
|||||||
"Field component": "フィールドコンポーネント",
|
"Field component": "フィールドコンポーネント",
|
||||||
"Subtable": "サブテーブル",
|
"Subtable": "サブテーブル",
|
||||||
"Subform": "サブフォーム",
|
"Subform": "サブフォーム",
|
||||||
"Sub-list":"サブリスト",
|
"Sub-details":"サブリスト",
|
||||||
"Field mode":"フィールドコンポーネント",
|
"Field mode":"フィールドコンポーネント",
|
||||||
"Allow add new data":"データの追加を許可",
|
"Allow add new data":"データの追加を許可",
|
||||||
"Text and link":"テキストとリンク",
|
|
||||||
"Regular expression": "正規表現",
|
"Regular expression": "正規表現",
|
||||||
"Enabled languages": "利用可能な言語",
|
"Enabled languages": "利用可能な言語",
|
||||||
"View all plugins": "すべてのプラグラインを見る",
|
"View all plugins": "すべてのプラグラインを見る",
|
||||||
|
@ -304,7 +304,7 @@ export default {
|
|||||||
"Field component": "字段组件",
|
"Field component": "字段组件",
|
||||||
"Subtable": "子表格",
|
"Subtable": "子表格",
|
||||||
"Subform": "子表单",
|
"Subform": "子表单",
|
||||||
"Sub-list":"子列表",
|
"Sub-details":"子详情",
|
||||||
"Record picker": "数据选择器",
|
"Record picker": "数据选择器",
|
||||||
"Toggles the subfield mode": "切换子字段模式",
|
"Toggles the subfield mode": "切换子字段模式",
|
||||||
"Selector mode": "选择器模式",
|
"Selector mode": "选择器模式",
|
||||||
@ -312,7 +312,6 @@ export default {
|
|||||||
"Subform mode": "子表单模式",
|
"Subform mode": "子表单模式",
|
||||||
"Field mode":"字段组件",
|
"Field mode":"字段组件",
|
||||||
"Allow add new data":"允许添加数据",
|
"Allow add new data":"允许添加数据",
|
||||||
"Text and link":"文本链接",
|
|
||||||
"Edit block title": "编辑区块标题",
|
"Edit block title": "编辑区块标题",
|
||||||
"Block title": "区块标题",
|
"Block title": "区块标题",
|
||||||
"Pattern": "模式",
|
"Pattern": "模式",
|
||||||
|
@ -21,7 +21,7 @@ export const useFieldModeOptions = () => {
|
|||||||
const collection = getCollection(collectionField.target);
|
const collection = getCollection(collectionField.target);
|
||||||
if (collection?.template === 'file') {
|
if (collection?.template === 'file') {
|
||||||
return isReadPretty?[
|
return isReadPretty?[
|
||||||
{ label: t('Text and link'), value: 'Select' },
|
{ label: t('Title'), value: 'Select' },
|
||||||
{ label: t('File Manager'), value: 'FileManager' },
|
{ label: t('File Manager'), value: 'FileManager' },
|
||||||
]:[
|
]:[
|
||||||
{ label: t('File Manager'), value: 'FileManager' },
|
{ label: t('File Manager'), value: 'FileManager' },
|
||||||
@ -34,9 +34,9 @@ export const useFieldModeOptions = () => {
|
|||||||
case 'o2m':
|
case 'o2m':
|
||||||
return isReadPretty
|
return isReadPretty
|
||||||
? [
|
? [
|
||||||
{ label: t('Text and link'), value: 'Select' },
|
{ label: t('Title'), value: 'Select' },
|
||||||
// { label: t('Subtable'), value: 'SubTable' },
|
// { label: t('Subtable'), value: 'SubTable' },
|
||||||
{ label: t('Sub-list'), value: 'Nester' },
|
{ label: t('Sub-details'), value: 'Nester' },
|
||||||
]
|
]
|
||||||
: [
|
: [
|
||||||
{ label: t('Record picker'), value: 'Picker' },
|
{ label: t('Record picker'), value: 'Picker' },
|
||||||
@ -50,8 +50,8 @@ export const useFieldModeOptions = () => {
|
|||||||
case 'linkTo':
|
case 'linkTo':
|
||||||
return isReadPretty
|
return isReadPretty
|
||||||
? [
|
? [
|
||||||
{ label: t('Text and link'), value: 'Select' },
|
{ label: t('Title'), value: 'Select' },
|
||||||
{ label: t('Sub-list'), value: 'Nester' },
|
{ label: t('Sub-details'), value: 'Nester' },
|
||||||
]
|
]
|
||||||
: [
|
: [
|
||||||
{ label: t('Record picker'), value: 'Picker' },
|
{ label: t('Record picker'), value: 'Picker' },
|
||||||
@ -62,8 +62,8 @@ export const useFieldModeOptions = () => {
|
|||||||
default:
|
default:
|
||||||
return isReadPretty
|
return isReadPretty
|
||||||
? [
|
? [
|
||||||
{ label: t('Text and link'), value: 'Select' },
|
{ label: t('Title'), value: 'Select' },
|
||||||
{ label: t('Sub-list'), value: 'Nester' },
|
{ label: t('Sub-details'), value: 'Nester' },
|
||||||
]
|
]
|
||||||
: [
|
: [
|
||||||
{ label: t('Record picker'), value: 'Picker' },
|
{ label: t('Record picker'), value: 'Picker' },
|
||||||
|
Loading…
Reference in New Issue
Block a user