Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add russian translations #126

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/editor/Editr.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},

Expand All @@ -243,7 +243,6 @@ $offwhite = #f6f6f6
$buttonWidth = 8vw
$buttonHeight = 32px
$svgSize = 16px

.editr
border 1px solid darken($offwhite, 7.5%)
width 100%
Expand Down
4 changes: 3 additions & 1 deletion src/editor/locales/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
20 changes: 20 additions & 0 deletions src/editor/locales/russian.js
Original file line number Diff line number Diff line change
@@ -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: 'Подчёркивание'
}