async def get_user_locale(self, action: str, args: Tuple[Any]) -> str:
        """
        User locale getter
        You can override the method if you want to use different way of getting user language.

        :param action: event name
        :param args: event arguments
        :return: locale name
        """
        user: types.User = types.User.get_current()
        locale: Locale = user.locale

        if locale:
            *_, data = args
            language = data['locale'] = locale.language
            return language
async def get_user_locale ( self , action : str , args : Tuple [ Any ] ) -> str : user : types . User = types . User . get_current ( ) locale : Locale = user . locale if locale : * _ , data = args language = data [ 'locale' ] = locale . language return language
User locale getter
        You can override the method if you want to use different way of getting user language.

        :param action: event name
        :param args: event arguments
        :return: locale name