Skip to content

Commit

Permalink
fix: remove all suffix from languages
Browse files Browse the repository at this point in the history
closes #82
  • Loading branch information
juancarlosfarah committed May 27, 2019
1 parent 74028a0 commit 3778274
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion public/app/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const APPLICATION = 'Application';
const VAR_FOLDER = `${app.getPath('userData')}/var`;
const DATABASE_PATH = `${VAR_FOLDER}/db.json`;
const TEMPORARY_EXTRACT_FOLDER = 'tmp';
const DEFAULT_LANG = 'en_ALL';
const DEFAULT_LANG = 'en';

module.exports = {
DOWNLOADABLE_MIME_TYPES,
Expand Down
2 changes: 1 addition & 1 deletion src/config/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export const RESOURCE = 'Resource';
export const APPLICATION = 'Application';
export const IFRAME = 'application/octet-stream';
export const DEFAULT_RADIUS = 50;
export const DEFAULT_LANGUAGE = 'en_all';
export const DEFAULT_LANGUAGE = 'en';
export const SHORT_ID_LENGTH = 6;
62 changes: 31 additions & 31 deletions src/config/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import fr from '../langs/fr';

i18n.use(initReactI18next).init({
resources: {
en_ALL: en,
fr_ALL: fr,
en,
fr,
},
fallbackLng: 'en_ALL',
fallbackLng: 'en',
// debug only when not in production
debug: process.env.NODE_ENV !== 'production',
ns: ['translations'],
Expand All @@ -24,34 +24,34 @@ i18n.use(initReactI18next).init({
});

const langs = {
// bg_ALL: "български",
// ca_ALL: "Català",
// cs_ALL: "čeština",
// de_ALL: "Deutsch",
// el_ALL: "Ελληνικά",
en_ALL: 'English',
// es_ALL: "Español",
// et_ALL: "Eesti",
// fi_ALL: "Suomi",
fr_ALL: 'Français',
// hu_ALL: "Magyar",
// it_ALL: "Italiano",
// ja_ALL: "日本語",
// ka_ALL: "ქართული",
// lt_ALL: "lietuvių kalba",
// lv_ALL: "Latviešu",
// nl_ALL: "Nederlands",
// pt_ALL: "Português",
// ro_ALL: "Română",
// ru_ALL: "Русский",
// sk_ALL: "Slovenský",
// sl_ALL: "Slovenščina",
// sr_ALL: "српски језик",
// sw_ALL: "Kiswahili",
// tr_ALL: "Türkçe",
// uk_ALL: "Українська",
// vi_ALL: "Tiếng Việt",
// zh_ALL: "简体中文",
// bg: "български",
// ca: "Català",
// cs: "čeština",
// de: "Deutsch",
// el: "Ελληνικά",
en: 'English',
// es: "Español",
// et: "Eesti",
// fi: "Suomi",
fr: 'Français',
// hu: "Magyar",
// it: "Italiano",
// ja: "日本語",
// ka: "ქართული",
// lt: "lietuvių kalba",
// lv: "Latviešu",
// nl: "Nederlands",
// pt: "Português",
// ro: "Română",
// ru: "Русский",
// sk: "Slovenský",
// sl: "Slovenščina",
// sr: "српски језик",
// sw: "Kiswahili",
// tr: "Türkçe",
// uk: "Українська",
// vi: "Tiếng Việt",
// zh: "简体中文",
// zh_tw: "繁體中文",
};

Expand Down

0 comments on commit 3778274

Please sign in to comment.