61 lines
1.4 KiB
Python
61 lines
1.4 KiB
Python
themename = {
|
|
"简体中文": {
|
|
"颗粒": "alt",
|
|
"白云": "yeti",
|
|
"冷静": "superhero",
|
|
"黑夜": "darkly",
|
|
"光泽": "xpnative",
|
|
"圆润": "vista",
|
|
"魔法": "cyborg",
|
|
"默认": "default",
|
|
"圣洁": "litera",
|
|
"宇宙": "solar",
|
|
"微醺": "journal",
|
|
"海洋": "lumen",
|
|
"直率": "flatly",
|
|
"热烈": "united",
|
|
"黯淡": "clam",
|
|
"玄幻": "pulse",
|
|
"天空": "morph",
|
|
"方块": "winnative",
|
|
"缤纷": "cosmo",
|
|
"自然": "minty",
|
|
"砂岩": "sandstone",
|
|
"经典": "classic"
|
|
},
|
|
"English(US)": {
|
|
"Alt": "alt",
|
|
"Cloud": "yeti",
|
|
"Calm": "superhero",
|
|
"Dark": "darkly",
|
|
"Xpnative": "xpnative",
|
|
"Round": "vista",
|
|
"Magic": "cyborg",
|
|
"Default": "default",
|
|
"Light": "litera",
|
|
"Universe": "solar",
|
|
"Wine": "journal",
|
|
"Ocean": "lumen",
|
|
"Direct": "flatly",
|
|
"Hot": "united",
|
|
"Dim": "clam",
|
|
"Fantasy": "pulse",
|
|
"Sky": "morph",
|
|
"Blocks": "winnative",
|
|
"Colorful": "cosmo",
|
|
"Nature": "minty",
|
|
"Sandstone": "sandstone",
|
|
"Classic": "classic"
|
|
}
|
|
}
|
|
|
|
|
|
def get(lang):
|
|
return themename[lang]
|
|
|
|
|
|
def catch(lang, key):
|
|
for find in themename[lang].keys():
|
|
if key == themename[lang][find]:
|
|
return find
|