Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.
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
79 changes: 79 additions & 0 deletions locales/ru-RU/translation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"ALPH balance": "ALPH баланс",
"Address group": "Группа адреса",
"Address": "Адрес",
"An error occured while fetching transactions": "Произошла ошибка при получении транзакций",
"Assets": "Активы",
"Available": "Доступно",
"Avg. block time": "Ср. время блока",
"Block rewards": "Вознаграждение за блок",
"Block": "Блок",
"Blocks": "Блоки",
"Chain index": "Индекс цепи",
"Confirmation": "Подтверждение",
"Confirmations": "Подтверждения",
"Contract operation": "Работа с контрактом",
"Contract": "Контракт",
"Copied to clipboard.": "Скопировано в буфер обмена.",
"Copy to clipboard": "Скопировать в буфер обмена",
"Copy token ID": "Скопировать ID токена",
"Daily": "По дням",
"Download CSV": "Скачать CSV-файл",
"Fiat price": "Фиатная стоимость",
"Gas Amount": "Количество газа",
"Gas Price": "Цена газа",
"Hash": "Хэш",
"Hashrate": "Хэшрейт",
"Hashrate per": "Хэшрейт в",
"Hash & Time": "Хэш & Время",
"Height": "Высота",
"Hourly": "По часам",
"Incoming transfer": "Входящий перевод",
"Inputs": "Входы",
"Latest Blocks": "Последние блоки",
"Latest activity": "Последняя активность",
"Locked": "Заблокировано",
"NFTs": "NFTs",
"Nb. of assets": "Число активов",
"Nb. of transactions": "Число транзакций",
"Next": "Следующая",
"No NFTs yet": "NFT еще нет",
"No activity yet": "Активности еще не было",
"No assets yet": "Активов еще нет",
"No transactions yet": "Транзакций еще нет",
"Number of blocks mined since": "Количество добытых блоков с момента",
"On chain": "В цепи",
"Our numbers": "Наши цифры",
"Outgoing transfer": "Исходящий перевод",
"Outputs": "Выходы",
"Pending": "В ожидании",
"Previous": "Предыдущая",
"Script execution failed": "Не удалось выполнить сценарий",
"Search for an address or a tx...": "Найти по адресу или tx...",
"Search": "Найти",
"See more": "Узнать больше",
"Self transfer": "Самостоятельный перевод",
"Status": "Статус",
"Success": "Успешно",
"Supply": "Предложение",
"Timestamp": "Метка времени",
"Tokens": "Токены",
"Total Amount": "Общая сумма",
"Total Amounts": "Общие суммы",
"Total": "Итог",
"Transaction Fee": "Комиссия за транзакцию",
"Transaction": "Транзакция",
"Transactions": "Транзакции",
"Transactions per": "Транзакций в",
"Txn": "Txn",
"Unknown": "Неизвестный",
"dApp operation": "Работа с dApp",
"day": "день",
"from": "от",
"hour": "час",
"inside": "внутри",
"is circulating": "находится в обращении",
"of all shards": "по всем шардам",
"to": "на",
"with": "с"
}
6 changes: 4 additions & 2 deletions src/components/LanguageSwitch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ along with the library. If not, see <http://www.gnu.org/licenses/>.

import 'dayjs/locale/fr'
import 'dayjs/locale/id'
import 'dayjs/locale/ru'

import dayjs from 'dayjs'
import i18next from 'i18next'
Expand All @@ -31,7 +32,7 @@ interface LanguageSwitchProps {
className?: string
}

type Language = 'en-US' | 'fr-FR' | 'id-ID'
type Language = 'en-US' | 'fr-FR' | 'id-ID' | 'ru-RU'

interface LangItem {
label: string
Expand All @@ -41,7 +42,8 @@ interface LangItem {
const languageOptions: LangItem[] = [
{ label: 'English', value: 'en-US' },
{ label: 'Français', value: 'fr-FR' },
{ label: 'Bahasa Indonesia', value: 'id-ID' }
{ label: 'Bahasa Indonesia', value: 'id-ID' },
{ label: 'Русский', value: 'ru-RU' }
]

const LanguageSwitch: React.FC<LanguageSwitchProps> = ({ className }) => {
Expand Down
4 changes: 3 additions & 1 deletion src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ import { initReactI18next } from 'react-i18next'
import en from '../locales/en-US/translation.json'
import fr from '../locales/fr-FR/translation.json'
import id from '../locales/id-ID/translation.json'
import ru from '../locales/ru-RU/translation.json'

i18next.use(initReactI18next).init({
resources: {
'en-US': { translation: en },
'fr-FR': { translation: fr },
'id-ID': { translation: id }
'id-ID': { translation: id },
'ru-RU': { translation: ru }
},
lng: 'en-US',
fallbackLng: 'en-US',
Expand Down