Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Commit

Permalink
Updated descriptions + added clearConsole() call.
Browse files Browse the repository at this point in the history
  • Loading branch information
swernerx committed Mar 15, 2017
1 parent 8266802 commit 03c375b
Show file tree
Hide file tree
Showing 6 changed files with 132 additions and 47 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "edgestack",
"version": "0.16.3",
"description": "Universal React + PostCSS + CSS Modules + ESLint + Stylelint + ...",
"description": "A Universal React Stack with deeply integrated localization Support, semi-automatic route-based code splitting, Hot Module Reloading (HMR), Redux, Apollo GraphQL and more...",
"main": "lib/node.classic.commonjs.js",
"module": "lib/node.classic.esmodule.js",
"main:modern": "lib/node.modern.commonjs.js",
Expand Down Expand Up @@ -172,6 +172,7 @@
"react": "^15.4.2",
"react-apollo": "^1.0.0-rc.2",
"react-async-component": "^0.2.2",
"react-dev-utils": "^0.5.2",
"react-dom": "^15.4.2",
"react-helmet": "^4.0.0",
"react-intl": "^2.2.3",
Expand Down
6 changes: 3 additions & 3 deletions src/app/messages/de.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"app.title": "Edge Stack [DE]",
"app.description": "A Universal React Stack with tons of recent technologies like Express, Apollo, React Router v4, Code Splitting, React-Intl, NodeJS v6, Webpack v2 + HMR etc. bundled into an easy to use package.",
"counter": "Counter: {value, number}"
"app.title": "Edge Stack [Deutsch]",
"app.description": "A Universal React Stack with deeply integrated localization Support, semi-automatic route-based code splitting, Hot Module Reloading (HMR), Redux, Apollo GraphQL and more...",
"counter": "Zähler: {value, number}"
}
4 changes: 2 additions & 2 deletions src/app/messages/en.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"app.title": "Edge Stack",
"app.description": "A Universal React Stack with tons of recent technologies like Express, Apollo, React Router v4, Code Splitting, React-Intl, NodeJS v6, Webpack v2 + HMR etc. bundled into an easy to use package.",
"app.title": "Edge Stack [English]",
"app.description": "A Universal React Stack with deeply integrated localization Support, semi-automatic route-based code splitting, Hot Module Reloading (HMR), Redux, Apollo GraphQL and more...",
"counter": "Counter: {value, number}"
}
7 changes: 5 additions & 2 deletions src/common/Intl.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,13 @@ export function ensureIntlSupport(locale) {

// TODO: Wenn NodeJS dann meckern wenn i18n daten nicht vorhanden!!!

require("lean-intl")

const intlUrl = require("lean-intl/locale-data/json/" + locale + ".json")
console.log("Loading:", intlUrl)

return import("lean-intl").then((IntlPolyfill) => {
//return import("lean-intl").then((IntlPolyfill) => {
//require("lean-intl")
return fetch(intlUrl).then((response) => {
return response.json().then((parsed) => {
IntlPolyfill.__addLocaleData(parsed)
Expand All @@ -86,5 +89,5 @@ export function ensureIntlSupport(locale) {
console.error("Unable to load locale specific localization data!", error)
})
})
})
// })
}
2 changes: 2 additions & 0 deletions src/script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable no-console */
import chalk from "chalk"
import clearConsole from "react-dev-utils/clearConsole"

import build from "./scripts/build"
import start from "./scripts/start"
Expand All @@ -15,6 +16,7 @@ var args = process.argv.slice(ARGSPOS_ARGUMENTS)

function header()
{
clearConsole()
console.log(
chalk.cyan(`\n${packageConfig.name} ${packageConfig.version}`),
chalk.gray(`\n${packageConfig.description}`),
Expand Down
Loading

0 comments on commit 03c375b

Please sign in to comment.