Commit bfd5271a authored by GuanHua's avatar GuanHua

fix: 装修翻译问题修改

parent 061eb730
......@@ -69,7 +69,7 @@
"@linkseeks/design-core": "^1.0.0",
"@linkseeks/design-react": "^1.0.0",
"@linkseeks/design-react-web": "^1.0.0",
"@linkseeks/design-ui": "^1.0.3",
"@linkseeks/design-ui": "^1.0.4",
"@turf/turf": "^6.4.0",
"@types/crypto-js": "^4.0.1",
"@types/js-cookie": "^2.2.6",
......
......@@ -266,4 +266,7 @@
'editor.category.product.container.title':'Featured Products',
'editor.category.month.sales':'Monthly sales',
'editor.category.confirm.leave':'Are you sure to leave the decoration page?',
}
\ No newline at end of file
'editor.advert.title': 'Advertising editor',
'editor.shopfloorline.goods': 'Product Recommendation Settings',
'editor.shopfloorline.category': 'Classification Recommendation Settings',
}
......@@ -266,5 +266,8 @@ export default {
'editor.category.product.container.title': '상품을 정선하다.',
'editor.category.month.sales': '월간 판매',
'editor.category.confirm.leave': '인테리어 페이지를 떠나시겠습니까?',
'editor.advert.title': '광고 편집',
'editor.shopfloorline.goods': '상품 추천 설정',
'editor.shopfloorline.category': '분류 권장 설정',
}
......@@ -266,5 +266,8 @@ export default {
'editor.category.product.container.title': '精选商品',
'editor.category.month.sales': '月销',
'editor.category.confirm.leave': '确认离开装修页?',
'editor.advert.title': '广告编辑',
'editor.shopfloorline.goods': '商品推荐设置',
'editor.shopfloorline.category': '分类推荐设置',
}
......@@ -130,16 +130,16 @@ export const serviceAdvertConfig = {
}
export const CommonTitle2Config = {
key: "17",
"17": {
"componentName": "CommonTitle",
"props": {
"title": "关于我们",
"type": "primary"
},
},
}
// export const CommonTitle2Config = {
// key: "17",
// "17": {
// "componentName": "CommonTitle",
// "props": {
// "title": "关于我们",
// "type": "primary"
// },
// },
// }
export const CompanyInfoConfig = {
key: "18",
......
......@@ -6,7 +6,7 @@ import DesignPanel from '../components/DesignPanel'
import SettingPanel from '../settingsPanel'
import { GlobalConfig } from '@/global/config'
import { LAYOUT_TYPE } from '@/constants'
import { topBarConfig, headerConfig, mainNavConfig, horizontalWrap, channelCategoryConfig, bannerWrap, bannerAdvertConfig, interactAdvertConfig, channelQuickNavConfig, mallLayoutConfig, serviceAdvertConfig, CommonTitle2Config, CompanyInfoConfig, AlbumConfig, HonroPicConfig, InformationConfig, FooterConfig } from './defaultData'
import { topBarConfig, headerConfig, mainNavConfig, horizontalWrap, channelCategoryConfig, bannerWrap, bannerAdvertConfig, interactAdvertConfig, channelQuickNavConfig, mallLayoutConfig, serviceAdvertConfig, CompanyInfoConfig, AlbumConfig, HonroPicConfig, InformationConfig, FooterConfig } from './defaultData'
import Loading from '../components/Loading'
import { menuData } from './defaultMenu'
import { getAuth } from '@/utils/auth'
......@@ -335,7 +335,7 @@ const ChannelPreview: React.FC<ChannelPreviewPropsType> = (props) => {
}
mallLayoutConfig["0"].childNodes = [...mallLayoutConfig["0"].childNodes, ...floorLineKeys, serviceAdvertConfig.key, CommonTitle2Config.key, CompanyInfoConfig.key, AlbumConfig.key, HonroPicConfig.key, InformationConfig.key, FooterConfig.key]
mallLayoutConfig["0"].childNodes = [...mallLayoutConfig["0"].childNodes, ...floorLineKeys, serviceAdvertConfig.key, CompanyInfoConfig.key, AlbumConfig.key, HonroPicConfig.key, InformationConfig.key, FooterConfig.key]
const config = {
...mallLayoutConfig,
......@@ -350,7 +350,6 @@ const ChannelPreview: React.FC<ChannelPreviewPropsType> = (props) => {
...channelQuickNavConfig,
...floorLineConfig,
...serviceAdvertConfig,
...CommonTitle2Config,
...CompanyInfoConfig,
...AlbumConfig,
...HonroPicConfig,
......
import { ComponentSchemaType, PROPS_SETTING_TYPES } from '@linkseeks/design-core';;
import { getIntl } from 'umi'
const intl = getIntl()
const Advert: ComponentSchemaType = {
propsConfig: {
componentType: {
label: '广告编辑',
label: intl.formatMessage({ id: 'editor.advert.title' }),
type: PROPS_SETTING_TYPES.advert
},
sliderList: {
label: '广告编辑',
label: intl.formatMessage({ id: 'editor.advert.title' }),
type: PROPS_SETTING_TYPES.carousel,
},
},
......
import { ComponentSchemaType, PROPS_SETTING_TYPES } from '@linkseeks/design-core';;
import { getIntl } from 'umi'
const intl = getIntl()
const ChannelAdvert: ComponentSchemaType = {
propsConfig: {
componentType: {
label: '广告编辑',
label: intl.formatMessage({ id: 'editor.advert.title' }),
type: PROPS_SETTING_TYPES.advert
},
sliderList: {
label: '广告编辑',
label: intl.formatMessage({ id: 'editor.advert.title' }),
type: PROPS_SETTING_TYPES.carousel,
},
},
......
import { ComponentSchemaType, PROPS_SETTING_TYPES } from '@linkseeks/design-core';
const FloorLine: ComponentSchemaType = {
// nodePropsConfig: {
// overflowedIndicator: {
// type: NODE_PROPS_TYPES.reactNode,
// isOnlyNode: true,
// },
// children: {
// type: NODE_PROPS_TYPES.reactNode,
// childNodesRule: [
// 'FloorLine.Brand',
// 'FloorLine.Shops',
// 'FloorLine.Goods',
// 'FloorLine.Category',
// 'FloorLine.FloorHeader',
// 'FloorLine.Banner',
// 'FloorLine.Vertical',
// 'FloorLine.Horizontal'],
// },
// },
propsConfig: {
},
......
import { ComponentSchemaType, PROPS_SETTING_TYPES } from '@linkseeks/design-core';
import { getIntl } from 'umi'
const intl = getIntl()
const OwnMainNav: ComponentSchemaType = {
propsConfig: {
componentType: {
label: '广告编辑',
label: intl.formatMessage({ id: 'editor.advert.title' }),
type: PROPS_SETTING_TYPES.advert
},
sliderList: {
label: '广告编辑',
label: intl.formatMessage({ id: 'editor.advert.title' }),
type: PROPS_SETTING_TYPES.carousel,
},
},
......
import { ComponentSchemaType, PROPS_SETTING_TYPES } from '@linkseeks/design-core';;
import { getIntl } from 'umi'
const intl = getIntl()
const ShopAdvert: ComponentSchemaType = {
propsConfig: {
componentType: {
label: '广告编辑',
label: intl.formatMessage({ id: 'editor.advert.title' }),
type: PROPS_SETTING_TYPES.advert
},
sliderList: {
label: '广告编辑',
label: intl.formatMessage({ id: 'editor.advert.title' }),
type: PROPS_SETTING_TYPES.carousel,
},
},
......
import { ComponentSchemaType, PROPS_SETTING_TYPES } from '@linkseeks/design-core';
import { getIntl } from 'umi'
const intl = getIntl()
const ShopFloorLine: ComponentSchemaType = {
// nodePropsConfig: {
......@@ -24,7 +26,7 @@ const Goods: ComponentSchemaType = {
propsConfig: {
componentType: {
label: '商品推荐设置',
label: intl.formatMessage({ id: 'editor.shopfloorline.goods', defaultMessage: '商品推荐设置'}),
type: PROPS_SETTING_TYPES.goods
},
dataList: {
......@@ -38,7 +40,7 @@ const Category: ComponentSchemaType = {
propsConfig: {
componentType: {
label: '分类推荐设置',
label: intl.formatMessage({ id: 'editor.shopfloorline.category', defaultMessage: '分类推荐设置'}),
type: PROPS_SETTING_TYPES.category
},
dataList: {
......
......@@ -6,7 +6,7 @@ import DesignPanel from '../../editor/components/DesignPanel'
import SettingPanel from '../../editor/settingsPanel'
import { GlobalConfig } from '@/global/config'
import { LAYOUT_TYPE } from '@/constants'
import { topBarConfig, headerConfig, mainNavConfig, horizontalWrap, channelCategoryConfig, bannerWrap, bannerAdvertConfig, interactAdvertConfig, channelQuickNavConfig, mallLayoutConfig, serviceAdvertConfig, CommonTitle2Config, CompanyInfoConfig, AlbumConfig, HonroPicConfig, InformationConfig, FooterConfig } from '../../editor/channelEdit/defaultData'
import { topBarConfig, headerConfig, mainNavConfig, horizontalWrap, channelCategoryConfig, bannerWrap, bannerAdvertConfig, interactAdvertConfig, channelQuickNavConfig, mallLayoutConfig, serviceAdvertConfig, CompanyInfoConfig, AlbumConfig, HonroPicConfig, InformationConfig, FooterConfig } from '../../editor/channelEdit/defaultData'
import Loading from '../../editor/components/Loading'
import { menuData } from '../../editor/channelEdit/defaultMenu'
import { getAuth } from '@/utils/auth'
......@@ -335,7 +335,7 @@ const ChannelPreview: React.FC<ChannelPreviewPropsType> = (props) => {
}
mallLayoutConfig["0"].childNodes = [...mallLayoutConfig["0"].childNodes, ...floorLineKeys, serviceAdvertConfig.key, CommonTitle2Config.key, CompanyInfoConfig.key, AlbumConfig.key, HonroPicConfig.key, InformationConfig.key, FooterConfig.key]
mallLayoutConfig["0"].childNodes = [...mallLayoutConfig["0"].childNodes, ...floorLineKeys, serviceAdvertConfig.key, CompanyInfoConfig.key, AlbumConfig.key, HonroPicConfig.key, InformationConfig.key, FooterConfig.key]
const config = {
...mallLayoutConfig,
......@@ -350,7 +350,6 @@ const ChannelPreview: React.FC<ChannelPreviewPropsType> = (props) => {
...channelQuickNavConfig,
...floorLineConfig,
...serviceAdvertConfig,
...CommonTitle2Config,
...CompanyInfoConfig,
...AlbumConfig,
...HonroPicConfig,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment