where '%s' is replace by regex and return value of the function six.text_type with an argument e. substitute the compiled_regex for value under the language_code key of the self._regex_dict dictionary.
self . _regex_dict [ language_code ] = compiled_regex