Skip to content

Commit

Permalink
feat: Link ukrainian translations to localize
Browse files Browse the repository at this point in the history
  • Loading branch information
morgsmccauley committed Apr 18, 2022
1 parent 616e273 commit 9448f99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/frontend/src/components/Routing.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import translations_en from '../translations/en.global.json';
import translations_pt from '../translations/pt.global.json';
import translations_ru from '../translations/ru.global.json';
import translations_tr from '../translations/tr.global.json';
import translations_ua from '../translations/ua.global.json';
import translations_vi from '../translations/vi.global.json';
import translations_zh_hans from '../translations/zh-hans.global.json';
import translations_zh_hant from '../translations/zh-hant.global.json';
Expand Down Expand Up @@ -145,7 +146,8 @@ class Routing extends Component {
{ name: 'Tiếng Việt', code: 'vi' },
{ name: '简体中文', code: 'zh-hans' },
{ name: '繁體中文', code: 'zh-hant' },
{ name: 'Türkçe', code: 'tr' }
{ name: 'Türkçe', code: 'tr' },
{ name: 'Українська', code: 'ua' },
];

const browserLanguage = getBrowserLocale(languages.map((l) => l.code));
Expand Down Expand Up @@ -177,6 +179,7 @@ class Routing extends Component {
this.props.addTranslationForLanguage(translations_zh_hans, 'zh-hans');
this.props.addTranslationForLanguage(translations_zh_hant, 'zh-hant');
this.props.addTranslationForLanguage(translations_tr, 'tr');
this.props.addTranslationForLanguage(translations_ua, 'ua');

this.props.setActiveLanguage(activeLang);
// this.addTranslationsForActiveLanguage(defaultLanguage)
Expand Down

0 comments on commit 9448f99

Please sign in to comment.