def add_locale(self, language_code, country_code=None, variant=None):
self.locales[language_code] = (country_code, variant)<EOL>
Add a locale.

        :param str language_code: The language code of the locale.
        :param str country_code: The country code of the locale.
        :param str variant: The variant of the locale.