Difficult-Rocket/Difficult_Rocket/api/translate.py
2021-09-08 23:38:34 +08:00

34 lines
700 B
Python

# -------------------------------
# Difficult Rocket
# Copyright © 2021 by shenjackyuanjie
# All rights reserved
# -------------------------------
"""
writen by shenjackyuanjie
mail: 3695888@qq.com
github: @shenjackyuanjie
gitee: @shenjackyuanjie
"""
class Lang:
"""
用于创建一个对应语言的翻译类
感谢Fallen的MCDR提供idea
https://github.com/Fallen-Breath/MCDReforged
"""
def __init__(self, language: str):
self.语言 = language
self.翻译结果 = {}
def __str__(self):
return self.语言
def __getitem__(self, item):
return self.翻译结果[item]
def __setitem__(self, key, value):
pass