parent
f166845d1b
commit
767472ac73
@ -1,37 +1,13 @@ |
||||
import debuggerJson from './debugger.json'; |
||||
import filePanelJson from './filePanel.json'; |
||||
import homeJson from './home.json'; |
||||
import panelJson from './panel.json'; |
||||
import pluginManagerJson from './pluginManager.json'; |
||||
import searchJson from './search.json'; |
||||
import settingsJson from './settings.json'; |
||||
import solidityJson from './solidity.json'; |
||||
import terminalJson from './terminal.json'; |
||||
import udappJson from './udapp.json'; |
||||
import solidityUnitTestingJson from './solidityUnitTesting.json'; |
||||
import permissionHandlerJson from './permissionHandler.json'; |
||||
import electronJson from './electron.json'; |
||||
import solUmlGenJson from './solUmlGen.json' |
||||
import remixAppJson from './remixApp.json' |
||||
import remixUiTabsJson from './remixUiTabs.json' |
||||
import circuitJson from './circuit.json'; |
||||
function readAndCombineJsonFiles() { |
||||
const dataContext = require.context('./', true, /\.json$/) |
||||
|
||||
export default { |
||||
...debuggerJson, |
||||
...filePanelJson, |
||||
...homeJson, |
||||
...panelJson, |
||||
...pluginManagerJson, |
||||
...searchJson, |
||||
...settingsJson, |
||||
...solidityJson, |
||||
...terminalJson, |
||||
...udappJson, |
||||
...solidityUnitTestingJson, |
||||
...permissionHandlerJson, |
||||
...electronJson, |
||||
...solUmlGenJson, |
||||
...remixAppJson, |
||||
...remixUiTabsJson, |
||||
...circuitJson |
||||
let combinedData = {} |
||||
dataContext.keys().forEach((key) => { |
||||
const jsonData = dataContext(key) |
||||
combinedData = {...combinedData, ...jsonData} |
||||
}) |
||||
|
||||
return combinedData |
||||
} |
||||
|
||||
export default readAndCombineJsonFiles() |
||||
|
@ -1,36 +1,17 @@ |
||||
import debuggerJson from './debugger.json'; |
||||
import filePanelJson from './filePanel.json'; |
||||
import homeJson from './home.json'; |
||||
import panelJson from './panel.json'; |
||||
import pluginManagerJson from './pluginManager.json'; |
||||
import searchJson from './search.json'; |
||||
import settingsJson from './settings.json'; |
||||
import solidityJson from './solidity.json'; |
||||
import terminalJson from './terminal.json'; |
||||
import udappJson from './udapp.json'; |
||||
import solidityUnitTestingJson from './solidityUnitTesting.json'; |
||||
import permissionHandlerJson from './permissionHandler.json'; |
||||
import solUmlGenJson from './solUmlGen.json' |
||||
import remixAppJson from './remixApp.json' |
||||
import remixUiTabsJson from './remixUiTabs.json' |
||||
import enJson from '../en'; |
||||
import enJson from '../en' |
||||
|
||||
function readAndCombineJsonFiles() { |
||||
const dataContext = require.context('./', true, /\.json$/) |
||||
|
||||
let combinedData = {} |
||||
dataContext.keys().forEach((key) => { |
||||
const jsonData = dataContext(key) |
||||
combinedData = {...combinedData, ...jsonData} |
||||
}) |
||||
|
||||
return combinedData |
||||
} |
||||
|
||||
// There may have some un-translated content. Always fill in the gaps with EN JSON.
|
||||
// No need for a defaultMessage prop when render a FormattedMessage component.
|
||||
export default Object.assign({}, enJson, { |
||||
...debuggerJson, |
||||
...filePanelJson, |
||||
...homeJson, |
||||
...panelJson, |
||||
...pluginManagerJson, |
||||
...searchJson, |
||||
...settingsJson, |
||||
...solidityJson, |
||||
...terminalJson, |
||||
...udappJson, |
||||
...solidityUnitTestingJson, |
||||
...permissionHandlerJson, |
||||
...solUmlGenJson, |
||||
...remixAppJson, |
||||
...remixUiTabsJson, |
||||
}) |
||||
export default Object.assign({}, enJson, readAndCombineJsonFiles()) |
||||
|
@ -1,36 +1,17 @@ |
||||
import debuggerJson from './debugger.json'; |
||||
import filePanelJson from './filePanel.json'; |
||||
import homeJson from './home.json'; |
||||
import panelJson from './panel.json'; |
||||
import pluginManagerJson from './pluginManager.json'; |
||||
import searchJson from './search.json'; |
||||
import settingsJson from './settings.json'; |
||||
import solidityJson from './solidity.json'; |
||||
import terminalJson from './terminal.json'; |
||||
import udappJson from './udapp.json'; |
||||
import solidityUnitTestingJson from './solidityUnitTesting.json'; |
||||
import permissionHandlerJson from './permissionHandler.json'; |
||||
import solUmlGenJson from './solUmlGen.json' |
||||
import remixAppJson from './remixApp.json' |
||||
import remixUiTabsJson from './remixUiTabs.json' |
||||
import enJson from '../en'; |
||||
import enJson from '../en' |
||||
|
||||
function readAndCombineJsonFiles() { |
||||
const dataContext = require.context('./', true, /\.json$/) |
||||
|
||||
let combinedData = {} |
||||
dataContext.keys().forEach((key) => { |
||||
const jsonData = dataContext(key) |
||||
combinedData = {...combinedData, ...jsonData} |
||||
}) |
||||
|
||||
return combinedData |
||||
} |
||||
|
||||
// There may have some un-translated content. Always fill in the gaps with EN JSON.
|
||||
// No need for a defaultMessage prop when render a FormattedMessage component.
|
||||
export default Object.assign({}, enJson, { |
||||
...debuggerJson, |
||||
...filePanelJson, |
||||
...homeJson, |
||||
...panelJson, |
||||
...pluginManagerJson, |
||||
...searchJson, |
||||
...settingsJson, |
||||
...solidityJson, |
||||
...terminalJson, |
||||
...udappJson, |
||||
...solidityUnitTestingJson, |
||||
...permissionHandlerJson, |
||||
...solUmlGenJson, |
||||
...remixAppJson, |
||||
...remixUiTabsJson, |
||||
}) |
||||
export default Object.assign({}, enJson, readAndCombineJsonFiles()) |
||||
|
@ -1,36 +1,17 @@ |
||||
import debuggerJson from './debugger.json'; |
||||
import filePanelJson from './filePanel.json'; |
||||
import homeJson from './home.json'; |
||||
import panelJson from './panel.json'; |
||||
import pluginManagerJson from './pluginManager.json'; |
||||
import searchJson from './search.json'; |
||||
import settingsJson from './settings.json'; |
||||
import solidityJson from './solidity.json'; |
||||
import terminalJson from './terminal.json'; |
||||
import udappJson from './udapp.json'; |
||||
import solidityUnitTestingJson from './solidityUnitTesting.json'; |
||||
import permissionHandlerJson from './permissionHandler.json'; |
||||
import solUmlGenJson from './solUmlGen.json' |
||||
import remixAppJson from './remixApp.json' |
||||
import remixUiTabsJson from './remixUiTabs.json' |
||||
import enJson from '../en'; |
||||
import enJson from '../en' |
||||
|
||||
function readAndCombineJsonFiles() { |
||||
const dataContext = require.context('./', true, /\.json$/) |
||||
|
||||
let combinedData = {} |
||||
dataContext.keys().forEach((key) => { |
||||
const jsonData = dataContext(key) |
||||
combinedData = {...combinedData, ...jsonData} |
||||
}) |
||||
|
||||
return combinedData |
||||
} |
||||
|
||||
// There may have some un-translated content. Always fill in the gaps with EN JSON.
|
||||
// No need for a defaultMessage prop when render a FormattedMessage component.
|
||||
export default Object.assign({}, enJson, { |
||||
...debuggerJson, |
||||
...filePanelJson, |
||||
...homeJson, |
||||
...panelJson, |
||||
...pluginManagerJson, |
||||
...searchJson, |
||||
...settingsJson, |
||||
...solidityJson, |
||||
...terminalJson, |
||||
...udappJson, |
||||
...solidityUnitTestingJson, |
||||
...permissionHandlerJson, |
||||
...solUmlGenJson, |
||||
...remixAppJson, |
||||
...remixUiTabsJson, |
||||
}) |
||||
export default Object.assign({}, enJson, readAndCombineJsonFiles()) |
||||
|
@ -1,38 +1,17 @@ |
||||
import debuggerJson from './debugger.json'; |
||||
import filePanelJson from './filePanel.json'; |
||||
import homeJson from './home.json'; |
||||
import panelJson from './panel.json'; |
||||
import pluginManagerJson from './pluginManager.json'; |
||||
import searchJson from './search.json'; |
||||
import settingsJson from './settings.json'; |
||||
import solidityJson from './solidity.json'; |
||||
import terminalJson from './terminal.json'; |
||||
import udappJson from './udapp.json'; |
||||
import solidityUnitTestingJson from './solidityUnitTesting.json'; |
||||
import permissionHandlerJson from './permissionHandler.json'; |
||||
import solUmlGenJson from './solUmlGen.json' |
||||
import remixAppJson from './remixApp.json' |
||||
import remixUiTabsJson from './remixUiTabs.json' |
||||
import enJson from '../en'; |
||||
import circuitJson from './circuit.json'; |
||||
import enJson from '../en' |
||||
|
||||
function readAndCombineJsonFiles() { |
||||
const dataContext = require.context('./', true, /\.json$/) |
||||
|
||||
let combinedData = {} |
||||
dataContext.keys().forEach((key) => { |
||||
const jsonData = dataContext(key) |
||||
combinedData = {...combinedData, ...jsonData} |
||||
}) |
||||
|
||||
return combinedData |
||||
} |
||||
|
||||
// There may have some un-translated content. Always fill in the gaps with EN JSON.
|
||||
// No need for a defaultMessage prop when render a FormattedMessage component.
|
||||
export default Object.assign({}, enJson, { |
||||
...debuggerJson, |
||||
...filePanelJson, |
||||
...homeJson, |
||||
...panelJson, |
||||
...pluginManagerJson, |
||||
...searchJson, |
||||
...settingsJson, |
||||
...solidityJson, |
||||
...terminalJson, |
||||
...udappJson, |
||||
...solidityUnitTestingJson, |
||||
...permissionHandlerJson, |
||||
...solUmlGenJson, |
||||
...remixAppJson, |
||||
...remixUiTabsJson, |
||||
...circuitJson |
||||
}) |
||||
export default Object.assign({}, enJson, readAndCombineJsonFiles()) |
||||
|
Loading…
Reference in new issue