feat(i18n): 게임 텍스트 번역 업데이트
This commit is contained in:
@@ -26,10 +26,13 @@ bool get isJapaneseLocale => _currentLocale == 'ja';
|
|||||||
///
|
///
|
||||||
/// 예: "syntax error" → "Syntax Error"
|
/// 예: "syntax error" → "Syntax Error"
|
||||||
String _toTitleCase(String text) {
|
String _toTitleCase(String text) {
|
||||||
return text.split(' ').map((word) {
|
return text
|
||||||
|
.split(' ')
|
||||||
|
.map((word) {
|
||||||
if (word.isEmpty) return word;
|
if (word.isEmpty) return word;
|
||||||
return word[0].toUpperCase() + word.substring(1).toLowerCase();
|
return word[0].toUpperCase() + word.substring(1).toLowerCase();
|
||||||
}).join(' ');
|
})
|
||||||
|
.join(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@@ -1941,3 +1944,55 @@ String get uiAboutDescription {
|
|||||||
if (isJapaneseLocale) return 'ASCIIアートとレトロ感のあるオフラインシングルプレイヤーRPGです。';
|
if (isJapaneseLocale) return 'ASCIIアートとレトロ感のあるオフラインシングルプレイヤーRPGです。';
|
||||||
return 'An offline single-player RPG with ASCII art and retro vibes.';
|
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';
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user