def email(src_dir, pattern, email_name, locale=None):
    single_email_pattern = pattern.replace('{name}', email_name)
    if locale:
        single_email_pattern = single_email_pattern.replace('{locale}', locale)
    params = _parse_params(pattern)
    for result in _emails(src_dir, single_email_pattern, params):
        result.named['name'] = email_name
        if locale:
            result.named['locale'] = locale
        yield Email(**result.named)
Gets an email by name. Used for clients which should produce a single file for all locales.
dataset/ETHPy150Open KeepSafe/ks-email-parser/email_parser/fs.py/email