export const messages = { zh: { actress: '女优', actor: '男优', releaseDate: '发售日期', duration: '时长', studio: '制作商', label: '发行商', director: '导演', series: '系列', rating: '评分', wishlist: '想看', tags: '类别', cover: '封面', source: '数据来源', searching: '正在查询', notFound: '未找到番号', queryFailed: '查询失败', cacheCleared: '缓存已清空', cacheClearFailed: '清空缓存失败', cachePath: '缓存路径', fc2Detected: '识别为FC2格式的车牌号', windowsHint: '温馨提示: 此番号需要JAVDB数据源,Windows暂不支持~', setupTitle: '配置 JAVDB Cookie(可选)', setupDesc: '不配置也可以正常使用,配置后覆盖率更高。', setupSteps: '获取步骤:', setupStep1: 'Chrome 打开 https://javdb.com 并登录账号', setupStep2: '安装插件 "Get cookies.txt LOCALLY"', setupStep3: '导出 Cookie 文件,找到 _jdb_session 那行', setupStep4: '复制最后一列的值粘贴到下面', setupPrompt: '请粘贴 _jdb_session 的值(直接回车跳过): ', setupSkipped: '已跳过,使用 JAVBUS + JavLibrary 作为数据源。', setupSuccess: '配置保存成功!', setupSavePath: '保存位置: ~/.config/javinfo/config.json', }, en: { actress: 'Actress', actor: 'Actor', releaseDate: 'Released', duration: 'Duration', studio: 'Studio', label: 'Label', director: 'Director', series: 'Series', rating: 'Rating', wishlist: 'Wishlist', tags: 'Tags', cover: 'Cover', source: 'Source', searching: 'Searching', notFound: 'Title not found', queryFailed: 'Query failed', cacheCleared: 'Cache cleared', cacheClearFailed: 'Failed to clear cache', cachePath: 'Cache path', fc2Detected: 'FC2 format detected', windowsHint: 'Note: This title requires JAVDB, which is unavailable on Windows.', setupTitle: 'Setup JAVDB Cookie (Optional)', setupDesc: 'You can use without configuration, but adding it improves coverage.', setupSteps: 'Steps to get cookie:', setupStep1: 'Open https://javdb.com in Chrome and log in', setupStep2: 'Install extension "Get cookies.txt LOCALLY"', setupStep3: 'Export cookies and find the _jdb_session line', setupStep4: 'Copy the last column value and paste below', setupPrompt: 'Paste the value of _jdb_session (press Enter to skip): ', setupSkipped: 'Skipped. Using JAVBUS + JavLibrary as data sources.', setupSuccess: 'Configuration saved successfully!', setupSavePath: 'Saved to: ~/.config/javinfo/config.json', }, jp: { actress: '女優', actor: '男優', releaseDate: '発売日', duration: '時間', studio: 'メーカー', label: 'レーベル', director: '監督', series: 'シリーズ', rating: '評価', wishlist: '観たい', tags: 'カテゴリ', cover: 'カバー', source: 'データソース', searching: '検索中', notFound: '番号が見つかりません', queryFailed: '検索失敗', cacheCleared: 'キャッシュを削除しました', cacheClearFailed: 'キャッシュの削除に失敗しました', cachePath: 'キャッシュパス', fc2Detected: 'FC2番号を検出しました', windowsHint: '注意: この番号はJAVDBが必要ですが、WindowsではJAVDBが利用できません。', setupTitle: 'JAVDB Cookieの設定(オプション)', setupDesc: '設定しなくても使用できますが、設定すると検索範囲が広がります。', setupSteps: '取得手順:', setupStep1: 'Chromeで https://javdb.com を開いてログイン', setupStep2: '拡張機能 "Get cookies.txt LOCALLY" をインストール', setupStep3: 'Cookieをエクスポートし、_jdb_session の行を探す', setupStep4: '最後の列の値をコピーして以下に貼り付け', setupPrompt: '_jdb_session の値を貼り付けてください(Enterでスキップ): ', setupSkipped: 'スキップしました。JAVBUS + JavLibrary をデータソースとして使用します。', setupSuccess: '設定を保存しました!', setupSavePath: '保存場所: ~/.config/javinfo/config.json', }, kr: { actress: '여배우', actor: '남배우', releaseDate: '발매일', duration: '시간', studio: '제작사', label: '레이블', director: '감독', series: '시리즈', rating: '평점', wishlist: '보고싶어요', tags: '카테고리', cover: '커버', source: '데이터 출처', searching: '검색 중', notFound: '번호를 찾을 수 없습니다', queryFailed: '검색 실패', cacheCleared: '캐시가 삭제되었습니다', cacheClearFailed: '캐시 삭제 실패', cachePath: '캐시 경로', fc2Detected: 'FC2 형식 감지됨', windowsHint: '알림: 이 번호는 JAVDB가 필요하지만 Windows에서는 사용할 수 없습니다.', setupTitle: 'JAVDB Cookie 설정 (선택사항)', setupDesc: '설정하지 않아도 사용할 수 있지만, 설정하면 검색 범위가 넓어집니다.', setupSteps: '획득 단계:', setupStep1: 'Chrome에서 https://javdb.com 을 열고 로그인', setupStep2: '확장 프로그램 "Get cookies.txt LOCALLY" 설치', setupStep3: '쿠키를 내보내고 _jdb_session 줄을 찾기', setupStep4: '마지막 열의 값을 복사하여 아래에 붙여넣기', setupPrompt: '_jdb_session 값을 붙여넣어주세요 (Enter로 건너뛰기): ', setupSkipped: '건너뛰었습니다. JAVBUS + JavLibrary를 데이터 소스로 사용합니다.', setupSuccess: '설정이 성공적으로 저장되었습니다!', setupSavePath: '저장 위치: ~/.config/javinfo/config.json', }, de: { actress: 'Darstellerin', actor: 'Darsteller', releaseDate: 'Erscheinungsdatum', duration: 'Laufzeit', studio: 'Studio', label: 'Label', director: 'Regisseur', series: 'Serie', rating: 'Bewertung', wishlist: 'Merkliste', tags: 'Kategorien', cover: 'Cover', source: 'Datenquelle', searching: 'Suche läuft', notFound: 'Titel nicht gefunden', queryFailed: 'Suche fehlgeschlagen', cacheCleared: 'Cache geleert', cacheClearFailed: 'Cache konnte nicht geleert werden', cachePath: 'Cache-Pfad', fc2Detected: 'FC2-Format erkannt', windowsHint: 'Hinweis: Dieser Titel benötigt JAVDB, das unter Windows nicht verfügbar ist.', setupTitle: 'JAVDB Cookie einrichten (optional)', setupDesc: 'Ohne Konfiguration funktioniert es auch, aber mit Cookie ist die Abdeckung besser.', setupSteps: 'Schritte zum Abrufen:', setupStep1: 'Chrome öffnen, https://javdb.com aufrufen und anmelden', setupStep2: 'Erweiterung "Get cookies.txt LOCALLY" installieren', setupStep3: 'Cookies exportieren und die _jdb_session Zeile finden', setupStep4: 'Den Wert der letzten Spalte kopieren und unten einfügen', setupPrompt: 'Wert von _jdb_session einfügen (Enter zum Überspringen): ', setupSkipped: 'Übersprungen. JAVBUS + JavLibrary werden als Datenquellen verwendet.', setupSuccess: 'Konfiguration erfolgreich gespeichert!', setupSavePath: 'Gespeichert unter: ~/.config/javinfo/config.json', }, }; export function getLang(lang) { return messages[lang] || messages.zh; // 默认中文 }