def on_language(self, instance, language): Logger.info('language: {}'.format(language)) _.switch_lang(language)