Skip to content

Commit 230c91c

Browse files
committed
add Japanese translations for sorting and filtering options
1 parent be69b9c commit 230c91c

1 file changed

Lines changed: 94 additions & 2 deletions

File tree

script.user.js

Lines changed: 94 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name JPDB Userscript (6a67)
33
// @namespace http://tampermonkey.net/
4-
// @version 0.1.195
4+
// @version 0.1.196
55
// @description Script for JPDB that adds some styling and functionality
66
// @match *://jpdb.io/*
77
// @grant GM_addStyle
@@ -227,7 +227,99 @@
227227
text: '意味',
228228
blacklist: 'input' // example for a blacklist
229229
},
230-
'config.reviewButtonFontWeight': '500'
230+
'config.reviewButtonFontWeight': '500',
231+
232+
// Sort options
233+
'Sort by': {
234+
text: '並び替え',
235+
whitelist: 'fieldset > legend'
236+
},
237+
'Name': {
238+
text: '名前',
239+
whitelist: '.sorting-header a'
240+
},
241+
'Characters': {
242+
text: '文字数',
243+
whitelist: '.sorting-header a'
244+
},
245+
'Difficulty': {
246+
text: '難易度',
247+
whitelist: '.sorting-header a'
248+
},
249+
'Word count': {
250+
text: '単語数',
251+
whitelist: '.sorting-header a'
252+
},
253+
'Word count (known %)': {
254+
text: '単語数(習得済み%)',
255+
whitelist: '.sorting-header a'
256+
},
257+
'Unique vocabulary': {
258+
text: '語彙の種類',
259+
whitelist: '.sorting-header a'
260+
},
261+
'Unique vocabulary (known %)': {
262+
text: '語彙の種類(習得済み%)',
263+
whitelist: '.sorting-header a'
264+
},
265+
'Unique kanji': {
266+
text: '漢字の種類',
267+
whitelist: '.sorting-header a'
268+
},
269+
'User rating': {
270+
text: 'ユーザー評価',
271+
whitelist: '.sorting-header a'
272+
},
273+
274+
// Filter options
275+
'Show only': {
276+
text: '絞り込み',
277+
whitelist: 'fieldset > legend'
278+
},
279+
'Anime': {
280+
text: 'アニメ',
281+
whitelist: '.sorting-header a'
282+
},
283+
'Live action': {
284+
text: 'ドラマ',
285+
whitelist: '.sorting-header a'
286+
},
287+
'Visual novels': {
288+
text: 'ビジュアルノベル',
289+
whitelist: '.sorting-header a'
290+
},
291+
'Video games': {
292+
text: 'ビデオゲーム',
293+
whitelist: '.sorting-header a'
294+
},
295+
'Novels': {
296+
text: '小説',
297+
whitelist: '.sorting-header a'
298+
},
299+
'Web novels': {
300+
text: 'ウェブ小説',
301+
whitelist: '.sorting-header a'
302+
},
303+
'Books (non-fiction)': {
304+
text: '本(ノンフィクション)',
305+
whitelist: '.sorting-header a'
306+
},
307+
'Textbooks': {
308+
text: '教科書',
309+
whitelist: '.sorting-header a'
310+
},
311+
'YouTube videos': {
312+
text: 'YouTube動画',
313+
whitelist: '.sorting-header a'
314+
},
315+
'Audio works': {
316+
text: '音声作品',
317+
whitelist: '.sorting-header a'
318+
},
319+
'Aozora Bunko': {
320+
text: '青空文庫',
321+
whitelist: '.sorting-header a'
322+
}
231323
}
232324
};
233325

0 commit comments

Comments
 (0)