mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 04:48:36 +03:00
export language from utilities
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}`)
|
||||
|
||||
@@ -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 = {
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user