mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-13 05:48:36 +03:00
🌐 Use locale throughout layouts
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { mergeDeepLeft } from 'ramda'
|
||||
import global, { colors } from '../common/global'
|
||||
import generateCardLayout from '../common/card'
|
||||
import copy from '../common/data/copy.json';
|
||||
|
||||
const language = process.env.store.app.language;
|
||||
const isSmallLaptop = window.innerHeight < 800
|
||||
const initial = {
|
||||
/*
|
||||
@@ -77,7 +79,7 @@ const initial = {
|
||||
},
|
||||
range: [new Date(2001, 2, 23, 12), new Date(2021, 2, 23, 12)],
|
||||
rangeLimits: [new Date(1, 1, 1, 1), new Date()],
|
||||
zoomLevels: [
|
||||
zoomLevels: copy[language].timeline.zoomLevels || [
|
||||
{ label: '20 years', duration: 10512000 },
|
||||
{ label: '2 years', duration: 1051200 },
|
||||
{ label: '3 months', duration: 129600 },
|
||||
|
||||
Reference in New Issue
Block a user