mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 13:28:36 +03:00
🌐 Use locale throughout layouts
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
import copy from './data/copy.json';
|
||||
const {date_title, location_title, summary_title} = copy[process.env.store.app.language].cardstack;
|
||||
|
||||
// Sensible defaults for generating a basic card layout
|
||||
// based on the example Timemap datasheet.
|
||||
|
||||
const basic = ({ event }) => {
|
||||
return [
|
||||
[
|
||||
{
|
||||
kind: 'date',
|
||||
title: 'Incident Date',
|
||||
title: date_title || 'Incident Dates',
|
||||
value: event.datetime || event.date || ``
|
||||
},
|
||||
{
|
||||
kind: 'text',
|
||||
title: 'Location',
|
||||
title: location_title || 'Location',
|
||||
value: event.location || `—`
|
||||
}
|
||||
],
|
||||
@@ -18,7 +22,7 @@ const basic = ({ event }) => {
|
||||
[
|
||||
{
|
||||
kind: 'text',
|
||||
title: 'Summary',
|
||||
title: summary_title || 'Summary',
|
||||
value: event.description || ``,
|
||||
scaleFont: 1.1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user