addLocalesInPlist function

void addLocalesInPlist()

Keeps the iOS Info.plist locales in sync with your trconfig.yaml locales. Only runs on MacOs, as some Linux distributions have a different plutil version that throws with the arguments.

Implementation

void addLocalesInPlist() {
  if (!Platform.isMacOS) {
    return;
  }
  _buildAppleLocales(config.iosDirPath, 'iOS');
  _buildAppleLocales(config.macosDirPath, 'MacOS');
}