mirror of https://github.com/artf/grapesjs.git
1 changed files with 108 additions and 107 deletions
@ -1,116 +1,117 @@ |
|||||
const traitInputAttr = { placeholder: 'متن را اینجا وارد کنید' }; |
const traitInputAttr = { placeholder: 'متن را اینجا وارد کنید' }; |
||||
|
|
||||
export default { |
export default { |
||||
assetManager: { |
assetManager: { |
||||
addButton: 'افزودن تصویر', |
addButton: 'افزودن تصویر', |
||||
inputPlh: 'http://path/to/the/image.jpg', |
inputPlh: 'http://path/to/the/image.jpg', |
||||
modalTitle: 'انتخاب تصویر', |
modalTitle: 'انتخاب تصویر', |
||||
uploadTitle: 'فایل را انتخاب کنید یا در این مکان رها کنید' |
uploadTitle: 'فایل را انتخاب کنید یا در این مکان رها کنید' |
||||
|
}, |
||||
|
// Here just as a reference, GrapesJS core doesn't contain any block,
|
||||
|
// so this should be omitted from other local files
|
||||
|
blockManager: { |
||||
|
labels: { |
||||
|
// 'block-id': 'Block Label',
|
||||
}, |
}, |
||||
// Here just as a reference, GrapesJS core doesn't contain any block,
|
categories: { |
||||
// so this should be omitted from other local files
|
// 'category-id': 'Category Label',
|
||||
blockManager: { |
} |
||||
labels: { |
}, |
||||
// 'block-id': 'Block Label',
|
domComponents: { |
||||
}, |
names: { |
||||
categories: { |
'': 'باکس', |
||||
// 'category-id': 'Category Label',
|
wrapper: 'یدنه', |
||||
} |
text: 'متن', |
||||
|
comment: 'اظهار نظر', |
||||
|
image: 'تصویر', |
||||
|
video: 'ویدئو', |
||||
|
label: 'برچسب', |
||||
|
link: 'پیوند', |
||||
|
map: 'نقشه', |
||||
|
tfoot: 'پا جدول', |
||||
|
tbody: 'بدنه جدول', |
||||
|
thead: 'سر جدول', |
||||
|
table: 'جدول', |
||||
|
row: 'ردیف جدول', |
||||
|
cell: 'سلول جدول' |
||||
|
} |
||||
|
}, |
||||
|
deviceManager: { |
||||
|
device: 'دستگاه', |
||||
|
devices: { |
||||
|
desktop: 'دسک تاپ', |
||||
|
tablet: 'تبلت', |
||||
|
mobileLandscape: 'موبایل خوابیده', |
||||
|
mobilePortrait: 'موبایل ایستاده' |
||||
|
} |
||||
|
}, |
||||
|
panels: { |
||||
|
buttons: { |
||||
|
titles: { |
||||
|
preview: 'پیش نمایش', |
||||
|
fullscreen: 'تمام صفحه', |
||||
|
'sw-visibility': 'مشاهده اجزاء', |
||||
|
'export-template': 'نمایش کد', |
||||
|
'open-sm': 'باز کردن مدیریت استایل', |
||||
|
'open-tm': 'تنظیمات', |
||||
|
'open-layers': 'باز کردن مدیریت لایهها', |
||||
|
'open-blocks': 'باز کردن مدیریت بلوکها' |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
selectorManager: { |
||||
|
label: 'کلاسها', |
||||
|
selected: 'انتخاب شده', |
||||
|
emptyState: '- حالت -', |
||||
|
states: { |
||||
|
hover: 'هاور', |
||||
|
active: 'کلیک', |
||||
|
'nth-of-type(2n)': 'زوج/فرد' |
||||
|
} |
||||
|
}, |
||||
|
styleManager: { |
||||
|
empty: 'قبل از استفاده از مدیریت استایل یک عنصر را انتخاب کنید', |
||||
|
layer: 'لایه', |
||||
|
fileButton: 'تصاویر', |
||||
|
sectors: { |
||||
|
general: 'کلی', |
||||
|
layout: 'چیدمان', |
||||
|
typography: 'شیوه نگارش', |
||||
|
decorations: 'تزئینات', |
||||
|
extra: 'اضافی', |
||||
|
flex: 'فلکس', |
||||
|
dimension: 'ابعاد' |
||||
}, |
}, |
||||
domComponents: { |
// The core library generates the name by their `property` name
|
||||
names: { |
properties: { |
||||
'': 'باکس', |
// float: 'Float',
|
||||
wrapper: 'یدنه', |
|
||||
text: 'متن', |
|
||||
comment: 'اظهار نظر', |
|
||||
image: 'تصویر', |
|
||||
video: 'ویدئو', |
|
||||
label: 'برچسب', |
|
||||
link: 'پیوند', |
|
||||
map: 'نقشه', |
|
||||
tfoot: 'پا جدول', |
|
||||
tbody: 'بدنه جدول', |
|
||||
thead: 'سر جدول', |
|
||||
table: 'جدول', |
|
||||
row: 'ردیف جدول', |
|
||||
cell: 'سلول جدول' |
|
||||
} |
|
||||
}, |
|
||||
deviceManager: { |
|
||||
device: 'دستگاه', |
|
||||
devices: { |
|
||||
desktop: 'دسک تاپ', |
|
||||
tablet: 'تبلت', |
|
||||
mobileLandscape: 'موبایل خوابیده', |
|
||||
mobilePortrait: 'موبایل ایستاده' |
|
||||
} |
|
||||
}, |
}, |
||||
panels: { |
traitManager: { |
||||
buttons: { |
empty: 'قبل از استفاده از مدیر ویژگی ، یک عنصر را انتخاب کنید', |
||||
titles: { |
label: 'تنظیمات جزء', |
||||
preview: 'پیش نمایش', |
traits: { |
||||
fullscreen: 'تمام صفحه', |
// The core library generates the name by their `name` property
|
||||
'sw-visibility': 'مشاهده اجزاء', |
labels: { |
||||
'export-template': 'نمایش کد', |
// id: 'Id',
|
||||
'open-sm': 'باز کردن مدیریت استایل', |
// alt: 'Alt',
|
||||
'open-tm': 'تنظیمات', |
// title: 'Title',
|
||||
'open-layers': 'باز کردن مدیریت لایهها', |
// href: 'Href',
|
||||
'open-blocks': 'باز کردن مدیریت بلوکها' |
|
||||
} |
|
||||
} |
|
||||
}, |
|
||||
selectorManager: { |
|
||||
label: 'کلاسها', |
|
||||
selected: 'انتخاب شده', |
|
||||
emptyState: '- حالت -', |
|
||||
states: { |
|
||||
hover: 'هاور', |
|
||||
active: 'کلیک', |
|
||||
'nth-of-type(2n)': 'زوج/فرد' |
|
||||
} |
|
||||
}, |
|
||||
styleManager: { |
|
||||
empty: 'قبل از استفاده از مدیریت استایل یک عنصر را انتخاب کنید', |
|
||||
layer: 'لایه', |
|
||||
fileButton: 'تصاویر', |
|
||||
sectors: { |
|
||||
general: 'کلی', |
|
||||
layout: 'چیدمان', |
|
||||
typography: 'شیوه نگارش', |
|
||||
decorations: 'تزئینات', |
|
||||
extra: 'اضافی', |
|
||||
flex: 'فلکس', |
|
||||
dimension: 'ابعاد' |
|
||||
}, |
}, |
||||
// The core library generates the name by their `property` name
|
// In a simple trait, like text input, these are used on input attributes
|
||||
properties: { |
attributes: { |
||||
// float: 'Float',
|
id: traitInputAttr, |
||||
|
alt: traitInputAttr, |
||||
|
title: traitInputAttr, |
||||
|
href: { placeholder: 'مثال: https://google.com' } |
||||
}, |
}, |
||||
traitManager: { |
// In a trait like select, these are used to translate option names
|
||||
empty: 'قبل از استفاده از مدیر ویژگی ، یک عنصر را انتخاب کنید', |
options: { |
||||
label: 'تنظیمات جزء', |
target: { |
||||
traits: { |
false: 'پنجره فعلی', |
||||
// The core library generates the name by their `name` property
|
_blank: 'پنجره جدید' |
||||
labels: { |
} |
||||
// id: 'Id',
|
|
||||
// alt: 'Alt',
|
|
||||
// title: 'Title',
|
|
||||
// href: 'Href',
|
|
||||
}, |
|
||||
// In a simple trait, like text input, these are used on input attributes
|
|
||||
attributes: { |
|
||||
id: traitInputAttr, |
|
||||
alt: traitInputAttr, |
|
||||
title: traitInputAttr, |
|
||||
href: { placeholder: 'مثال: https://google.com' } |
|
||||
}, |
|
||||
// In a trait like select, these are used to translate option names
|
|
||||
options: { |
|
||||
target: { |
|
||||
false: 'پنجره فعلی', |
|
||||
_blank: 'پنجره جدید' |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
} |
||||
}; |
} |
||||
|
} |
||||
|
} |
||||
|
}; |
||||
|
|||||
Loading…
Reference in new issue