function writeStringsToCtcFiles(locale, strings) {
  const fullPath = path.join(LH_ROOT, `shared/localization/locales/${locale}.ctc.json`);
  /** @type {Record<string, CtcMessage>} */
  const output = {};
  const sortedEntries = Object.entries(strings).sort(([keyA], [keyB]) => keyA.localeCompare(keyB));
  for (const [key, defn] of sortedEntries) {
    output[key] = defn;
  }

  fs.writeFileSync(fullPath, JSON.stringify(output, null, 2) + '\n');
}
@param {string} locale
@param {Record<string, CtcMessage>} strings