require('babel/polyfill');

const environment = {
  development: {
    isProduction: false
  },
  production: {
    isProduction: true
  }
}[process.env.NODE_ENV || 'development'];

module.exports = Object.assign({
  host: process.env.HOST || 'localhost',
  port: process.env.PORT,
  apiHost: process.env.APIHOST || 'localhost',
  apiPort: process.env.APIPORT,
  app: {
    title: 'React Redux Example',
    description: 'All the modern best practices in one example.',
    head: {
      titleTemplate: 'React Redux Example: %s',
      meta: [
        {name: 'description', content: 'All the modern best practices in one example.'},
        {charset: 'utf-8'},
        {property: 'og:site_name', content: 'React Redux Example'},
        {property: 'og:image', content: 'https://react-redux.herokuapp.com/logo.jpg'},
        {property: 'og:locale', content: 'en_US'},
        {property: 'og:title', content: 'React Redux Example'},
        {property: 'og:description', content: 'All the modern best practices in one example.'},
        {property: 'og:card', content: 'summary'},
        {property: 'og:site', content: '@erikras'},
        {property: 'og:creator', content: '@erikras'},
        {property: 'og:image:width', content: '200'},
        {property: 'og:image:height', content: '200'}
      ]
    }
  },

}, environment);

@@ -175,16 +175,315 @@
 ent'%5D;%0A%0A
+const strings = %7B%0A  title: 'fiTTrail',%0A  description: 'Keep track of your fitness programme.',%0A  summary: 'fiTTrail gives you and your doctor a way to keep track of your fitness.',%0A  image: %7B%0A    url: '',%0A    width: '200',%0A    height: '200' %7D,%0A  locale: 'en_US',%0A  creator: 'github.com/fiTTrail'%0A%7D%0A%0A
 module.e
@@ -673,37 +673,29 @@
  title: 
-'React Redux Examp
+strings.tit
 le
-'
 ,%0A    de
@@ -709,55 +709,27 @@
 on: 
-'All the modern best practices in one example.'
+strings.description
 ,%0A  
@@ -763,33 +763,30 @@
 te: 
-'React Redux Examp
+%60$%7Bstrings.tit
 le
+%7D
 : %25s
-'
+%60
 ,%0A  
@@ -840,55 +840,27 @@
 nt: 
-'All the modern best practices in one example.'
+strings.description
 %7D,%0A 
@@ -930,37 +930,29 @@
 ontent: 
-'React Redux Examp
+strings.tit
 le
-'
 %7D,%0A     
@@ -990,52 +990,25 @@
 nt: 
-'https://react-redux.herokuapp.com/logo.jpg'
+strings.image.url
 %7D,%0A 
@@ -1047,23 +1047,30 @@
 ontent: 
-'en_US'
+strings.locale
 %7D,%0A     
@@ -1108,29 +1108,21 @@
 nt: 
-'React Redux Examp
+strings.tit
 le
-'
 %7D,%0A 
@@ -1170,55 +1170,27 @@
 nt: 
-'All the modern best practices in one example.'
+strings.description
 %7D,%0A 
@@ -1231,17 +1231,23 @@
 nt: 
-'
+strings.
 summary
-'
 %7D,%0A 
@@ -1280,34 +1280,39 @@
 ', content: 
-'@erikras'
+strings.creator
 %7D,%0A        %7B
@@ -1348,18 +1348,23 @@
 nt: 
-'@erikras'
+strings.creator
 %7D,%0A 
@@ -1408,21 +1408,35 @@
 ontent: 
-'200'
+strings.image.width
 %7D,%0A     
@@ -1477,21 +1477,36 @@
 ontent: 
-'200'
+strings.image.height
 %7D%0A      

Refactor strings out from config.js to eliminate duplication and update with fiTTrail strings