refactor(i18n): 사용자 문구 참조를 중앙화

This commit is contained in:
2026-03-10 13:32:37 +09:00
parent 92a509ebb6
commit 1717f335f0
44 changed files with 433 additions and 515 deletions

View File

@@ -2,6 +2,7 @@
import type { ReactNode } from 'react';
import { useEffect } from 'react';
import { copy } from '@/shared/i18n';
import { cn } from '@/shared/lib/cn';
import { useReducedMotion } from '@/shared/lib/useReducedMotion';
@@ -50,7 +51,7 @@ export const Modal = ({
<div className="fixed inset-0 z-50 flex items-end justify-center p-4 sm:items-center">
<button
type="button"
aria-label="모달 닫기"
aria-label={copy.modal.closeAriaLabel}
onClick={onClose}
className="absolute inset-0 bg-slate-900/52 backdrop-blur-[2px]"
/>
@@ -81,7 +82,7 @@ export const Modal = ({
onClick={onClose}
className="rounded-lg border border-brand-dark/16 bg-white/58 px-2.5 py-1.5 text-xs text-brand-dark/82 transition hover:bg-white/84 hover:text-brand-dark"
>
{copy.modal.closeButton}
</button>
</div>
</header>