Added Bulgarian and Swedish translation (#5093)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
parent
aaa45a1164
commit
916e38c597
1 changed files with 10 additions and 0 deletions
|
|
@ -18,6 +18,11 @@ function loadTranslation(locale) {
|
|||
let localeData;
|
||||
let momentData;
|
||||
switch (locale) {
|
||||
case 'bg':
|
||||
translations = require('@assets/i18n/bg.json');
|
||||
localeData = require('react-intl/locale-data/bg');
|
||||
momentData = require('moment/locale/bg');
|
||||
break;
|
||||
case 'de':
|
||||
translations = require('@assets/i18n/de.json');
|
||||
localeData = require('react-intl/locale-data/de');
|
||||
|
|
@ -73,6 +78,11 @@ function loadTranslation(locale) {
|
|||
localeData = require('react-intl/locale-data/ru');
|
||||
momentData = require('moment/locale/ru');
|
||||
break;
|
||||
case 'sv':
|
||||
translations = require('@assets/i18n/sv.json');
|
||||
localeData = require('react-intl/locale-data/sv');
|
||||
momentData = require('moment/locale/sv');
|
||||
break;
|
||||
case 'tr':
|
||||
translations = require('@assets/i18n/tr.json');
|
||||
localeData = require('react-intl/locale-data/tr');
|
||||
|
|
|
|||
Loading…
Reference in a new issue