aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/add-crowdin-contributors.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/add-crowdin-contributors.ts')
-rw-r--r--scripts/add-crowdin-contributors.ts35
1 files changed, 15 insertions, 20 deletions
diff --git a/scripts/add-crowdin-contributors.ts b/scripts/add-crowdin-contributors.ts
index eadedbcc4..242d338ce 100644
--- a/scripts/add-crowdin-contributors.ts
+++ b/scripts/add-crowdin-contributors.ts
@@ -1065,25 +1065,20 @@ const list: any[] = [
1065]; 1065];
1066 1066
1067const infoPath = path.join(__dirname, '..', '.all-contributorsrc'); 1067const infoPath = path.join(__dirname, '..', '.all-contributorsrc');
1068 1068const info = fs.readJSONSync(infoPath);
1069(async () => { 1069for (const user of list) {
1070 const info = await fs.readJSON(infoPath); 1070 if (user.login) {
1071 1071 info.contributors = allContributors.addContributorWithDetails({
1072 for (const user of list) { 1072 ...user,
1073 // eslint-disable-next-line no-await-in-loop 1073 contributions: ['translation'],
1074 if (user.login) { 1074 profile: `https://crowdin.com/profile/${user.login}`,
1075 info.contributors = await allContributors.addContributorWithDetails({ 1075 options: {
1076 ...user, 1076 contributors: info.contributors,
1077 contributions: ['translation'], 1077 },
1078 profile: `https://crowdin.com/profile/${user.login}`, 1078 });
1079 options: {
1080 contributors: info.contributors,
1081 },
1082 });
1083 }
1084 } 1079 }
1080}
1085 1081
1086 fs.writeJSON(infoPath, info, { 1082fs.writeJSONSync(infoPath, info, {
1087 spaces: 2, 1083 spaces: 2,
1088 }); 1084});
1089})();