def create_new_locale(<EOL>self,<EOL>template_id,<EOL>locale,<EOL>version_name,<EOL>subject,<EOL>text='<STR_LIT>',<EOL>html='<STR_LIT>',<EOL>timeout=None<EOL>):
payload = {<EOL>'<STR_LIT>': locale,<EOL>'<STR_LIT:name>': version_name,<EOL>'<STR_LIT>': subject<EOL>}<EOL>if html:<EOL><INDENT>payload['<STR_LIT:html>'] = html<EOL><DEDENT>if text:<EOL><INDENT>payload['<STR_LIT:text>'] = text<EOL><DEDENT>return self._api_request(<EOL>self.TEMPLATES_LOCALES_ENDPOINT % template_id,<EOL>self.HTTP_POST,<EOL>payload=payload,<EOL>timeout=timeout<EOL>)<EOL>
API call to create a new locale and version of a template