Skip to content

Commit

Permalink
Add Russian language (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
stakost authored Aug 29, 2024
1 parent 423420c commit 21845cc
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 1 deletion.
79 changes: 79 additions & 0 deletions src/languages/ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"name": "Русский",
"nativeName": "Русский",
"card": {
"phase": {
"firstQuarterMoon": "Первая четверть",
"fullMoon": "Полнолуние",
"thirdQuarterMoon": "Последняя четверть",
"newMoon": "Новолуние",
"waxingCrescentMoon": "Растущий полумесяц",
"waxingGibbousMoon": "Растущая луна",
"waningCrescentMoon": "Убывающий полумесяц",
"waningGibbousMoon": "Убывающая луна"
},
"illumination": "Освещенность",
"illuminated": "Освещено",
"moonRise": "Восход Луны",
"moonSet": "Закат Луны",
"moonHigh": "Луна наивысшая",
"moonAge": "Возраст Луны",
"distance": "Расстояние",
"azimuth": "Азимут",
"altitude": "Высота",
"fullMoon": "Полнолуние",
"newMoon": "Новолуние",
"relativeTime": {
"days": "дней",
"justNow": "только что",
"minutesAgo": "{0} минут назад",
"hoursAgo": "{0} часов назад",
"inMinutes": "через {0} минут",
"inHours": "через {0} часов"
}
},
"editor": {
"viewConfig": {
"title": "Язык и режим отображения",
"description": "Настройка языка и фона"
},
"baseConfig": {
"title": "Широта и долгота",
"description": "Настройка широты и долготы"
},
"optionsConfig": {
"useDefault": "Cистемная",
"useEntity": "Entity",
"useCustom": "Ручная"
},
"fontOptions": {
"title": "Настройка шрифтов",
"description": "Настройка размера и цвета шрифта",
"hideLabel": "Скрыть метку",
"headerFontConfig": {
"title": "Шрифт заголовка",
"description": "Настройка шрифта заголовка"
},
"labelFontConfig": {
"title": "Шрифт метки",
"description": "Настройка шрифта метки"
},
"headerFontSize": "Размер текста",
"headerFontColor": "Цвет текста",
"headerFontStyle": "Стиль",
"labelFontSize": "Размер текста",
"labelFontColor": "Цвет текста",
"labelFontStyle": "Стиль",
"valueFontSize": "Размер текста"
},
"compactView": "Компактный вид",
"showBackground": "Показать фон",
"timeFormat": "12-часовой формат времени",
"placeHolder": {
"latitude": "Введите широту",
"longitude": "Введите долготу",
"customBackground": "URL или путь к изображению",
"language": "Выберите язык"
}
}
}
3 changes: 3 additions & 0 deletions src/localize/languageImports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import * as fr from '../languages/fr.json';
import * as id from '../languages/id.json';
import * as pt from '../languages/pt.json';
import * as sk from '../languages/sk.json';
import * as ru from '../languages/ru.json';

const languages: any = {
ca: ca,
Expand All @@ -20,6 +21,7 @@ const languages: any = {
id: id,
pt: pt,
sk: sk,
ru: ru,
};

export const languageOptions = [
Expand All @@ -32,6 +34,7 @@ export const languageOptions = [
{ key: 'id', name: id.name, nativeName: id.nativeName },
{ key: 'pt', name: pt.name, nativeName: pt.nativeName },
{ key: 'sk', name: sk.name, nativeName: sk.nativeName },
{ key: 'ru', name: ru.name, nativeName: ru.nativeName },
];

export { languages };
3 changes: 2 additions & 1 deletion src/localize/languageList.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"fr.json",
"id.json",
"pt.json",
"sk.json"
"sk.json",
"ru.json"
]

0 comments on commit 21845cc

Please sign in to comment.