Skip to content

Commit

Permalink
fix(twinkleprotect): 本地化
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoruaFox authored Apr 13, 2024
1 parent 81b28fd commit 79683a8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/Twinkle/modules/twinkleprotect.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,11 +598,7 @@ import {initMwApi} from 'ext.gadget.Util';
selected: true,
},
{
label: window.wgULS('仅允许资深用户', '僅允許資深用戶'),
value: 'revisionprotected',
},
{
label: window.wgULS('仅允许裁决委员', '僅允許裁決委員'),
label: window.wgULS('仅允许档案理事员', '僅允許檔案理事員'),
value: 'officialprotected',
},
];
Expand Down Expand Up @@ -1668,10 +1664,7 @@ import {initMwApi} from 'ext.gadget.Util';
let level;
switch (settings.level) {
case 'officialprotected':
level = window.wgULS('仅允许裁决委员', '僅允許裁決委員');
break;
case 'revisionprotected':
level = window.wgULS('仅允许资深用户', '僅允許資深用戶');
level = window.wgULS('仅允许档案理事员', '僅允許檔案理事員');
break;
case 'autoconfirmed':
level = window.wgULS('仅允许自动确认用户', '僅允許自動確認使用者');
Expand Down

0 comments on commit 79683a8

Please sign in to comment.