Skip to content

Commit

Permalink
Merge pull request busyorg#788 from busyorg/new-locales
Browse files Browse the repository at this point in the history
Add ms, da, it, no, pt, vi, el, bg, uk, he, hi locales
  • Loading branch information
bonustrack authored Oct 13, 2017
2 parents a0c2bb4 + 30025e0 commit bf94ad6
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/app/AppSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,30 @@ export default class AppSettings extends React.Component {
languages = {
en: 'English',
id: 'Bahasa Indonesia - Indonesian',
ms: 'Bahasa Melayu - Malay',
cs: 'Čeština - Czech',
da: 'Dansk - Danish',
de: 'Deutsch - German',
es: 'Español - Spanish',
fil: 'Filipino',
fr: 'Français - French',
it: 'Italiano - Italian',
nl: 'Nederlands - Dutch',
no: 'Norsk - Norwegian',
pl: 'Polski - Polish',
pt: 'Português - Portuguese',
ro: 'Română - Romanian',
sl: 'Slovenščina - Slovenian',
sv: 'Svenska - Swedish',
vi: 'Tiếng Việt - Vietnamese',
tr: 'Türkçe - Turkish',
el: 'Ελληνικά - Greek',
bg: 'Български език - Bulgarian',
ru: 'Русский - Russian',
uk: 'Українська мова - Ukrainian',
he: 'עִבְרִית - Hebrew',
ar: 'العربية - Arabic‏',
hi: 'हिन्दी - Hindi',
lo: 'ພາສາລາວ - Lao',
th: 'ภาษาไทย - Thai',
ko: '한국어 - Korean',
Expand Down
44 changes: 44 additions & 0 deletions src/translations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ import fil from 'react-intl/locale-data/fil';
import th from 'react-intl/locale-data/th';
import lo from 'react-intl/locale-data/lo';
import id from 'react-intl/locale-data/id';
import ms from 'react-intl/locale-data/ms';
import da from 'react-intl/locale-data/da';
import it from 'react-intl/locale-data/it';
import no from 'react-intl/locale-data/no';
import pt from 'react-intl/locale-data/pt';
import vi from 'react-intl/locale-data/vi';
import el from 'react-intl/locale-data/el';
import bg from 'react-intl/locale-data/bg';
import uk from 'react-intl/locale-data/uk';
import he from 'react-intl/locale-data/he';
import hi from 'react-intl/locale-data/hi';

import enTranslations from '../locales/en.json';
import csTranslations from '../locales/cs.json';
Expand All @@ -40,6 +51,17 @@ import filTranslations from '../locales/fil.json';
import thTranslations from '../locales/th.json';
import loTranslations from '../locales/lo.json';
import idTranslations from '../locales/id.json';
import msTranslations from '../locales/ms.json';
import daTranslations from '../locales/da.json';
import itTranslations from '../locales/it.json';
import noTranslations from '../locales/no.json';
import ptTranslations from '../locales/pt.json';
import viTranslations from '../locales/vi.json';
import elTranslations from '../locales/el.json';
import bgTranslations from '../locales/bg.json';
import ukTranslations from '../locales/uk.json';
import heTranslations from '../locales/he.json';
import hiTranslations from '../locales/hi.json';

addLocaleData([
...en,
Expand All @@ -62,6 +84,17 @@ addLocaleData([
...th,
...lo,
...id,
...ms,
...da,
...it,
...no,
...pt,
...vi,
...el,
...bg,
...uk,
...he,
...hi,
]);

export const translations = {
Expand All @@ -85,6 +118,17 @@ export const translations = {
th: thTranslations,
lo: loTranslations,
id: idTranslations,
ms: msTranslations,
da: daTranslations,
it: itTranslations,
no: noTranslations,
pt: ptTranslations,
vi: viTranslations,
el: elTranslations,
bg: bgTranslations,
uk: ukTranslations,
he: heTranslations,
hi: hiTranslations,
};

export const getBrowserLocale = () => {
Expand Down

0 comments on commit bf94ad6

Please sign in to comment.