You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/src/trezor/res/__init__.py

22 lines
341 B

try:
from .resources import resdata
except ImportError:
resdata = {}
def load(name: str) -> bytes:
"""
Loads resource of a given name as bytes.
"""
return resdata[name]
def gettext(message: str) -> str:
"""
Returns localized string. This function is aliased to _.
"""
return message
_ = gettext