From 50942b44f1b08468ffee5154dd660e39275c4deb Mon Sep 17 00:00:00 2001 From: Edmond <61924136+Marcio2536@users.noreply.github.com> Date: Mon, 17 Feb 2025 23:52:58 +0800 Subject: [PATCH] feat: Add Chinese (Traditional) Translation (#522) --- i18n.ts | 3 + translations/zh-TW.json | 457 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 460 insertions(+) create mode 100644 translations/zh-TW.json diff --git a/i18n.ts b/i18n.ts index 4a753152..f7f62327 100644 --- a/i18n.ts +++ b/i18n.ts @@ -6,6 +6,7 @@ import en from "./translations/en.json"; import es from "./translations/es.json"; import fr from "./translations/fr.json"; import sv from "./translations/sv.json"; +import zhTW from './translations/zh-TW.json'; import { getLocales } from "expo-localization"; export const APP_LANGUAGES = [ @@ -14,6 +15,7 @@ export const APP_LANGUAGES = [ { label: "Español", value: "es" }, { label: "Français", value: "fr" }, { label: "Svenska", value: "sv" }, + { label: "繁體中文", value: "zh-TW" }, ]; i18n.use(initReactI18next).init({ @@ -24,6 +26,7 @@ i18n.use(initReactI18next).init({ es: { translation: es }, fr: { translation: fr }, sv: { translation: sv }, + "zh-TW": { translation: zhTW }, }, lng: getLocales()[0].languageCode || "en", diff --git a/translations/zh-TW.json b/translations/zh-TW.json new file mode 100644 index 00000000..bd5bba84 --- /dev/null +++ b/translations/zh-TW.json @@ -0,0 +1,457 @@ +{ + "login": { + "username_required": "需要用戶名", + "error_title": "錯誤", + "login_title": "登入", + "login_to_title": "登入至", + "username_placeholder": "用戶名", + "password_placeholder": "密碼", + "login_button": "登入", + "quick_connect": "快速連接", + "enter_code_to_login": "輸入代碼 {{code}} 以登入", + "failed_to_initiate_quick_connect": "無法啟動快速連接", + "got_it": "知道了", + "connection_failed": "連接失敗", + "could_not_connect_to_server": "無法連接到伺服器。請檢查 URL 和您的網絡連接。", + "an_unexpected_error_occured": "發生意外錯誤", + "change_server": "更改伺服器", + "invalid_username_or_password": "無效的用戶名或密碼", + "user_does_not_have_permission_to_log_in": "用戶無權登入", + "server_is_taking_too_long_to_respond_try_again_later": "伺服器響應時間過長,請稍後再試", + "server_received_too_many_requests_try_again_later": "伺服器收到太多請求,請稍後再試。", + "there_is_a_server_error": "伺服器出錯", + "an_unexpected_error_occured_did_you_enter_the_correct_url": "發生意外錯誤。您是否正確輸入了伺服器 URL?" + }, + "server": { + "enter_url_to_jellyfin_server": "輸入您的 Jellyfin 伺服器的 URL", + "server_url_placeholder": "http(s)://your-server.com", + "connect_button": "連接", + "previous_servers": "先前的伺服器", + "clear_button": "清除", + "search_for_local_servers": "搜尋本地伺服器", + "searching": "搜尋中...", + "servers": "伺服器" + }, + "home": { + "no_internet": "無網絡", + "no_items": "無項目", + "no_internet_message": "別擔心,您仍然可以觀看\n已下載的內容。", + "go_to_downloads": "前往下載", + "oops": "哎呀!", + "error_message": "出錯了。\n請重新登出並登入。", + "continue_watching": "繼續觀看", + "next_up": "下一個", + "recently_added_in": "最近添加於 {{libraryName}}", + "suggested_movies": "推薦電影", + "suggested_episodes": "推薦劇集", + "intro": { + "welcome_to_streamyfin": "歡迎來到 Streamyfin", + "a_free_and_open_source_client_for_jellyfin": "一個免費且開源的 Jellyfin 客戶端。", + "features_title": "功能", + "features_description": "Streamyfin 擁有許多功能,並與多種軟體整合,您可以在設置菜單中找到這些功能,包括:", + "jellyseerr_feature_description": "連接到您的 Jellyseerr 實例並直接在應用程序中請求電影。", + "downloads_feature_title": "下載", + "downloads_feature_description": "下載電影和電視節目以離線觀看。使用默認方法或安裝 Optimized Server 以在背景中下載文件。", + "chromecast_feature_description": "將電影和電視節目投射到您的 Chromecast 設備。", + "centralised_settings_plugin_title": "統一設置插件", + "centralised_settings_plugin_description": "從 Jellyfin 伺服器上的統一位置改變設置。所有用戶的所有客戶端設置將會自動同步。", + "done_button": "完成", + "go_to_settings_button": "前往設置", + "read_more": "閱讀更多" + }, + "settings": { + "settings_title": "設置", + "log_out_button": "登出", + "user_info": { + "user_info_title": "用戶信息", + "user": "用戶", + "server": "伺服器", + "token": "令牌", + "app_version": "應用版本" + }, + "quick_connect": { + "quick_connect_title": "快速連接", + "authorize_button": "授權快速連接", + "enter_the_quick_connect_code": "輸入快速連接代碼...", + "success": "成功", + "quick_connect_autorized": "快速連接已授權", + "error": "錯誤", + "invalid_code": "無效代碼", + "authorize": "授權" + }, + "media_controls": { + "media_controls_title": "媒體控制", + "forward_skip_length": "前進跳過長度", + "rewind_length": "倒帶長度", + "seconds_unit": "秒" + }, + "audio": { + "audio_title": "音頻", + "set_audio_track": "從上一個項目設置音軌", + "audio_language": "音頻語言", + "audio_hint": "選擇默認音頻語言。", + "none": "無", + "language": "語言" + }, + "subtitles": { + "subtitle_title": "字幕", + "subtitle_language": "字幕語言", + "subtitle_mode": "字幕模式", + "set_subtitle_track": "從上一個項目設置字幕軌道", + "subtitle_size": "字幕大小", + "subtitle_hint": "配置字幕偏好。", + "none": "無", + "language": "語言", + "loading": "加載中", + "modes": { + "Default": "默認", + "Smart": "智能", + "Always": "總是", + "None": "無", + "OnlyForced": "僅強制" + } + }, + "other": { + "other_title": "其他", + "auto_rotate": "自動旋轉", + "video_orientation": "影片方向", + "orientation": "方向", + "orientations": { + "DEFAULT": "默認", + "ALL": "全部", + "PORTRAIT": "縱向", + "PORTRAIT_UP": "縱向向上", + "PORTRAIT_DOWN": "縱向向下", + "LANDSCAPE": "橫向", + "LANDSCAPE_LEFT": "橫向左", + "LANDSCAPE_RIGHT": "橫向右", + "OTHER": "其他", + "UNKNOWN": "未知" + }, + "safe_area_in_controls": "控制中的安全區域", + "show_custom_menu_links": "顯示自定義菜單鏈接", + "hide_libraries": "隱藏媒體庫", + "select_liraries_you_want_to_hide": "選擇您想從媒體庫頁面和主頁隱藏的媒體庫。", + "disable_haptic_feedback": "禁用觸覺回饋" + }, + "downloads": { + "downloads_title": "下載", + "download_method": "下載方法", + "remux_max_download": "Remux 最大下載", + "auto_download": "自動下載", + "optimized_versions_server": "Optimized Version 伺服器", + "save_button": "保存", + "optimized_server": "Optimized Server", + "optimized": "優化", + "default": "默認", + "optimized_version_hint": "輸入 Optimized Server 的 URL。URL 應包括 http(s) 和端口 (可選)。", + "read_more_about_optimized_server": "閱讀更多關於 Optimized Server 的信息。", + "url": "URL", + "server_url_placeholder": "http(s)://domain.org:port" + }, + "plugins": { + "plugins_title": "插件", + "jellyseerr": { + "jellyseerr_warning": "此集成處於早期階段。功能可能會有變化。", + "server_url": "伺服器 URL", + "server_url_hint": "示例:http(s)://your-host.url\n(如果需要,添加端口)", + "server_url_placeholder": "Jellyseerr URL...", + "password": "密碼", + "password_placeholder": "輸入 Jellyfin 用戶 {{username}} 的密碼", + "save_button": "保存", + "clear_button": "清除", + "login_button": "登入", + "total_media_requests": "總媒體請求", + "movie_quota_limit": "電影配額限制", + "movie_quota_days": "電影配額天數", + "tv_quota_limit": "電視配額限制", + "tv_quota_days": "電視配額天數", + "reset_jellyseerr_config_button": "重置 Jellyseerr 配置", + "unlimited": "無限制" + }, + "marlin_search": { + "enable_marlin_search": "啟用 Marlin 搜索", + "url": "URL", + "server_url_placeholder": "http(s)://domain.org:port", + "marlin_search_hint": "輸入 Marlin 伺服器的 URL。URL 應包括 http(s) 和端口 (可選)。", + "read_more_about_marlin": "閱讀更多關於 Marlin 的信息。", + "save_button": "保存", + "toasts": { + "saved": "已保存" + } + } + }, + "storage": { + "storage_title": "存儲", + "app_usage": "應用 {{usedSpace}}%", + "device_usage": "設備 {{availableSpace}}%", + "size_used": "已使用 {{used}} / {{total}}", + "delete_all_downloaded_files": "刪除所有已下載文件" + }, + "intro": { + "show_intro": "顯示介紹", + "reset_intro": "重置介紹" + }, + "logs": { + "logs_title": "日誌", + "no_logs_available": "無可用日誌", + "delete_all_logs": "刪除所有日誌" + }, + "languages": { + "title": "語言", + "app_language": "應用語言", + "app_language_description": "選擇應用的語言。", + "system": "系統" + }, + "toasts": { + "error_deleting_files": "刪除文件時出錯", + "background_downloads_enabled": "背景下載已啟用", + "background_downloads_disabled": "背景下載已禁用", + "connected": "已連接", + "could_not_connect": "無法連接", + "invalid_url": "無效的 URL" + } + }, + "downloads": { + "downloads_title": "下載", + "tvseries": "電視劇", + "movies": "電影", + "queue": "隊列", + "queue_hint": "應用重啟後隊列和下載將會丟失", + "no_items_in_queue": "隊列中無項目", + "no_downloaded_items": "無已下載項目", + "delete_all_movies_button": "刪除所有電影", + "delete_all_tvseries_button": "刪除所有電視劇", + "delete_all_button": "刪除全部", + "active_download": "活動下載", + "no_active_downloads": "無活動下載", + "active_downloads": "活動下載", + "new_app_version_requires_re_download": "新應用版本需要重新下載", + "new_app_version_requires_re_download_description": "新更新需要重新下載內容。請刪除所有已下載內容後再重試。", + "back": "返回", + "delete": "刪除", + "something_went_wrong": "出了些問題", + "could_not_get_stream_url_from_jellyfin": "無法從 Jellyfin 獲取串流 URL", + "eta": "預計完成時間 {{eta}}", + "methods": "方法", + "toasts": { + "you_are_not_allowed_to_download_files": "您無權下載文件。", + "deleted_all_movies_successfully": "成功刪除所有電影!", + "failed_to_delete_all_movies": "刪除所有電影失敗", + "deleted_all_tvseries_successfully": "成功刪除所有電視劇!", + "failed_to_delete_all_tvseries": "刪除所有電視劇失敗", + "download_cancelled": "下載已取消", + "could_not_cancel_download": "無法取消下載", + "download_completed": "下載完成", + "download_started_for": "開始下載 {{item}}", + "item_is_ready_to_be_downloaded": "{{item}} 準備好下載", + "download_stated_for_item": "開始下載 {{item}}", + "download_failed_for_item": "下載失敗 {{item}} - {{error}}", + "download_completed_for_item": "下載完成 {{item}}", + "queued_item_for_optimization": "已將 {{item}} 排隊進行優化", + "failed_to_start_download_for_item": "無法開始下載 {{item}}: {{message}}", + "server_responded_with_status_code": "伺服器響應狀態 {{statusCode}}", + "no_response_received_from_server": "未收到伺服器的響應", + "error_setting_up_the_request": "設置請求時出錯", + "failed_to_start_download_for_item_unexpected_error": "無法開始下載 {{item}}: 發生意外錯誤", + "all_files_folders_and_jobs_deleted_successfully": "所有文件、文件夾和任務成功刪除", + "an_error_occured_while_deleting_files_and_jobs": "刪除文件和任務時發生錯誤", + "go_to_downloads": "前往下載" + } + } + }, + "search": { + "search_here": "在這裡搜索...", + "search": "搜索...", + "x_items": "{{count}} 項目", + "library": "媒體庫", + "discover": "發現", + "no_results": "沒有結果", + "no_results_found_for": "未找到結果", + "movies": "電影", + "series": "系列", + "episodes": "劇集", + "collections": "收藏", + "actors": "演員", + "request_movies": "請求電影", + "request_series": "請求系列", + "recently_added": "最近添加", + "recent_requests": "最近請求", + "plex_watchlist": "Plex 觀影清單", + "trending": "趨勢", + "popular_movies": "熱門電影", + "movie_genres": "電影類型", + "upcoming_movies": "即將上映的電影", + "studios": "工作室", + "popular_tv": "熱門電視", + "tv_genres": "電視類型", + "upcoming_tv": "即將上映的電視", + "networks": "網絡", + "tmdb_movie_keyword": "TMDB 電影關鍵詞", + "tmdb_movie_genre": "TMDB 電影類型", + "tmdb_tv_keyword": "TMDB 電視關鍵詞", + "tmdb_tv_genre": "TMDB 電視類型", + "tmdb_search": "TMDB 搜索", + "tmdb_studio": "TMDB 工作室", + "tmdb_network": "TMDB 網絡", + "tmdb_movie_streaming_services": "TMDB 電影流媒體服務", + "tmdb_tv_streaming_services": "TMDB 電視流媒體服務" + }, + "library": { + "no_items_found": "未找到項目", + "no_results": "沒有結果", + "no_libraries_found": "未找到媒體庫", + "item_types": { + "movies": "電影", + "series": "系列", + "boxsets": "套裝", + "items": "項目" + }, + "options": { + "display": "顯示", + "row": "行", + "list": "列表", + "image_style": "圖片樣式", + "poster": "海報", + "cover": "封面", + "show_titles": "顯示標題", + "show_stats": "顯示統計" + }, + "filters": { + "genres": "類型", + "years": "年份", + "sort_by": "排序依據", + "sort_order": "排序順序", + "tags": "標籤" + } + }, + "favorites": { + "series": "系列", + "movies": "電影", + "episodes": "劇集", + "videos": "影片", + "boxsets": "套裝", + "playlists": "播放列表" + }, + "custom_links": { + "no_links": "無鏈接" + }, + "player": { + "error": "錯誤", + "failed_to_get_stream_url": "無法獲取流 URL", + "an_error_occured_while_playing_the_video": "播放影片時發生錯誤。請檢查設置中的日誌。", + "client_error": "客戶端錯誤", + "could_not_create_stream_for_chromecast": "無法為 Chromecast 建立串流", + "message_from_server": "來自伺服器的消息:{{message}}", + "video_has_finished_playing": "影片播放完畢!", + "no_video_source": "無影片來源...", + "next_episode": "下一集", + "refresh_tracks": "刷新軌道", + "subtitle_tracks": "字幕軌道:", + "audio_tracks": "音頻軌道:", + "playback_state": "播放狀態:", + "no_data_available": "無可用數據", + "index": "索引:" + }, + "item_card": { + "next_up": "下一個", + "no_items_to_display": "無項目顯示", + "cast_and_crew": "演員和工作人員", + "series": "系列", + "seasons": "季", + "season": "季", + "no_episodes_for_this_season": "本季無劇集", + "overview": "概覽", + "more_with": "更多 {{name}} 的作品", + "similar_items": "類似項目", + "no_similar_items_found": "未找到類似項目", + "video": "影片", + "more_details": "更多詳情", + "quality": "質量", + "audio": "音頻", + "subtitles": "字幕", + "show_more": "顯示更多", + "show_less": "顯示更少", + "appeared_in": "出現於", + "could_not_load_item": "無法加載項目", + "none": "無", + "download": { + "download_season": "下載季度", + "download_series": "下載系列", + "download_episode": "下載劇集", + "download_movie": "下載電影", + "download_x_item": "下載 {{item_count}} 項目", + "download_button": "下載", + "using_optimized_server": "使用 Optimized Server", + "using_default_method": "使用默認方法" + } + }, + "live_tv": { + "next": "下一個", + "previous": "上一個", + "live_tv": "直播電視", + "coming_soon": "即將推出", + "on_now": "正在播放", + "shows": "節目", + "movies": "電影", + "sports": "體育", + "for_kids": "兒童", + "news": "新聞" + }, + "jellyseerr": { + "confirm": "確認", + "cancel": "取消", + "yes": "是", + "whats_wrong": "出了什麼問題?", + "issue_type": "問題類型", + "select_an_issue": "選擇一個問題", + "types": "類型", + "describe_the_issue": "(可選)描述問題...", + "submit_button": "提交", + "report_issue_button": "報告問題", + "request_button": "請求", + "are_you_sure_you_want_to_request_all_seasons": "您確定要請求所有季度的節目嗎?", + "failed_to_login": "登入失敗", + "cast": "演員", + "details": "詳情", + "status": "狀態", + "original_title": "原標題", + "series_type": "系列類型", + "release_dates": "發行日期", + "first_air_date": "首次播出日期", + "next_air_date": "下次播出日期", + "revenue": "收入", + "budget": "預算", + "original_language": "原始語言", + "production_country": "製作國家", + "studios": "工作室", + "network": "網絡", + "currently_streaming_on": "目前在以下流媒體上播放", + "advanced": "高級", + "request_as": "請求為", + "tags": "標籤", + "quality_profile": "質量配置文件", + "root_folder": "根文件夾", + "season_x": "第 {{seasons}} 季", + "season_number": "第 {{season_number}} 季", + "number_episodes": "{{episode_number}} 集", + "born": "出生", + "appearances": "出場", + "toasts": { + "jellyseer_does_not_meet_requirements": "Jellyseerr 伺服器不符合最低版本要求!請更新至至少 2.0.0", + "jellyseerr_test_failed": "Jellyseerr 測試失敗。請再試一次。", + "failed_to_test_jellyseerr_server_url": "無法測試 Jellyseerr 伺服器 URL", + "issue_submitted": "問題已提交!", + "requested_item": "已請求 {{item}}!", + "you_dont_have_permission_to_request": "您無權請求媒體!", + "something_went_wrong_requesting_media": "請求媒體時出了些問題!" + } + }, + "tabs": { + "home": "主頁", + "search": "搜索", + "library": "庫", + "custom_links": "自定義鏈接", + "favorites": "收藏" + } +}