mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 05:18:34 +03:00
🌐 Use locale throughout layouts
This commit is contained in:
@@ -341,6 +341,7 @@ class Timeline extends React.Component {
|
||||
onDragEnd={() => { this.onDragEnd() }}
|
||||
categories={categories.map(c => c.id)}
|
||||
features={this.props.features}
|
||||
fallbackLabel={copy[this.props.app.language].timeline.default_categories_label}
|
||||
/>
|
||||
<Handles
|
||||
dims={dims}
|
||||
|
||||
@@ -51,11 +51,11 @@ class TimelineCategories extends React.Component {
|
||||
}
|
||||
|
||||
render () {
|
||||
const { dims, categories } = this.props
|
||||
const { dims, categories, fallbackLabel } = this.props
|
||||
const categoriesExist = categories && categories.length > 0
|
||||
const renderedCategories = categoriesExist
|
||||
? this.props.categories.map((cat, idx) => this.renderCategory(cat, idx))
|
||||
: this.renderCategory('Events', 0)
|
||||
: this.renderCategory(fallbackLabel, 0)
|
||||
|
||||
return (
|
||||
<g class='yAxis'>
|
||||
|
||||
Reference in New Issue
Block a user