From 4f1fcb8de276c196820f94cfbc459dda2d8e35c8 Mon Sep 17 00:00:00 2001 From: Quang Lam Date: Tue, 23 Jun 2020 13:40:56 +0700 Subject: [PATCH] Use Chinese commas for Chinese app description (#202) --- description-generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/description-generator.js b/description-generator.js index 86004910..4669a0ba 100644 --- a/description-generator.js +++ b/description-generator.js @@ -20,7 +20,7 @@ Object.keys(displayLanguages).forEach((langCode) => { .replace(/{appName}/g, 'Translatium') .replace(/{operatingSystem}/g, operatingSystem) .replace(/{appUrl}/g, 'https://translatiumapp.com') - .replace(/{supportedLanguages}/g, supportedLanguages.join(', ')); + .replace(/{supportedLanguages}/g, supportedLanguages.join(langCode === 'zh-CN' ? ',' : ', ')); const distDescFilePath = path.join(__dirname, 'dist', 'description', langCode, `${operatingSystem}.txt`); fs.outputFileSync(distDescFilePath, desc, 'utf8'); });