Localise timeline and movement chart captions in English and Russian.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Danila Khodjaef
2026-08-13 12:45:44 +03:00
co-authored by Cursor
parent 44092d102b
commit 1c9fa20191
7 changed files with 25 additions and 6 deletions
@@ -1,4 +1,5 @@
import { useMemo, useRef, useCallback, useEffect, useLayoutEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import type { ArtMovement } from '../types';
import { MOVEMENT_LINEAGE } from '../data/movement-lineage';
import { panTimelineView, zoomTimelineView } from '../utils/timelineView';
@@ -364,6 +365,7 @@ export default function VerticalMovementBands({
onViewChange,
onMovementClick,
}: Props) {
const { t } = useTranslation('home');
const canvasRef = useRef<HTMLDivElement>(null);
const [canvasSize, setCanvasSize] = useState({ w: 800, h: 600 });
const [panning, setPanning] = useState(false);
@@ -631,7 +633,7 @@ export default function VerticalMovementBands({
return (
<div className="vflow">
<p className="vflow-caption">
Bottom top through history · scroll to zoom · drag to pan · click a stream
{t('captionVerticalFlow')}
</p>
<div
ref={canvasRef}