1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-13 20:08:56 +00:00

move LANGUAGE variable to config/app.js

This commit is contained in:
slowbackspace 2019-03-12 12:22:59 +01:00
parent 3e4e671277
commit a0d9383621
4 changed files with 23 additions and 22 deletions

View File

@ -3,7 +3,8 @@ import * as React from 'react';
import styled from 'styled-components';
import colors from 'config/colors';
import ReactSelect from 'react-select';
import { LANGUAGE, SCREEN_SIZE } from 'config/variables';
import { SCREEN_SIZE } from 'config/variables';
import { LANGUAGE } from 'config/app';
import type { Props } from './Container';

View File

@ -1,3 +1,23 @@
export const LANGUAGE = [
{ code: 'en', name: 'English', en: 'English' },
{ code: 'bn', name: 'Bengali', en: 'Bengali' },
{ code: 'cs', name: 'Česky', en: 'Czech' },
{ code: 'de', name: 'Deutsch', en: 'German' },
{ code: 'el', name: 'Ελληνικά', en: 'Greek' },
{ code: 'es', name: 'Español', en: 'Spanish' },
{ code: 'fr', name: 'Français', en: 'French' },
{ code: 'id', name: 'Bahasa Indonesia', en: 'Indonesian' },
{ code: 'it', name: 'Italiano', en: 'Italian' },
{ code: 'ja', name: '日本語', en: 'Japanese' },
{ code: 'nl', name: 'Nederlands', en: 'Dutch' },
{ code: 'pl', name: 'Polski', en: 'Polish' },
{ code: 'pt', name: 'Português', en: 'Portuguese' },
{ code: 'ru', name: 'Русский', en: 'Russian' },
{ code: 'uk', name: 'Український', en: 'Ukrainian' },
{ code: 'zh', name: '中文(简体)', en: 'Chinese Simplified' },
{ code: 'zh_TW', name: '中文(台灣)', en: 'Chinese Traditional' },
];
export const FIAT_CURRENCIES = [
'usd',
'aed',

View File

@ -81,23 +81,3 @@ export const LINE_HEIGHT = {
BASE: '1.8',
TREZOR_ACTION: '37px',
};
export const LANGUAGE = [
{ code: 'en', name: 'English', en: 'English' },
{ code: 'bn', name: 'Bengali', en: 'Bengali' },
{ code: 'cs', name: 'Česky', en: 'Czech' },
{ code: 'de', name: 'Deutsch', en: 'German' },
{ code: 'el', name: 'Ελληνικά', en: 'Greek' },
{ code: 'es', name: 'Español', en: 'Spanish' },
{ code: 'fr', name: 'Français', en: 'French' },
{ code: 'id', name: 'Bahasa Indonesia', en: 'Indonesian' },
{ code: 'it', name: 'Italiano', en: 'Italian' },
{ code: 'ja', name: '日本語', en: 'Japanese' },
{ code: 'nl', name: 'Nederlands', en: 'Dutch' },
{ code: 'pl', name: 'Polski', en: 'Polish' },
{ code: 'pt', name: 'Português', en: 'Portuguese' },
{ code: 'ru', name: 'Русский', en: 'Russian' },
{ code: 'uk', name: 'Український', en: 'Ukrainian' },
{ code: 'zh', name: '中文(简体)', en: 'Chinese Simplified' },
{ code: 'zh_TW', name: '中文(台灣)', en: 'Chinese Traditional' },
];

View File

@ -1,4 +1,4 @@
import { LANGUAGE } from 'config/variables';
import { LANGUAGE } from 'config/app';
export const getInitialLocale = (defaultLocale = 'en') => {
const browserLocale = navigator.language.split('-')[0];