refactor(i18n): 사용자 문구 참조를 중앙화
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import type { KeyboardEvent } from 'react';
|
||||
import { copy } from '@/shared/i18n';
|
||||
import { cn } from '@/shared/lib/cn';
|
||||
import { useHoldToConfirm } from '../model/useHoldToConfirm';
|
||||
|
||||
@@ -39,7 +40,7 @@ export const ExitHoldButton = ({
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
aria-label="길게 눌러 나가기"
|
||||
aria-label={copy.space.exitHold.holdToExitAriaLabel}
|
||||
onMouseDown={start}
|
||||
onMouseUp={cancel}
|
||||
onMouseLeave={cancel}
|
||||
@@ -90,7 +91,7 @@ export const ExitHoldButton = ({
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
aria-label="길게 눌러 나가기"
|
||||
aria-label={copy.space.exitHold.holdToExitAriaLabel}
|
||||
onMouseDown={start}
|
||||
onMouseUp={cancel}
|
||||
onMouseLeave={cancel}
|
||||
@@ -117,7 +118,7 @@ export const ExitHoldButton = ({
|
||||
) : null}
|
||||
<span className="relative z-10 inline-flex items-center gap-1">
|
||||
<span aria-hidden>⤫</span>
|
||||
<span>나가기</span>
|
||||
<span>{copy.space.exitHold.exit}</span>
|
||||
</span>
|
||||
</button>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user