Open pull request for translations (#1939)
* fix: open pull request for translations * fix: permission update * fix: permission update * fix: permission update * fix: permission update
This commit is contained in:
1 parent
d8f534217f
commit
32389eaf67
3 files changed
+38
-11
No files matched your search
@@ -57,11 +57,12 @@ async function downloadTranslations() {
|
||||
});
|
||||
}
|
||||
|
||||
// Save file
|
||||
const outputPath = path.join(process.cwd(), 'temp', `${language}.json`);
|
||||
// Determine the output filename based on language
|
||||
const filename = language === 'en' ? 'gb.json' : `${language}.json`;
|
||||
const outputPath = path.join(process.cwd(), 'temp', filename);
|
||||
await fs.writeJson(outputPath, formattedTranslations, { spaces: 2 });
|
||||
|
||||
console.log(`Translations for ${language} language successfully downloaded and saved: ${outputPath}`);
|
||||
console.log(`Translations for ${language} language successfully downloaded and saved as: ${filename}`);
|
||||
}
|
||||
|
||||
console.log('All translations successfully downloaded!');
|
||||
|
||||
Reference in new issue
Block a user