diff --git a/lib/data/game_text_l10n.dart b/lib/data/game_text_l10n.dart index 3f37a20..e671c82 100644 --- a/lib/data/game_text_l10n.dart +++ b/lib/data/game_text_l10n.dart @@ -26,10 +26,13 @@ bool get isJapaneseLocale => _currentLocale == 'ja'; /// /// 예: "syntax error" → "Syntax Error" String _toTitleCase(String text) { - return text.split(' ').map((word) { - if (word.isEmpty) return word; - return word[0].toUpperCase() + word.substring(1).toLowerCase(); - }).join(' '); + return text + .split(' ') + .map((word) { + if (word.isEmpty) return word; + return word[0].toUpperCase() + word.substring(1).toLowerCase(); + }) + .join(' '); } // ============================================================================ @@ -1941,3 +1944,55 @@ String get uiAboutDescription { if (isJapaneseLocale) return 'ASCIIアートとレトロ感のあるオフラインシングルプレイヤーRPGです。'; return 'An offline single-player RPG with ASCII art and retro vibes.'; } + +// ============================================================================ +// 공통 UI 액션 텍스트 +// ============================================================================ + +String get uiConfirm { + if (isKoreanLocale) return '확인'; + if (isJapaneseLocale) return '確認'; + return 'Confirm'; +} + +String get uiCancel { + if (isKoreanLocale) return '취소'; + if (isJapaneseLocale) return 'キャンセル'; + return 'Cancel'; +} + +String get uiDelete { + if (isKoreanLocale) return '삭제'; + if (isJapaneseLocale) return '削除'; + return 'Delete'; +} + +String get uiConfirmDelete { + if (isKoreanLocale) return '정말로 삭제하시겠습니까?'; + if (isJapaneseLocale) return '本当に削除しますか?'; + return 'Are you sure you want to delete?'; +} + +String get uiDeleted { + if (isKoreanLocale) return '삭제되었습니다'; + if (isJapaneseLocale) return '削除されました'; + return 'Deleted'; +} + +String get uiError { + if (isKoreanLocale) return '오류가 발생했습니다'; + if (isJapaneseLocale) return 'エラーが発生しました'; + return 'An error occurred'; +} + +String get uiSaved { + if (isKoreanLocale) return '저장됨'; + if (isJapaneseLocale) return '保存しました'; + return 'Saved'; +} + +String get uiSaveBattleLog { + if (isKoreanLocale) return '배틀로그 저장'; + if (isJapaneseLocale) return 'バトルログ保存'; + return 'Save Battle Log'; +}