diff --git a/_locales/cmn-SC.yml b/_locales/cmn-SC.yml new file mode 100644 index 00000000..5dce3bcf --- /dev/null +++ b/_locales/cmn-SC.yml @@ -0,0 +1,84 @@ +topbar: + sign_in: 登录 + notifications: 通知 + moments: 动态 + faviours: 收藏 + history: 历史 + creative_center: 创作中心 + upload: 投稿 + logo_dropdown: + anime: 番剧 + movies: 电影 + chinese_anime: 国创 + tv_shows: 电视剧 + variety_shows: 综艺 + documentary_films: 纪录片 + animations: 动画 + gaming: 游戏 + kichiku: 鬼畜 + music: 音乐 + dance: 舞蹈 + cinephile: 影视 + showbiz: 娱乐 + knowledge: 知识 + technology: 科技 + news: 资讯 + foods: 美食 + life: 生活 + cars: 汽车 + fashion: 时尚 + sports: 运动 + animals: 动物圈 + vlog: VLOG + funny: 搞笑 + standalone_gaming: 单机游戏 + vtubers: 虚拟主播 + charitable_events: 公益 + moocs: 公开课 + articles: 专栏 + live: 直播 + activities: 活动 + paid_courses: 课堂 + community: 社区中心 + music_plus: 新歌热榜 + user_dropdown: + money: 硬币: + b_coins: B币: + following: 关注 + followers: 观众 + posts: 动态 + accout_settings: 个人中心 + uploads_manager: 投稿管理 + b_coins_wallet: B币钱包 + orders: 订单中心 + my_stream_info: 直播中心 + my_courses: 我的课程 + log_out: 退出登录 + noti_dropdown: + replys: 回复我的 + mentions: 提到我的 + likes: 收到的赞 + messages: 系统消息 + chats: 我的消息 + upload_dropdown: + article: 专栏 + music: 音频 + sticker: 贴纸 + video: 视频 + manager: 投稿 + +home: + loading_more: 加载中... + +settings: + title: 设置 + authorize_app: 授权 BewlyBewly 使用 Access Key + authorize_app_desc: 授权使用后能在首页推送我可能有兴趣观看的视频 + topbar_visiable: 顶栏可见性 + topbar_visiable_desc: 用于兼容 Bilibili Evolved 自定义顶栏 + btn: + authorize: 授权 + revoke: 取消授权 + chk_box: + show: 显示 + hidden: 隐藏 \ No newline at end of file diff --git a/_locales/cmn-TC.yml b/_locales/cmn-TC.yml new file mode 100644 index 00000000..14ddbc0e --- /dev/null +++ b/_locales/cmn-TC.yml @@ -0,0 +1,84 @@ +topbar: + sign_in: 登入 + notifications: 通知 + moments: 動向 + faviours: 收藏 + history: 記錄 + creative_center: 創作中心 + upload: 上載 + logo_dropdown: + anime: 番劇 + movies: 電影 + chinese_anime: 國創 + tv_shows: 電視劇 + variety_shows: 綜藝 + documentary_films: 紀錄片 + animations: 動畫 + gaming: 遊戲 + kichiku: 鬼畜 + music: 音樂 + dance: 舞蹈 + cinephile: 影視 + showbiz: 娛樂 + knowledge: 知識 + technology: 科技 + news: 新聞 + foods: 美食 + life: 生活 + cars: 汽車 + fashion: 時尚 + sports: 運動 + animals: 動物圈 + vlog: VLOG + funny: 搞笑 + standalone_gaming: 單機遊戲 + vtubers: Vtubers & Vups + charitable_events: 慈善 + moocs: 開放式線上課程 + articles: 專欄 + live: 直播 + activities: 活動 + paid_courses: 課堂 + community: 社羣中心 + music_plus: 新歌熱榜 + user_dropdown: + money: 硬幣: + b_coins: B幣: + following: 追蹤 + followers: 訂閱者 + posts: 貼文 + accout_settings: 帳戶資訊 + uploads_manager: 內容管理 + b_coins_wallet: B幣錢包 + orders: 訂單資訊 + my_stream_info: 實況首頁 + my_courses: 我的課程 + log_out: 退出登入 + noti_dropdown: + replys: 回覆留言 + mentions: 提及我的 + likes: 按讚訊息 + messages: 系统通知 + chats: 聊天室 + upload_dropdown: + article: 上載文章 + music: 上載音訊 + sticker: 上載貼圖 + video: 上載影片 + manager: 內容管理 + +home: + loading_more: 載入中... + +settings: + title: 設定 + authorize_app: 授權 BewlyBewly 使用 Access Key + authorize_app_desc: 授權使用後能在首頁推送我可能有興趣觀看的影片 + topbar_visiable: 頂欄可視性 + topbar_visiable_desc: 用於相容 Bilibili Evolved 的客製化頂欄 + btn: + authorize: 授權 + revoke: 解除授權 + chk_box: + show: 顯示 + hidden: 隱藏 \ No newline at end of file diff --git a/_locales/en.yml b/_locales/en.yml new file mode 100644 index 00000000..9f2d1f36 --- /dev/null +++ b/_locales/en.yml @@ -0,0 +1,84 @@ +topbar: + sign_in: Sign in + notifications: Notifications + moments: Moments + faviours: Faviours + history: History + creative_center: Creative Center + upload: Upload + logo_dropdown: + anime: Anime + movies: Movies + chinese_anime: Chinese anime + tv_shows: TV shows + variety_shows: Variety shows + documentary_films: Documentary films + animations: Animations + gaming: Gaming + kichiku: Kichiku + music: Music + dance: Dance + cinephile: Cinephile + showbiz: Showbiz + knowledge: Knowledge + technology: Technology + news: News + foods: Foods + life: Life + cars: Cars + fashion: Fashion + sports: Sports + animals: Animals + vlog: VLOG + funny: Funny + standalone_gaming: Standalone gaming + vtubers: Vtubers & Vups + charitable_events: Charitable events + moocs: MOOCs + articles: Articles + live: Live + activities: Activities + paid_courses: Paid courses + community: Community + music_plus: Music plus + user_dropdown: + money: 'Money: ' + b_coins: 'B-coins: ' + following: FOLLOWING + followers: FOLLOWERS + posts: POSTS + accout_settings: Account settings + uploads_manager: Uploads manager + b_coins_wallet: B-coins Wallet + orders: Orders + my_stream_info: My stream info + my_courses: My courses + log_out: Log out + noti_dropdown: + replys: Replys + mentions: Mentions + likes: Likes + messages: Messages + chats: Chats + upload_dropdown: + article: Article + music: Music + sticker: Sticker + video: Video + manager: Manager + +home: + loading_more: Loading more... + +settings: + title: Settings + authorize_app: Authorize BewlyBewly to use Access Key + authorize_app_desc: After being Authorized, you can get some you might like videos based on what you watch. + 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 diff --git a/_locales/jyut.yml b/_locales/jyut.yml new file mode 100644 index 00000000..e6246748 --- /dev/null +++ b/_locales/jyut.yml @@ -0,0 +1,84 @@ +topbar: + sign_in: 登入 + notifications: 通知 + moments: 動向 + faviours: 賣飛佛 + history: 記錄 + creative_center: 創作中心 + upload: 上載 + logo_dropdown: + anime: 番劇 + movies: 電影 + chinese_anime: 國創 + tv_shows: 電視劇 + variety_shows: 綜藝 + documentary_films: 紀錄片 + animations: 動畫 + gaming: 遊戲 + kichiku: 鬼畜 + music: 音樂 + dance: 舞蹈 + cinephile: 影視 + showbiz: 娛樂 + knowledge: 知識 + technology: 科技 + news: 新聞 + foods: 美食 + life: 生活 + cars: 汽車 + fashion: 時尚 + sports: 運動 + animals: 動物圈 + vlog: VLOG + funny: 搞笑 + standalone_gaming: 單機遊戲 + vtubers: Vtubers & Vups + charitable_events: 慈善 + moocs: 線上學堂 + articles: 專欄 + live: 直播 + activities: 活動 + paid_courses: 課堂 + community: 社羣中心 + music_plus: 新歌熱榜 + user_dropdown: + money: 銀仔: + b_coins: B幣: + following: 追蹤 + followers: 訂閱者 + posts: 貼文動向 + accout_settings: 帳戶資料 + uploads_manager: 內容管理 + b_coins_wallet: B幣荷包 + orders: 訂單資訊 + my_stream_info: 實況首頁 + my_courses: 我嘅課程 + log_out: 登出 + noti_dropdown: + replys: 覆我 + mentions: 提起我 + likes: 撳 like 訊息 + messages: 系统通知 + chats: 傾偈室 + upload_dropdown: + article: 寫文 + music: 擺音樂 + sticker: 出貼圖 + video: Po 片 + manager: 內容管理 + +home: + loading_more: 撈緊... + +settings: + title: 校做 + authorize_app: 授權 BewlyBewly 使用 Access Key + authorize_app_desc: 授權咗之後首頁就會收到啲可能啱我心水嘅片 + topbar_visiable: 頂欄可睇性 + topbar_visiable_desc: 用於兼容 Bilibili Evolved 客製化頂欄 + btn: + authorize: 授權 + revoke: 解除授權 + chk_box: + show: 擺出嚟 + hidden: 收埋 \ No newline at end of file diff --git a/package.json b/package.json index 9eff5b19..0803f3f8 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "@antfu/eslint-config": "^0.9.0", "@ffflorian/jszip-cli": "^3.1.5", "@iconify/json": "^1.1.408", + "@intlify/vite-plugin-vue-i18n": "^3.4.0", "@types/chrome": "^0.0.179", "@types/fs-extra": "^9.0.13", "@types/node": "^16.10.2", @@ -58,6 +59,7 @@ }, "dependencies": { "esbuild-darwin-64": "0.13.3", + "vue-i18n": "9", "vue-router": "4" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 90f1e2e8..322db2ea 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,7 @@ specifiers: '@antfu/eslint-config': ^0.9.0 '@ffflorian/jszip-cli': ^3.1.5 '@iconify/json': ^1.1.408 + '@intlify/vite-plugin-vue-i18n': ^3.4.0 '@types/chrome': ^0.0.179 '@types/fs-extra': ^9.0.13 '@types/node': ^16.10.2 @@ -31,6 +32,7 @@ specifiers: vite-plugin-windicss: ^1.4.8 vue: ^3.2.19 vue-demi: ^0.11.4 + vue-i18n: '9' vue-router: '4' web-ext: ^6.4.0 webext-bridge: ^5.0.0 @@ -38,12 +40,14 @@ specifiers: dependencies: esbuild-darwin-64: 0.13.3 + vue-i18n: 9.1.9_vue@3.2.19 vue-router: 4.0.13_vue@3.2.19 devDependencies: '@antfu/eslint-config': 0.9.0_eslint@7.32.0+typescript@4.4.3 '@ffflorian/jszip-cli': 3.1.5 '@iconify/json': 1.1.408 + '@intlify/vite-plugin-vue-i18n': 3.4.0_vite@2.6.2+vue-i18n@9.1.9 '@types/chrome': 0.0.179 '@types/fs-extra': 9.0.13 '@types/node': 16.10.2 @@ -495,6 +499,104 @@ packages: resolution: {integrity: sha512-GceXOj/a8FqPKT19umdPdV+yyxGyv9karZRWBTAseaO8jNdFzcj6Def77ZgysxkxilP+MWloW1/CAznPbE08xw==} dev: true + /@intlify/bundle-utils/2.2.2_vue-i18n@9.1.9: + resolution: {integrity: sha512-vngkvlIVV8ZJoyC5VqMvqJd2nvsx+qMN7pQjPiPjOrVndeiR7Dlue0k86Q8FsFUzyksW3HJZZi833ldxwbFzTA==} + engines: {node: '>= 12'} + peerDependencies: + petite-vue-i18n: '*' + vue-i18n: '*' + peerDependenciesMeta: + petite-vue-i18n: + optional: true + vue-i18n: + optional: true + dependencies: + '@intlify/message-compiler': 9.1.9 + '@intlify/shared': 9.1.9 + jsonc-eslint-parser: 1.3.1 + source-map: 0.6.1 + vue-i18n: 9.1.9_vue@3.2.19 + yaml-eslint-parser: 0.3.2 + dev: true + + /@intlify/core-base/9.1.9: + resolution: {integrity: sha512-x5T0p/Ja0S8hs5xs+ImKyYckVkL4CzcEXykVYYV6rcbXxJTe2o58IquSqX9bdncVKbRZP7GlBU1EcRaQEEJ+vw==} + engines: {node: '>= 10'} + dependencies: + '@intlify/devtools-if': 9.1.9 + '@intlify/message-compiler': 9.1.9 + '@intlify/message-resolver': 9.1.9 + '@intlify/runtime': 9.1.9 + '@intlify/shared': 9.1.9 + '@intlify/vue-devtools': 9.1.9 + dev: false + + /@intlify/devtools-if/9.1.9: + resolution: {integrity: sha512-oKSMKjttG3Ut/1UGEZjSdghuP3fwA15zpDPcjkf/1FjlOIm6uIBGMNS5jXzsZy593u+P/YcnrZD6cD3IVFz9vQ==} + engines: {node: '>= 10'} + dependencies: + '@intlify/shared': 9.1.9 + dev: false + + /@intlify/message-compiler/9.1.9: + resolution: {integrity: sha512-6YgCMF46Xd0IH2hMRLCssZI3gFG4aywidoWQ3QP4RGYQXQYYfFC54DxhSgfIPpVoPLQ+4AD29eoYmhiHZ+qLFQ==} + engines: {node: '>= 10'} + dependencies: + '@intlify/message-resolver': 9.1.9 + '@intlify/shared': 9.1.9 + source-map: 0.6.1 + + /@intlify/message-resolver/9.1.9: + resolution: {integrity: sha512-Lx/DBpigeK0sz2BBbzv5mu9/dAlt98HxwbG7xLawC3O2xMF9MNWU5FtOziwYG6TDIjNq0O/3ZbOJAxwITIWXEA==} + engines: {node: '>= 10'} + + /@intlify/runtime/9.1.9: + resolution: {integrity: sha512-XgPw8+UlHCiie3fI41HPVa/VDJb3/aSH7bLhY1hJvlvNV713PFtb4p4Jo+rlE0gAoMsMCGcsiT982fImolSltg==} + engines: {node: '>= 10'} + dependencies: + '@intlify/message-compiler': 9.1.9 + '@intlify/message-resolver': 9.1.9 + '@intlify/shared': 9.1.9 + dev: false + + /@intlify/shared/9.1.9: + resolution: {integrity: sha512-xKGM1d0EAxdDFCWedcYXOm6V5Pfw/TMudd6/qCdEb4tv0hk9EKeg7lwQF1azE0dP2phvx0yXxrt7UQK+IZjNdw==} + engines: {node: '>= 10'} + + /@intlify/vite-plugin-vue-i18n/3.4.0_vite@2.6.2+vue-i18n@9.1.9: + resolution: {integrity: sha512-XXcZBgwJ+3FRu11c4ARoY9N00kElPii0/jNZ49qR045Ka7/YGCwb1Ku14BBlMSEHiHDSjLQknLwrJKSQGVZLyA==} + engines: {node: '>= 12'} + peerDependencies: + petite-vue-i18n: ^9.1.0 + vite: ^2.0.0 + vue-i18n: ^9.1.0 + peerDependenciesMeta: + petite-vue-i18n: + optional: true + vue-i18n: + optional: true + dependencies: + '@intlify/bundle-utils': 2.2.2_vue-i18n@9.1.9 + '@intlify/shared': 9.1.9 + '@rollup/pluginutils': 4.1.2 + debug: 4.3.2 + fast-glob: 3.2.7 + source-map: 0.6.1 + vite: 2.6.2_sass@1.49.9 + vue-i18n: 9.1.9_vue@3.2.19 + transitivePeerDependencies: + - supports-color + dev: true + + /@intlify/vue-devtools/9.1.9: + resolution: {integrity: sha512-YPehH9uL4vZcGXky4Ev5qQIITnHKIvsD2GKGXgqf+05osMUI6WSEQHaN9USRa318Rs8RyyPCiDfmA0hRu3k7og==} + engines: {node: '>= 10'} + dependencies: + '@intlify/message-resolver': 9.1.9 + '@intlify/runtime': 9.1.9 + '@intlify/shared': 9.1.9 + dev: false + /@mdn/browser-compat-data/4.0.2: resolution: {integrity: sha512-XGLqWi1uOil0L4TJs9KOTMRl9FdEtRQLvBDaB7++AFnFf9G0QYihiUNRJ4eXZa53KI9VORsEi3Fj8p3N+m/Gdw==} dev: true @@ -4865,7 +4967,6 @@ packages: /source-map/0.6.1: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} - dev: true /sourcemap-codec/1.4.8: resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} @@ -5592,6 +5693,19 @@ packages: - supports-color dev: true + /vue-i18n/9.1.9_vue@3.2.19: + resolution: {integrity: sha512-JeRdNVxS2OGp1E+pye5XB6+M6BBkHwAv9C80Q7+kzoMdUDGRna06tjC0vCB/jDX9aWrl5swxOMFcyAr7or8XTA==} + engines: {node: '>= 10'} + peerDependencies: + vue: ^3.0.0 + dependencies: + '@intlify/core-base': 9.1.9 + '@intlify/shared': 9.1.9 + '@intlify/vue-devtools': 9.1.9 + '@vue/devtools-api': 6.0.12 + vue: 3.2.19 + dev: false + /vue-router/4.0.13_vue@3.2.19: resolution: {integrity: sha512-LmXrC+BkDRLak+d5xTMgUYraT3Nj0H/vCbP+7usGvIl9Viqd1UP6AsP0i69pSbn9O0dXK/xCdp4yPw21HqV9Jw==} peerDependencies: @@ -5810,6 +5924,14 @@ packages: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} dev: true + /yaml-eslint-parser/0.3.2: + resolution: {integrity: sha512-32kYO6kJUuZzqte82t4M/gB6/+11WAuHiEnK7FreMo20xsCKPeFH5tDBU7iWxR7zeJpNnMXfJyXwne48D0hGrg==} + dependencies: + eslint-visitor-keys: 1.3.0 + lodash: 4.17.21 + yaml: 1.10.2 + dev: true + /yaml-eslint-parser/0.4.1: resolution: {integrity: sha512-GoJ/p1EW8O2tbTbuhfxjo1XhfUFU3uX3kwvfEQoOaZjO2Lubx8POjlsSqB+18b3SxkujAdQYT9r9nURaUWNYWQ==} dependencies: diff --git a/src/components/Settings.vue b/src/components/Settings.vue index 3e819508..60751bcc 100644 --- a/src/components/Settings.vue +++ b/src/components/Settings.vue @@ -1,60 +1,3 @@ - - - - - - - - - Settings - - - - Authorize BewlyBewly to use Access Key - - This change will make you able to get some suggested videos - - - Authorize - - - Revoke - - - - - Topbar visiable - - Compatible with bilibili evolved - - - - Show - Hidden - - - - - - - + + + + + + + + + {{ $t('settings.title') }} + + + + {{ $t('settings.authorize_app') }} + + {{ $t('settings.authorize_app_desc') }} + + + {{ $t('settings.btn.authorize') }} + + + {{ $t('settings.btn.revoke') }} + + + + + {{ $t('settings.topbar_visiable') }} + + {{ $t('settings.topbar_visiable_desc') }} + + + + {{ $t('settings.chk_box.show') }} + {{ $t('settings.chk_box.hidden') }} + + + + + + +