<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def merge_files(configuration, locale, fail_if_missing=True):
 """ Merge all the files in `locale`, as specified in config.yaml. """

    for target, sources in configuration.generate_merge.items():
        merge(configuration, locale, target, sources, fail_if_missing)