@staticmethod<EOL><INDENT>def normalize_locale(locale):<DEDENT>
import re<EOL>match = re.match(r'<STR_LIT>', locale.lower())<EOL>if match:<EOL><INDENT>return match.group()<EOL><DEDENT>
Normalize locale
Extracts language code from passed in locale string to be used later
for dictionaries loading.

:param locale:          string, locale (en, en_US)
:return:                string, language code