TranslationSet
Classe
Traductions d'une clé dans plusieurs langues.
from discord_interactions.slash import TranslationSetConstructeur
TranslationSet( key: str, translations: Dict[str, str] = <factory>, default: str | None = None,)| Nom | Type | Défaut | Description |
|---|---|---|---|
key | str | requis | |
translations | Dict[str, str] | <factory> | |
default | str | None | None |
Propriétés
| Nom | Type | Description |
|---|---|---|
key | str | |
translations | Dict[str, str] | |
default | str | None |
Méthodes
get
def get(locale: str, fallback: str | None = None) -> strto_api_dict
def to_api_dict() -> Dict[str, str]