Commit 254c096e authored by amarcic's avatar amarcic
Browse files

timeline, tooltip translations: added plural

parent a1ae5c5b
......@@ -11,7 +11,8 @@
"Data sources": "Herkunft der Daten",
"Timeline": "Zeitstrahl",
"Temporal distribution": "Zeitliche Verteilung",
"item/s": "Objekt/e",
"Item": "Objekt",
"Item_plural": "Objekte",
"Turn on/off marker clustering": "Gruppieren von Markern",
"Resize map to show all markers": "Kartenausschnitt für aktuelle Marker anpassen",
......@@ -8,5 +8,7 @@
"Catalog": "Catalog",
"Catalog_plural": "Catalogs",
"EntityType": "Entity type",
"EntityType_plural": "Entity types"
"EntityType_plural": "Entity types",
"Item": "item",
"Item_plural": "items"
\ No newline at end of file
......@@ -192,8 +192,8 @@ export const TimelineChart = (props) => {
.attr("class", "tooltip")
.text( value => yScale.bandwidth() <= labelRenderLimit
? `${value.periodName}: ${value.items.length} ${t("item/s")}`
: `${value.items.length} ${t("item/s")}`)
? `${value.periodName}: ${value.items.length} ${t("Item", {count: value.items.length})}`
: `${value.items.length} ${t("Item", {count: value.items.length})}`)
.attr("text-anchor", "middle")
.attr("x", value => xScale(value.periodSpan?.[0]))
.attr("y", value => yScale(value.periodId)+yScale.bandwidth()/**/)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment