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 = {}
7 years ago
def load(name: str) -> bytes:
6 years ago
"""
Loads resource of a given name as bytes.
6 years ago
"""
return resdata[name]
7 years ago
def gettext(message: str) -> str:
6 years ago
"""
Returns localized string. This function is aliased to _.
6 years ago
"""
return message
_ = gettext