From 627d6e289a18994000e05d6c3f92cda873a7a861 Mon Sep 17 00:00:00 2001 From: unpredictable-error Date: Thu, 26 Sep 2019 22:10:35 +0300 Subject: [PATCH 1/3] added russian language --- src/locales/en.json | 1 + src/locales/ru.json | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 src/locales/ru.json diff --git a/src/locales/en.json b/src/locales/en.json index a5d215e..8fd42f7 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1,6 +1,7 @@ { "English": "English", "German": "German", + "Russian": "Russian", "Submit": "Submit", "Change Language": "Change Language", "Search your device": "Search your device", diff --git a/src/locales/ru.json b/src/locales/ru.json new file mode 100644 index 0000000..0eee1fe --- /dev/null +++ b/src/locales/ru.json @@ -0,0 +1,31 @@ +{ + "English": "Английский", + "German": "Немецкий", + "Russian ": "Русский ", + "Submit": "Подтвердить", + "Change Language": "Сменить язык", + "Search your device": "Найдите своё устройство", + "No results": "Нет результатов", + "Model": "Модель", + "Vendor": "Vendor", + "Variant": "Variant", + "Name": "Название", + "Release Version": "Актуальная версия", + "Basic": "Базовые", + "Advanced": "Расширенные", + "Build": "Создать", + "Cancel": "Отменить", + "Add package(s)": "Добавить пакет(ы)", + "Edit UCI defaults": "Изменить настройки UCI", + "Version": "Версия", + "Please confirm that you want to perform this action": "Пожалуйста, подтвердите действие", + "Building image requires computation resources, so we would request you to check if this selection is what you want": "Создание образа требует затраты ресурсов. Пожалуйста, убедитесь что вы согласны с этим. ", + "warning432": "Стабильная работа гарантируется при наличии <4 мегабайт флеш-памяти и/или <32 мегабайт оперативной памяти.", + "OpenWrt Firmware Selector": "Установщик прошивок OpenWrt", + "Download OpenWrt firmware for your device!": "Установите прошивку для своего OpenWrt маршрутизатора!", + "Target": "Цель", + "Dismiss": "Отклонено", + "There is an error with the packages you selected": "Что-то не так с выбранными пакетами.", + "Downloads": "Загрузки", + "Please use the input below to download firmware for your device!": "Пожалуйста, воспользуйтесь формой ниже чтобы установить прошивку!" +} From a1733a1b728720910f1900b18a292c5489b5781d Mon Sep 17 00:00:00 2001 From: unpredictable-error Date: Thu, 26 Sep 2019 22:23:19 +0300 Subject: [PATCH 2/3] mapped in i18n.js --- src/i18n.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/i18n.js b/src/i18n.js index 393dd03..b3f1104 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -3,6 +3,7 @@ import { initReactI18next } from 'react-i18next'; import LanguageDetector from 'i18next-browser-languagedetector'; import translationEN from './locales/en.json'; import translationDE from './locales/de.json'; +import translationRU from './locales/ru.json'; import Config from './config'; const resources = { @@ -12,6 +13,8 @@ const resources = { de: { translation: translationDE, }, + ru: { + translation: translationRU, }; i18n From 03cf34c61239c1ef3ecfb241b10393fcee80b83b Mon Sep 17 00:00:00 2001 From: unpredictable-error Date: Thu, 26 Sep 2019 22:54:55 +0300 Subject: [PATCH 3/3] setted in header --- src/components/header.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/header.js b/src/components/header.js index 796395a..575a077 100644 --- a/src/components/header.js +++ b/src/components/header.js @@ -87,6 +87,11 @@ export default function Header() { control={} label={t('German')} /> + } + label={t('Russian')} + />