Classes | |
class | DialogLoader |
class | MustacheDialogRenderer |
Functions | |
def | get (phrase, lang=None, context=None) |
Variables | |
string | __doc__ |
def mycroft.dialog.get | ( | phrase, | |
lang = None , |
|||
context = None |
|||
) |
Looks up a resource file for the given phrase. If no file is found, the requested phrase is returned as the string. This will use the default language for translations. Args: phrase (str): resource phrase to retrieve/translate lang (str): the language to use context (dict): values to be inserted into the string Returns: str: a randomized and/or translated version of the phrase
Definition at line 130 of file scripts/mycroft/dialog/__init__.py.
|
private |
Definition at line 26 of file scripts/mycroft/dialog/__init__.py.