export language from utilities

This commit is contained in:
Juan Camilo González
2020-11-30 14:21:27 -05:00
parent 71e0e24b86
commit df2ccd33fa
3 changed files with 5 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
import copy from './data/copy.json'
const language = process.env.store.app.language || 'en-US'
import { language } from './utilities'
const cardStack = copy[language].cardstack
// Sensible defaults for generating a basic card layout

View File

@@ -1,11 +1,12 @@
import moment from 'moment'
import hash from 'object-hash'
const language = process.env.store.app.language || 'en-US'
let { DATE_FMT, TIME_FMT } = process.env
if (!DATE_FMT) DATE_FMT = 'MM/DD/YYYY'
if (!TIME_FMT) TIME_FMT = 'HH:mm'
export const language = process.env.store.app.language || 'en-US'
export function calcDatetime (date, time) {
if (!time) time = '00:00'
const dt = moment(`${date} ${time}`, `${DATE_FMT} ${TIME_FMT}`)

View File

@@ -2,8 +2,8 @@ import { mergeDeepLeft } from 'ramda'
import global, { colors } from '../common/global'
import generateCardLayout from '../common/card'
import copy from '../common/data/copy.json'
import { language } from '../common/utilities'
const language = process.env.store.app.language || 'en-US'
const isSmallLaptop = window.innerHeight < 800
const initial = {
/*