mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Add some translation
This commit is contained in:
parent
088f44d26d
commit
bd8d051f0f
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1547,6 +1547,7 @@ Resource.manifest = {
|
||||
},
|
||||
i18n: {
|
||||
path: "i18n.min.js",
|
||||
style: "important",
|
||||
displayNames: {
|
||||
i18n: "界面翻译"
|
||||
},
|
||||
|
||||
@ -1547,6 +1547,7 @@ Resource.manifest = {
|
||||
},
|
||||
i18n: {
|
||||
path: "i18n.min.js",
|
||||
style: "important",
|
||||
displayNames: {
|
||||
i18n: "界面翻译"
|
||||
},
|
||||
|
||||
@ -495,6 +495,7 @@ Resource.manifest = {
|
||||
},
|
||||
i18n: {
|
||||
path: "i18n.min.js",
|
||||
style: "important",
|
||||
displayNames: {
|
||||
i18n: "界面翻译"
|
||||
},
|
||||
|
||||
2
min/i18n.en-US.min.js
vendored
2
min/i18n.en-US.min.js
vendored
@ -1 +1 @@
|
||||
(()=>{return(e,o)=>{const i=new Map([[`主站`,`Home`],[`画友`,`Painting`],[`音频`,`Music`],[`游戏中心`,`Game`],[`直播`,`Live`],[`会员购`,`Shop`],[`漫画`,`Comic`],[`下载APP`,`APP`],[`大会员`,`VIP`],[`年度大会员`,`Annual VIP`],[`消息`,`Message`],[`动态`,`Activity`],[`稍后再看`,`Watchlater`],[`收藏`,`Favorite`],[`历史`,`History`],[`投稿`,`Upload`],[`关注`,`Following`],[`关注数`,`Following`],[`粉丝`,`Followers`],[`粉丝数`,`Followers`],[`回复我的`,`Reply`],[`@我的`,`@Mentioned`],[`收到的赞`,`Likes`],[`系统通知`,`System`],[`我的消息`,`Whisper`],[`主页`,`Home`],[`频道`,`Channel`],[`订阅`,`Subscribe`],[`设置`,`Settings`],[`搜索`,`Search`],[`搜索视频`,`Search videos`],[`查看全部`,`View more`],[`查看更多`,`View more`],[`视频`,`Video`],[`专栏`,`Blog`],[`转发`,`Forward`],[`评论`,`Comments`],[`赞`,`Like`],[`视角:`,`View: `],[`我自己`,`Myself`],[`新访客`,`New visitors`],[`我的粉丝`,`My followers`],[`*`,[]]]);return{export:{map:i}}}})();
|
||||
(()=>{return(e,o)=>{const t=new Map([[`主站`,`Home`],[`画友`,`Painting`],[`音频`,`Music`],[`游戏中心`,`Game`],[`直播`,`Live`],[`会员购`,`Shop`],[`漫画`,`Comic`],[`下载APP`,`APP`],[`大会员`,`VIP`],[`年度大会员`,`Annual VIP`],[`消息`,`Message`],[`动态`,`Activity`],[`稍后再看`,`Watchlater`],[`已加稍后再看`,`Added`],[`移除`,`Remove`],[`收藏`,`Favorite`],[`历史`,`History`],[`投稿`,`Upload`],[`关注`,[`Follow`,{selector:`.user-panel .text, .n .n-data .n-data-k`,text:`Following`}]],[`关注数`,`Following`],[`粉丝`,`Followers`],[`粉丝数`,`Followers`],[`已关注`,`Following`],[`回复我的`,`Reply`],[`@我的`,`@Mentioned`],[`收到的赞`,`Likes`],[`系统通知`,`System`],[`我的消息`,`Whisper`],[`主页`,`Home`],[`频道`,`Channel`],[`订阅`,`Subscriptions`],[`设置`,`Settings`],[`搜索`,`Search`],[`搜索视频`,`Search videos`],[`搜索设置项`,`Search settings`],[`查看全部`,`View more`],[`查看更多`,`View more`],[`视频`,`Video`],[`专栏`,`Blog`],[`转发`,`Forward`],[`评论`,`Reviews`],[`赞`,`Like`],[`视角:`,`View: `],[`我自己`,`Myself`],[`新访客`,`New visitors`],[`我的粉丝`,`Followers`],[`暂时没有新动态了哦!`,`Nothing new at this moment...`],[`历史动态`,`History`],[`投稿了`,`posted`],[`更新了`,`updated`],[`番剧`,`Bangumi`],[`样式`,`Style`],[`工具`,`Tools`],[`触摸`,`Touch`],[`其他`,`Other`],[`正在直播`,`Live broadcasting`],[`投稿视频`,`Posted video`],[`展开全文`,`Expand`],[`*`,[]]]);return{export:{map:t}}}})();
|
||||
1
min/i18n.min.css
vendored
Normal file
1
min/i18n.min.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.up-info .up-focus-btn{width:auto!important;padding:0 4px!important}
|
||||
5
utils/i18n/i18n.css
Normal file
5
utils/i18n/i18n.css
Normal file
@ -0,0 +1,5 @@
|
||||
.up-info .up-focus-btn
|
||||
{
|
||||
width: auto !important;
|
||||
padding: 0 4px !important;
|
||||
}
|
||||
@ -12,13 +12,22 @@ export const map = new Map([
|
||||
[`消息`, `Message`],
|
||||
[`动态`, `Activity`],
|
||||
[`稍后再看`, `Watchlater`],
|
||||
[`已加稍后再看`, `Added`],
|
||||
[`移除`, `Remove`],
|
||||
[`收藏`, `Favorite`],
|
||||
[`历史`, `History`],
|
||||
[`投稿`, `Upload`],
|
||||
[`关注`, `Following`],
|
||||
[`关注`, [
|
||||
`Follow`,
|
||||
{
|
||||
selector: `.user-panel .text, .n .n-data .n-data-k`,
|
||||
text: `Following`,
|
||||
},
|
||||
]],
|
||||
[`关注数`, `Following`],
|
||||
[`粉丝`, `Followers`],
|
||||
[`粉丝数`, `Followers`],
|
||||
[`已关注`, `Following`],
|
||||
[`回复我的`, `Reply`],
|
||||
[`@我的`, `@Mentioned`],
|
||||
[`收到的赞`, `Likes`],
|
||||
@ -26,21 +35,35 @@ export const map = new Map([
|
||||
[`我的消息`, `Whisper`],
|
||||
[`主页`, `Home`],
|
||||
[`频道`, `Channel`],
|
||||
[`订阅`, `Subscribe`],
|
||||
[`订阅`, `Subscriptions`],
|
||||
[`设置`, `Settings`],
|
||||
[`搜索`, `Search`],
|
||||
[`搜索视频`, `Search videos`],
|
||||
[`搜索设置项`, `Search settings`],
|
||||
[`查看全部`, `View more`],
|
||||
[`查看更多`, `View more`],
|
||||
[`视频`, `Video`],
|
||||
[`专栏`, `Blog`],
|
||||
[`转发`, `Forward`],
|
||||
[`评论`, `Comments`],
|
||||
[`评论`, `Reviews`],
|
||||
[`赞`, `Like`],
|
||||
[`视角:`, `View: `],
|
||||
[`我自己`, `Myself`],
|
||||
[`新访客`, `New visitors`],
|
||||
[`我的粉丝`, `My followers`],
|
||||
[`我的粉丝`, `Followers`],
|
||||
[`暂时没有新动态了哦!`, `Nothing new at this moment...`],
|
||||
[`历史动态`, `History`],
|
||||
[`投稿了`, `posted`],
|
||||
[`更新了`, `updated`],
|
||||
[`番剧`, `Bangumi`],
|
||||
[`样式`, `Style`],
|
||||
[`工具`, `Tools`],
|
||||
[`触摸`, `Touch`],
|
||||
[`其他`, `Other`],
|
||||
[`正在直播`, `Live broadcasting`],
|
||||
[`投稿视频`, `Posted video`],
|
||||
[`展开全文`, `Expand`],
|
||||
|
||||
[`*`, [
|
||||
|
||||
]],
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
翻译程序能够将特定的文本替换成您的翻译, 作用范围为网页中所有文本节点(`nodeType === Node.TEXT_NODE`), 文本框的提示文字(`placeholder`), 以及鼠标停留时弹出的提示文字(`title`).
|
||||
|
||||
## 文件目录
|
||||
- `i18n.css` 界面元素调整样式
|
||||
- `i18n.js` 主程序
|
||||
- `i18n.ja-JP.js` 日语翻译
|
||||
- `i18n.en-US.js` 英语翻译
|
||||
@ -149,4 +150,7 @@ export default {
|
||||
翻译为
|
||||
```html
|
||||
<a class="xxx yyy">Home3</a>
|
||||
```
|
||||
```
|
||||
|
||||
## 调整界面元素
|
||||
如果添加翻译后, 一些界面元素的尺寸是固定大小, 无法适应翻译后的文本长度, 可以在`i18n.css`中添加CSS样式来调整.
|
||||
Loading…
Reference in New Issue
Block a user