Merge branch 'master' into light-txq
This commit is contained in:
commit
c7d83bd88a
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1624,7 +1624,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "parity-ui-precompiled"
|
name = "parity-ui-precompiled"
|
||||||
version = "1.4.0"
|
version = "1.4.0"
|
||||||
source = "git+https://github.com/ethcore/js-precompiled.git#086ef689513b478463289c5b5845fb6a232f17ec"
|
source = "git+https://github.com/ethcore/js-precompiled.git#8ffd65aa7cd10a2e440bd55970cd68d8d07589fd"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"parity-dapps-glue 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"parity-dapps-glue 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "parity.js",
|
"name": "parity.js",
|
||||||
"version": "0.3.78",
|
"version": "0.3.79",
|
||||||
"main": "release/index.js",
|
"main": "release/index.js",
|
||||||
"jsnext:main": "src/index.js",
|
"jsnext:main": "src/index.js",
|
||||||
"author": "Parity Team <admin@parity.io>",
|
"author": "Parity Team <admin@parity.io>",
|
||||||
|
@ -19,22 +19,25 @@ import { action, observable, transaction } from 'mobx';
|
|||||||
import { addLocaleData } from 'react-intl';
|
import { addLocaleData } from 'react-intl';
|
||||||
import de from 'react-intl/locale-data/de';
|
import de from 'react-intl/locale-data/de';
|
||||||
import en from 'react-intl/locale-data/en';
|
import en from 'react-intl/locale-data/en';
|
||||||
|
import nl from 'react-intl/locale-data/nl';
|
||||||
import store from 'store';
|
import store from 'store';
|
||||||
|
|
||||||
import { DEFAULT_LOCALE, DEFAULT_LOCALES, LS_STORE_KEY } from './constants';
|
import { DEFAULT_LOCALE, DEFAULT_LOCALES, LS_STORE_KEY } from './constants';
|
||||||
import languages from './languages';
|
import languages from './languages';
|
||||||
import deMessages from './de';
|
import deMessages from './de';
|
||||||
import enMessages from './en';
|
import enMessages from './en';
|
||||||
|
import nlMessages from './nl';
|
||||||
|
|
||||||
let instance = null;
|
let instance = null;
|
||||||
|
|
||||||
const LANGUAGES = flatten({ languages });
|
const LANGUAGES = flatten({ languages });
|
||||||
const MESSAGES = {
|
const MESSAGES = {
|
||||||
de: Object.assign(flatten(deMessages), LANGUAGES),
|
de: Object.assign(flatten(deMessages), LANGUAGES),
|
||||||
en: Object.assign(flatten(enMessages), LANGUAGES)
|
en: Object.assign(flatten(enMessages), LANGUAGES),
|
||||||
|
nl: Object.assign(flatten(nlMessages), LANGUAGES)
|
||||||
};
|
};
|
||||||
|
|
||||||
addLocaleData([...de, ...en]);
|
addLocaleData([...de, ...en, ...nl]);
|
||||||
|
|
||||||
export default class Store {
|
export default class Store {
|
||||||
@observable locale = DEFAULT_LOCALE;
|
@observable locale = DEFAULT_LOCALE;
|
||||||
|
Loading…
Reference in New Issue
Block a user