Translate
        Translates a message to the given locale language. Will return original
        message if no translation exists for the message.

        :param message:         str, a message to translate
        :param locale:          str, locale or language code
        :return:                str, translated (if possible)

def translate(self, message, locale):
        """
        Translate
        Translates a message to the given locale language. Will return original
        message if no translation exists for the message.

        :param message:         str, a message to translate
        :param locale:          str, locale or language code
        :return:                str, translated (if possible)
        """
        translations = self.get_translations(locale)
        if message in translations:
            return translations[message]

        # return untranslated
        return message