From 9c232bb2bb6f640939e7a16350303d2f7c6a9d0a Mon Sep 17 00:00:00 2001
From: Nemhis
Date: Wed, 29 Jul 2020 18:59:11 +0300
Subject: [PATCH] Add russian translations
---
src/editor/Editr.vue | 3 +--
src/editor/locales/index.js | 4 +++-
src/editor/locales/russian.js | 20 ++++++++++++++++++++
3 files changed, 24 insertions(+), 3 deletions(-)
create mode 100644 src/editor/locales/russian.js
diff --git a/src/editor/Editr.vue b/src/editor/Editr.vue
index 74e5b02..608e583 100644
--- a/src/editor/Editr.vue
+++ b/src/editor/Editr.vue
@@ -223,7 +223,7 @@ export default {
if (this.mergedOptions.forcePlainTextOnPaste === true) {
this.$refs.content.addEventListener("paste", this.onPaste);
}
-
+
this.$refs.content.style.maxHeight = this.mergedOptions.maxHeight;
},
@@ -243,7 +243,6 @@ $offwhite = #f6f6f6
$buttonWidth = 8vw
$buttonHeight = 32px
$svgSize = 16px
-
.editr
border 1px solid darken($offwhite, 7.5%)
width 100%
diff --git a/src/editor/locales/index.js b/src/editor/locales/index.js
index 6643034..379eb84 100644
--- a/src/editor/locales/index.js
+++ b/src/editor/locales/index.js
@@ -4,12 +4,14 @@ import english from "./english";
import portuguese from "./portuguese";
import italian from "./italian";
import spanish from "./spanish";
+import russian from "./russian";
export default {
dutch,
hungarian,
- german,
english,
portuguese,
spanish,
+ russian,
+ italian,
}
diff --git a/src/editor/locales/russian.js b/src/editor/locales/russian.js
new file mode 100644
index 0000000..0eece66
--- /dev/null
+++ b/src/editor/locales/russian.js
@@ -0,0 +1,20 @@
+module.exports = {
+ locale_name: 'Russian',
+ locale_shorthand: ['ru', 'russian'],
+ // Translations:
+ justifyCenter: 'По центру',
+ justifyLeft: 'По левому краю',
+ justifyRight: 'По правому краю',
+ bold: 'Жирный',
+ code: 'Код',
+ headings: 'Заголовки (h1-h6)',
+ link: 'Ссылка',
+ image: 'Вставить изображение',
+ italic: 'Курсив',
+ orderedList: 'Сортированный список (1, 2, 3, ...)',
+ unorderedList: 'Маркированный список',
+ removeFormat: 'Очистить форматирование.\nОчищает заголовки, жирное выделение, курсив, подчёркивание, и т.д.',
+ separator: null,
+ table: 'Вставить таблицу',
+ underline: 'Подчёркивание'
+}