function processFiles(
  stringFile: string,
  translationFiles: $ReadOnlyArray<string>,
  options: Options,
): LocaleToHashToTranslationResult | TranslatedGroups {
  const {phrases} = parseJSONFile<CollectFbtOutput>(stringFile);
  const fbtSites = phrases.map(createFbtSiteFromJSON);
  const translatedGroups = translationFiles.map(file => {
    const group = parseJSONFile<TranslationGroup>(file);
    return processTranslations(fbtSites, group, options);
  });
  return processGroups(phrases, translatedGroups, options);
}
Phrases and translation data in one JSON object