Skip to content

Commit

Permalink
Implementing Russian translation (with fixes)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaedb committed May 8, 2022
1 parent a486832 commit 1a4223a
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 21 deletions.
23 changes: 22 additions & 1 deletion mopidy_iris/static/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mopidy_iris/static/app.js.map

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions mopidy_iris/static/app.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mopidy_iris/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@

// Release details
// These are automatically injected to built HTML
var build = "1651999317";
var build = "1652000473";
var version = "3.62.0";

// Construct the script tag
Expand Down
6 changes: 6 additions & 0 deletions src/js/locale/dictionaries.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import _ja from './ja.yaml';
import _pl from './pl.yaml';
import _it from './it.yaml';
import _es from './es.yaml';
import _ru from './ru.yaml';

// Merge languages with English. This provides English fallbacks to untranslated
// fields without breaking the UI (with blanks)
Expand All @@ -27,6 +28,8 @@ const it = {};
merge(it, en, _it);
const es = {};
merge(es, en, _es);
const ru = {};
merge(ru, en, _ru);

const available = [
{ key: 'en', name: en.name },
Expand All @@ -37,6 +40,7 @@ const available = [
{ key: 'ja', name: ja.name },
{ key: 'nl', name: nl.name },
{ key: 'pl', name: pl.name },
{ key: 'ru', name: ru.name },
{ key: 'sv', name: sv.name },
];

Expand All @@ -50,6 +54,7 @@ export default {
ja,
pl,
it,
ru,
available,
};

Expand All @@ -63,5 +68,6 @@ export {
ja,
pl,
it,
ru,
available,
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Русский
# Common and reusable phrases
##
errors:
uri_not_found: 'URI% {uri} не распознан'
uri_not_found: 'URI% {uri} не распознан'
could_not_load: 'Не удалось загрузить %{name}'
could_not_load_library: 'Не удалось загрузить %{name} из %{provider}'
no_results: Ничего не найдено
Expand All @@ -19,7 +19,7 @@ errors:
title: Невозможно изменить порядок элементов
description: Удалить сортировку/фильтры и повторить попытку
actions:
play: Играть
play: Играть
play_all: Воспроизвести все
play_next: Играть дальше
shuffle_play: Играть в случайном порядке
Expand Down Expand Up @@ -48,7 +48,7 @@ actions:
saved: Сохранено %{name}
deleted: Удалено %{name}
common:
popularity: Популярность
popularity: Популярность
name: Имя
artist: Исполнитель
duration: Продолжительность
Expand Down

0 comments on commit 1a4223a

Please sign in to comment.