diff --git a/.vscode/settings.json b/.vscode/settings.json index 2f07bf4d..15840fdf 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,6 +9,7 @@ "*.css": "postcss" }, "i18n-ally.localesPaths": [ - "_locales" - ] + "src/_locales" + ], + "i18n-ally.keystyle": "nested" } diff --git a/_locales/cmn-CN.yml b/src/_locales/cmn-CN.yml similarity index 88% rename from _locales/cmn-CN.yml rename to src/_locales/cmn-CN.yml index f584074a..f431fee4 100644 --- a/_locales/cmn-CN.yml +++ b/src/_locales/cmn-CN.yml @@ -11,13 +11,30 @@ common: hour: 小时 minute: 分钟 second: 秒 - +settings: + title: 设置 + select_language: 界面语文 + select_language_opt: + english: 英文 + Mandarin_CN: 简体中文 + Mandarin_TW: 正體中文 + jyut: 粵文 + authorize_app: 授权 BewlyBewly 使用 access key + authorize_app_desc: | + 授权使用后能在首页推送我可能有兴趣观看的视频 (授权 key 有效期约为一个月,之后如果你发现首页推荐的视频不是你所感兴趣的,请尝试重新授权) + topbar_visiable: 顶栏可见性 + topbar_visiable_desc: 用于兼容 Bilibili Evolved 自定义顶栏 + btn: + authorize: 授权 + revoke: 取消授权 + chk_box: + show: 显示 + hidden: 隐藏 auth: err_tip: Failed to grant Access Key plz_login_first: Please login to bilibili first receive_vertified_url_err: Unable to receive verified URL. Please go back and try againe. failed_to_get_accesskey: Failed to get Access Key - topbar: sign_in: 登录 notifications: 通知 @@ -26,7 +43,7 @@ topbar: history: 历史 creative_center: 创作中心 upload: 投稿 - logo_dropdown: + logo_dropdown: anime: 番剧 movies: 电影 chinese_anime: 国创 @@ -80,12 +97,12 @@ topbar: likes: 收到的赞 messages: 系统消息 chats: 我的消息 - moments_dropdown: + moments_dropdown: tabs: videos: 视频 live: 直播 articles: 专栏 - uploaded: '上传了:' + uploaded: 上传了: live_status: 直播中 upload_dropdown: article: 专栏 @@ -93,28 +110,9 @@ topbar: sticker: 贴纸 video: 视频 manager: 投稿 - home: not_interested_in: 对哪方面不感兴趣? video_removed: 视频已移除 - -settings: - title: 设置 - select_language: 界面语文 - select_language_opt: - english: 英文 - Mandarin_CN: 简体中文 - Mandarin_TW: 正體中文 - jyut: 粵文 - authorize_app: 授权 BewlyBewly 使用 access key - authorize_app_desc: > - 授权使用后能在首页推送我可能有兴趣观看的视频 - (授权 key 有效期约为一个月,之后如果你发现首页推荐的视频不是你所感兴趣的,请尝试重新授权) - topbar_visiable: 顶栏可见性 - topbar_visiable_desc: 用于兼容 Bilibili Evolved 自定义顶栏 - btn: - authorize: 授权 - revoke: 取消授权 - chk_box: - show: 显示 - hidden: 隐藏 \ No newline at end of file +anime: + total_episodes: 全 {ep} 话 + update_to_n_episodes: 更新至 {ep} 话 diff --git a/_locales/cmn-TW.yml b/src/_locales/cmn-TW.yml similarity index 88% rename from _locales/cmn-TW.yml rename to src/_locales/cmn-TW.yml index f9a7e745..56eac9a9 100644 --- a/_locales/cmn-TW.yml +++ b/src/_locales/cmn-TW.yml @@ -11,7 +11,25 @@ common: hour: 小時 minute: 分鐘 second: 秒 - +settings: + title: 設定 + select_language: 介面語文 + select_language_opt: + english: 英文 + Mandarin_CN: 簡體中文 + Mandarin_TW: 正體中文 + jyut: 粵文 + authorize_app: 授權 BewlyBewly 使用 access key + authorize_app_desc: | + 授權使用後能在首頁推送我可能有興趣觀看的影片 (授權 key 有效期約為一個月,之後如果你發現首頁推薦的影片不是你所感興趣的,請嘗試重新授權) + topbar_visiable: 頂欄可視性 + topbar_visiable_desc: 用於相容 Bilibili Evolved 的客製化頂欄 + btn: + authorize: 授權 + revoke: 解除授權 + chk_box: + show: 顯示 + hidden: 隱藏 topbar: sign_in: 登入 notifications: 通知 @@ -20,7 +38,7 @@ topbar: history: 記錄 creative_center: 創作中心 upload: 上傳 - logo_dropdown: + logo_dropdown: anime: 番劇 movies: 電影 chinese_anime: 國創 @@ -74,12 +92,12 @@ topbar: likes: 按讚訊息 messages: 系统通知 chats: 聊天室 - moments_dropdown: + moments_dropdown: tabs: videos: 影片 live: 直播 articles: 文章 - uploaded: '上傳了:' + uploaded: 上傳了: live_status: 直播中 upload_dropdown: article: 上傳文章 @@ -87,28 +105,9 @@ topbar: sticker: 上傳貼圖 video: 上傳影片 manager: 內容管理 - home: not_interested_in: 對哪方面不感興趣? video_removed: 影片已移除 - -settings: - title: 設定 - select_language: 介面語文 - select_language_opt: - english: 英文 - Mandarin_CN: 簡體中文 - Mandarin_TW: 正體中文 - jyut: 粵文 - authorize_app: 授權 BewlyBewly 使用 access key - authorize_app_desc: > - 授權使用後能在首頁推送我可能有興趣觀看的影片 - (授權 key 有效期約為一個月,之後如果你發現首頁推薦的影片不是你所感興趣的,請嘗試重新授權) - topbar_visiable: 頂欄可視性 - topbar_visiable_desc: 用於相容 Bilibili Evolved 的客製化頂欄 - btn: - authorize: 授權 - revoke: 解除授權 - chk_box: - show: 顯示 - hidden: 隱藏 \ No newline at end of file +anime: + total_episodes: 全 {ep} 話 + update_to_n_episodes: 更新至 {ep} 話 diff --git a/_locales/en.yml b/src/_locales/en.yml similarity index 95% rename from _locales/en.yml rename to src/_locales/en.yml index 1c6b223d..65f862fe 100644 --- a/_locales/en.yml +++ b/src/_locales/en.yml @@ -12,6 +12,29 @@ common: minute: minute | minutes second: second | seconds +settings: + title: Settings + select_language: Language + select_language_opt: + english: English + Mandarin_CN: Mandarin (Simplified Chinese) + Mandarin_TW: Mandarin (Traditional Chinese) + jyut: Cantonese + authorize_app: Authorize BewlyBewly to use access key + authorize_app_desc: > + You can get some videos you might like based on what you watch after authentication. + This access key will be valid for about one month, + after which if you notice you are not interested in these recommended videos, + please try to re-authorize. + topbar_visiable: Topbar visiable + topbar_visiable_desc: Compatible with Bilibili Evolved customize topbar + btn: + authorize: Authorize + revoke: Revoke + chk_box: + show: Show + hidden: Hidden + auth: err_tip: Failed to grant Access Key plz_login_first: Please login to bilibili first @@ -26,7 +49,7 @@ topbar: history: History creative_center: Creative Center upload: Upload - logo_dropdown: + logo_dropdown: anime: Anime movies: Movies chinese_anime: Chinese anime @@ -80,7 +103,7 @@ topbar: likes: Likes messages: Messages chats: Chats - moments_dropdown: + moments_dropdown: tabs: videos: Videos live: Live @@ -98,25 +121,6 @@ home: not_interested_in: Not interested in... video_removed: Video removed -settings: - title: Settings - select_language: Language - select_language_opt: - english: English - Mandarin_CN: Mandarin (Simplified Chinese) - Mandarin_TW: Mandarin (Traditional Chinese) - jyut: Cantonese - authorize_app: Authorize BewlyBewly to use access key - authorize_app_desc: > - You can get some videos you might like based on what you watch after authentication. - This access key will be valid for about one month, - after which if you notice you are not interested in these recommended videos, - please try to re-authorize. - topbar_visiable: Topbar visiable - topbar_visiable_desc: Compatible with Bilibili Evolved customize topbar - btn: - authorize: Authorize - revoke: Revoke - chk_box: - show: Show - hidden: Hidden \ No newline at end of file +anime: + total_episodes: EP {ep} + update_to_n_episodes: Update to {ep} Episodes diff --git a/_locales/jyut.yml b/src/_locales/jyut.yml similarity index 87% rename from _locales/jyut.yml rename to src/_locales/jyut.yml index 6df66410..5ff8938d 100644 --- a/_locales/jyut.yml +++ b/src/_locales/jyut.yml @@ -11,13 +11,30 @@ common: hour: 個鐘頭 minute: 分鐘 second: 秒 - +settings: + title: 校做 + select_language: 介面語文 + select_language_opt: + english: 英文 + Mandarin_CN: 簡體中文 + Mandarin_TW: 正體中文 + jyut: 粵文 + authorize_app: 授權 BewlyBewly 使用 access key + authorize_app_desc: | + 授咗權嘅話首頁會畀啲可能啱我心水嘅片我 (授權 key 一個月左右有效,之後若然你撞正啲咩牛鬼蛇神唔開胃嘅嘢試下重新授權) + topbar_visiable: 頂欄可睇性 + topbar_visiable_desc: 用於兼容 Bilibili Evolved 客製化頂欄 + btn: + authorize: 授權 + revoke: 解除授權 + chk_box: + show: 擺出嚟 + hidden: 收埋 auth: err_tip: Failed to grant Access Key plz_login_first: Please login to bilibili first receive_vertified_url_err: Unable to receive verified URL. Please go back and try againe. failed_to_get_accesskey: Failed to get Access Key - topbar: sign_in: 登入 notifications: 通知 @@ -26,7 +43,7 @@ topbar: history: 記錄 creative_center: 創作中心 upload: Po 嘢 - logo_dropdown: + logo_dropdown: anime: 番劇 movies: 電影 chinese_anime: 國創 @@ -80,12 +97,12 @@ topbar: likes: 撳 like messages: 系统通知 chats: 傾偈室 - moments_dropdown: + moments_dropdown: tabs: videos: 影片 live: 直播 articles: 文章 - uploaded: 'po 咗:' + uploaded: po 咗: live_status: 直播緊 upload_dropdown: article: 寫文 @@ -93,28 +110,9 @@ topbar: sticker: 出貼圖 video: Po 片 manager: 內容管理 - home: not_interested_in: 對邊方面冇癮? video_removed: 經已鏟咗條片 - -settings: - title: 校做 - select_language: 介面語文 - select_language_opt: - english: 英文 - Mandarin_CN: 簡體中文 - Mandarin_TW: 正體中文 - jyut: 粵文 - authorize_app: 授權 BewlyBewly 使用 access key - authorize_app_desc: > - 授咗權嘅話首頁會畀啲可能啱我心水嘅片我 - (授權 key 一個月左右有效,之後若然你撞正啲咩牛鬼蛇神唔開胃嘅嘢試下重新授權) - topbar_visiable: 頂欄可睇性 - topbar_visiable_desc: 用於兼容 Bilibili Evolved 客製化頂欄 - btn: - authorize: 授權 - revoke: 解除授權 - chk_box: - show: 擺出嚟 - hidden: 收埋 \ No newline at end of file +anime: + total_episodes: 共 {ep} 集 + update_to_n_episodes: 更新到 {ep} 集 diff --git a/vite.config.ts b/vite.config.ts index 270a4636..163ad122 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -56,7 +56,7 @@ export const sharedConfig: UserConfig = { VueI18nPlugin({ runtimeOnly: true, compositionOnly: true, - include: [r('./_locales/**')], + include: [r('./src/_locales/**')], }), // https://github.com/unocss/unocss