Classes | Functions | Variables
mycroft.dialog Namespace Reference

Classes

class  DialogLoader
 
class  MustacheDialogRenderer
 

Functions

def get (phrase, lang=None, context=None)
 

Variables

string __doc__
 

Function Documentation

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.

Variable Documentation

string mycroft.dialog.__doc__
private
Initial value:
1 = """
2 
3 """

Definition at line 26 of file scripts/mycroft/dialog/__init__.py.



mycroft_ros
Author(s):
autogenerated on Mon Apr 26 2021 02:35:40