DmitrMakeev commited on
Commit
b1e0334
·
verified ·
1 Parent(s): 338e969

Update js/rus/rus.js

Browse files
Files changed (1) hide show
  1. js/rus/rus.js +17 -9
js/rus/rus.js CHANGED
@@ -1,4 +1,3 @@
1
- // Добавление русского языка
2
  editor.I18n.addMessages({
3
  ru: {
4
  styleManager: {
@@ -9,7 +8,6 @@ editor.I18n.addMessages({
9
  'decorations': 'Оформление',
10
  'extra': 'Ещё больше',
11
  'flex': 'Flex',
12
-
13
  },
14
  properties: {
15
  'background-repeat': 'Повторение',
@@ -51,16 +49,26 @@ editor.I18n.addMessages({
51
  title: 'Импортировать шаблон',
52
  label: '<div style="margin-bottom: 10px; font-size: 13px;">Вставьте здесь ваш HTML/CSS и нажмите Импортировать</div>',
53
  }
 
 
 
 
 
 
 
 
54
  }
55
  }
56
  });
57
- // Установка русского языка по умолчанию
58
- editor.I18n.setLocale('ru');
59
- // Удаление ненужных блоков
60
- const unwantedBlocks = ['video', 'link', 'image'];
61
- unwantedBlocks.forEach(blockId => {
62
- editor.BlockManager.remove(blockId);
63
- });
 
 
64
  // Добавление блока адаптивной картинки
65
  editor.BlockManager.add('responsive-image', {
66
  label: editor.I18n.t('blockManager.labels.responsive-image'),
 
 
1
  editor.I18n.addMessages({
2
  ru: {
3
  styleManager: {
 
8
  'decorations': 'Оформление',
9
  'extra': 'Ещё больше',
10
  'flex': 'Flex',
 
11
  },
12
  properties: {
13
  'background-repeat': 'Повторение',
 
49
  title: 'Импортировать шаблон',
50
  label: '<div style="margin-bottom: 10px; font-size: 13px;">Вставьте здесь ваш HTML/CSS и нажмите Импортировать</div>',
51
  }
52
+ },
53
+ // Добавление перевода для пункта "Device" и его опций
54
+ deviceManager: {
55
+ devices: {
56
+ 'Desktop': 'ПК',
57
+ 'Tablet': 'Планшет',
58
+ 'Mobile': 'Телефон'
59
+ }
60
  }
61
  }
62
  });
63
+
64
+ // Установка русского языка по умолчанию
65
+ editor.I18n.setLocale('ru');
66
+
67
+ // Удаление ненужных блоков
68
+ const unwantedBlocks = ['video', 'link'];
69
+ unwantedBlocks.forEach(blockId => {
70
+ editor.BlockManager.remove(blockId);
71
+ });
72
  // Добавление блока адаптивной картинки
73
  editor.BlockManager.add('responsive-image', {
74
  label: editor.I18n.t('blockManager.labels.responsive-image'),