Simplify catalog product copy
This commit is contained in:
@@ -484,28 +484,28 @@ function fieldHelperText(group: ProductGroup, field: ParamFieldKey) {
|
|||||||
const setting = groupCatalogSetting(group);
|
const setting = groupCatalogSetting(group);
|
||||||
|
|
||||||
if (field === 'widthMm') {
|
if (field === 'widthMm') {
|
||||||
return 'Ширина рулона в миллиметрах.';
|
return 'Нужная ширина рулона.';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (field === 'lengthM') {
|
if (field === 'lengthM') {
|
||||||
const customRange = formatLengthRange(setting);
|
const customRange = formatLengthRange(setting);
|
||||||
if (setting.allowCustomLength && customRange) {
|
if (setting.allowCustomLength && customRange) {
|
||||||
return `Можно выбрать стандартный метраж или заказать свой: ${customRange}.`;
|
return `Можно выбрать стандартный метраж или свой: ${customRange}.`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'Стандартный метраж рулона.';
|
return 'Нужный метраж рулона.';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (field === 'thicknessMicron') {
|
if (field === 'thicknessMicron') {
|
||||||
return 'Толщина материала в микронах.';
|
return 'Плотность и толщина материала.';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (field === 'sleeveBrand') {
|
if (field === 'sleeveBrand') {
|
||||||
if (setting.allowCustomSleeveBrand) {
|
if (setting.allowCustomSleeveBrand) {
|
||||||
return 'Можно выбрать стандартную втулку или сделать свою с логотипом.';
|
return 'Стандартная втулка или своя с логотипом.';
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'Стандартный вариант втулки.';
|
return 'Вариант втулки внутри рулона.';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (field === 'colorTag') {
|
if (field === 'colorTag') {
|
||||||
@@ -529,15 +529,15 @@ function customizationDetails(group: ProductGroup) {
|
|||||||
const customRange = formatLengthRange(setting);
|
const customRange = formatLengthRange(setting);
|
||||||
|
|
||||||
if (setting.allowCustomLength && customRange) {
|
if (setting.allowCustomLength && customRange) {
|
||||||
details.push(`Длина под заказ: ${customRange}.`);
|
details.push(`Своя длина: ${customRange}.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (setting.allowCustomSleeveBrand) {
|
if (setting.allowCustomSleeveBrand) {
|
||||||
details.push('Втулка под заказ: можно сделать с вашим логотипом.');
|
details.push('Втулка с логотипом под заказ.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (setting.allowCustomLabel) {
|
if (setting.allowCustomLabel) {
|
||||||
details.push('Надпись под заказ: можно нанести вашу маркировку или текст.');
|
details.push('Можно нанести свою надпись.');
|
||||||
}
|
}
|
||||||
|
|
||||||
return details;
|
return details;
|
||||||
@@ -547,22 +547,22 @@ function productBadges(product: ParsedProduct) {
|
|||||||
const badges: string[] = [];
|
const badges: string[] = [];
|
||||||
|
|
||||||
if (product.widthMm !== null) {
|
if (product.widthMm !== null) {
|
||||||
badges.push(`Ширина: ${product.widthMm} мм`);
|
badges.push(`${product.widthMm} мм`);
|
||||||
}
|
}
|
||||||
if (product.lengthM !== null) {
|
if (product.lengthM !== null) {
|
||||||
badges.push(`Длина: ${product.lengthM} м`);
|
badges.push(`${product.lengthM} м`);
|
||||||
}
|
}
|
||||||
if (product.thicknessMicron !== null) {
|
if (product.thicknessMicron !== null) {
|
||||||
badges.push(`Толщина: ${product.thicknessMicron} мкм`);
|
badges.push(`${product.thicknessMicron} мкм`);
|
||||||
}
|
}
|
||||||
if (product.sleeveBrand) {
|
if (product.sleeveBrand) {
|
||||||
badges.push(`Втулка: ${product.sleeveBrand}`);
|
badges.push(product.sleeveBrand);
|
||||||
}
|
}
|
||||||
if (product.colorTags[0]) {
|
if (product.colorTags[0]) {
|
||||||
badges.push(`Цвет: ${product.colorTags[0]}`);
|
badges.push(product.colorTags[0]);
|
||||||
}
|
}
|
||||||
if (product.labelTags[0]) {
|
if (product.labelTags[0]) {
|
||||||
badges.push(`Надпись: ${product.labelTags[0]}`);
|
badges.push(product.labelTags[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return badges;
|
return badges;
|
||||||
|
|||||||
Reference in New Issue
Block a user