Skip to content

Commit

Permalink
feat: 更新翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
OpportunityLiu committed Nov 2, 2024
1 parent 3b47452 commit 2fbb2a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 1 addition & 3 deletions src/plugin/suggest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ export class Suggest {
this.sha = v.sha;
}

readonly nsScore: {
[k in EHTNamespaceName]: number;
} = {
readonly nsScore: Record<EHTNamespaceName, number> = {
other: 10,
female: 9,
male: 8.5,
Expand Down
6 changes: 3 additions & 3 deletions src/services/ui-translation/data/uconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,10 @@ merge(
' Large': ' 大图',
'Rows:': '行数:',

'Thumbnail Scaling': '缩略图缩放',
'Cover Scaling': '封面缩放',
'%': ' %',
'Thumbnails on the thumbnail and extended gallery list views can be scaled to a custom value between 75% and 150%.':
'在扩展和缩略图列表模式下,图库缩略图可以缩放为 75% 到 150% 之间的自定义值。',
'The cover size in gallery list views can be scaled to between 75% and 150% when using the Thumbnail or Extended display modes.':
'在扩展和缩略图列表模式下,图库封面可以缩放为 75% 到 150% 之间的自定义值。',

Ratings: '评分',
'By default, galleries that you have rated will appear with red stars for ratings of 2 stars and below, green for ratings between 2.5 and 4 stars, and blue for ratings of 4.5 or 5 stars. You can customize this by entering your desired color combination below.':
Expand Down
5 changes: 1 addition & 4 deletions src/services/ui-translation/data/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,7 @@ const regexData: Array<[RegExp, string]> = [
/^The file (.*?) was generated by this system and has been replaced with the original copy.$/,
'文件 $1 由本系统生成,已替换为原始副本。',
],
[
/^The file (.*?) is too low resolution.$/,
'文件 $1 分辨率过低。',
],
[/^The file (.*?) is too low resolution.$/, '文件 $1 分辨率过低。'],
];

merge(/^\/upld\//, undefined, data, regexData);
Expand Down

0 comments on commit 2fbb2a1

Please sign in to comment.