Skip to content

Commit

Permalink
Add Ukrainian translation
Browse files Browse the repository at this point in the history
  • Loading branch information
ioppermann committed May 8, 2023
1 parent 4ff4c47 commit a87a02a
Show file tree
Hide file tree
Showing 34 changed files with 4,170 additions and 925 deletions.
1 change: 1 addition & 0 deletions .linguirc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"ru",
"sl",
"tr",
"uk",
"zh-hans"
]
}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Add Add stream key field and protocol detection to RTMP publication service
- Add Chinese (simplified) translation (thanks to Huyg0180110559)
- Add Ukrainian translation (thanks to Yurii Denys)
- Fix empty force_key_frames value
- Fix Icecast publication service
- Fix imprint, terms and credit without share ([#525](https://github.com/datarhei/restreamer/issues/529))
Expand Down
5 changes: 4 additions & 1 deletion src/I18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { messages as PT } from './locales/pt/messages.js';
import { messages as RU } from './locales/ru/messages.js';
import { messages as SL } from './locales/sl/messages.js';
import { messages as TR } from './locales/tr/messages.js';
import { messages as UK } from './locales/uk/messages.js';
import { messages as ZH } from './locales/zh-hans/messages.js';
import * as Storage from './utils/storage';

Expand All @@ -33,6 +34,7 @@ i18n.loadLocaleData('pt', { plurals: plurals.pt });
i18n.loadLocaleData('ru', { plurals: plurals.ru });
i18n.loadLocaleData('sl', { plurals: plurals.sl });
i18n.loadLocaleData('tr', { plurals: plurals.tr });
i18n.loadLocaleData('uk', { plurals: plurals.tr });
i18n.loadLocaleData('zh-hans', { plurals: plurals.zh });
i18n.load({
en: EN,
Expand All @@ -48,6 +50,7 @@ i18n.load({
ru: RU,
sl: SL,
tr: TR,
uk: UK,
'zh-hans': ZH,
});

Expand Down Expand Up @@ -90,7 +93,7 @@ const getBrowserLanguage = (defaultLanguage) => {
return match[0].toLowerCase();
};

i18n.activate(getLanguage('en', ['en', 'da', 'de', 'el', 'es', 'fr', 'it', 'ko', 'pl', 'pt', 'ru', 'sl', 'tr', 'zh-hans']));
i18n.activate(getLanguage('en', ['en', 'da', 'de', 'el', 'es', 'fr', 'it', 'ko', 'pl', 'pt', 'ru', 'sl', 'tr', 'uk', 'zh-hans']));

export default function Provider(props) {
return <I18nProvider i18n={i18n}>{props.children}</I18nProvider>;
Expand Down
2 changes: 1 addition & 1 deletion src/locales/da/messages.js

Large diffs are not rendered by default.

Loading

0 comments on commit a87a02a

Please sign in to comment.