mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
7 lines
211 B
Python
7 lines
211 B
Python
from gettext import translation
|
|
|
|
class Lanuages:
|
|
t = translation(domain="message",localedir="/kvmd/i18n",languages=["zh"]).gettext
|
|
|
|
def gettext(self,string: str) -> str:
|
|
return self.t(string) |