INNER CODE UNIT · JavaScript

successesLocales

GDevelopApp/GDevelop-extensions · scripts/compile-translations.js:216

    const successesLocales = successes.map(({ locale }) => locale).join(',');
    if (successesLocales) {
      shell.echo(`ℹ️ Concatenated translations for ${successesLocales}.`);
    }
    if (failures.length) {
      failures.forEach(({ locale, shellOutput }) => {
        shell.echo(
          `❌ Error(s) occurred while concatenating translations for ${locale}: ` +
            shellOutput.stderr
        );
      });
    }

    return successes.map(({ locale }) => locale);
  })
  .then((locales) => {
    console.info('ℹ️ Sanitizing catalogs...');
    // "Sanitize" all catalogs by removing and warning about bad characters

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…