type LocaleModule = { default: Record<string, string> };

export function mergeLocaleModules(
  modules: Record<string, LocaleModule>,
): Record<string, string> {
  return Object.values(modules).reduce(
    (messages, module) => ({ ...messages, ...module.default }),
    {},
  );
}
