@classmethod
def create_new_file(cls, filename, language, base):
    """Handle creation of new translation file."""
    if base:
        store = cls.parse_store(base)
        cls.untranslate_store(store, language)
        store.savefile(filename)
    elif cls.new_translation is None:
        raise ValueError('Not supported')
    else:
        with open(filename, 'wb') as output:
            output.write(cls.get_new_file_content())
