Skip to content

Commit 6cab9cc

Browse files
committed
fix: use translation on next/auto
1 parent 5f4e24e commit 6cab9cc

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/webui/src/client/styles/countdown/director.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ $hold-status-color: $liveline-timecode-color;
304304
color: #000;
305305
padding-top: 5px;
306306
padding-left: 8px;
307-
max-width: 120px;
307+
padding-right: 20px;
308+
width: fit-content;
308309
max-height: 50px;
309310
z-index: 1;
310311
font-stretch: 25;

packages/webui/src/client/ui/ClockView/DirectorScreen.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import {
4444
} from '../../lib/Components/CounterComponents'
4545
import { AdjustLabelFit } from '../util/AdjustLabelFit'
4646
import { AutoNextStatus } from '../RundownView/RundownTiming/AutoNextStatus'
47+
import { useTranslation } from 'react-i18next'
4748

4849
interface SegmentUi extends DBSegment {
4950
items: Array<PartUi>
@@ -347,6 +348,7 @@ function DirectorScreenRender({
347348
rundownIds,
348349
}: Readonly<WithTiming<DirectorScreenProps & DirectorScreenTrackedProps>>) {
349350
useSetDocumentClass('dark', 'xdark')
351+
const { t } = useTranslation()
350352

351353
if (playlist && playlistId && segments) {
352354
const expectedStart = PlaylistTiming.getExpectedStart(playlist.timing) || 0
@@ -513,7 +515,7 @@ function DirectorScreenRender({
513515
nextSegment === undefined || nextSegment?._id === currentSegment?._id,
514516
})}
515517
>
516-
AUTO
518+
{t('Auto')}
517519
</span>
518520
) : (
519521
<span
@@ -522,7 +524,7 @@ function DirectorScreenRender({
522524
nextSegment === undefined || nextSegment?._id === currentSegment?._id,
523525
})}
524526
>
525-
NEXT
527+
{t('Next')}
526528
</span>
527529
)}
528530
<div className="director-screen__body__part__piece-icon">

0 commit comments

Comments
 (0)