diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2023-05-24 06:57:50 +0530 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2023-05-24 16:40:43 +0530 |
commit | e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b (patch) | |
tree | d684777b3fde5470c9f99304a9f022422ffb8045 /scripts/add-crowdin-contributors.ts | |
parent | 6.3.0-nightly.9 [skip ci] (diff) | |
download | ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.gz ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.zst ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.zip |
Upgrade npm modules
Diffstat (limited to 'scripts/add-crowdin-contributors.ts')
-rw-r--r-- | scripts/add-crowdin-contributors.ts | 35 |
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 | ||
1067 | const infoPath = path.join(__dirname, '..', '.all-contributorsrc'); | 1067 | const infoPath = path.join(__dirname, '..', '.all-contributorsrc'); |
1068 | 1068 | const info = fs.readJSONSync(infoPath); | |
1069 | (async () => { | 1069 | for (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, { | 1082 | fs.writeJSONSync(infoPath, info, { |
1087 | spaces: 2, | 1083 | spaces: 2, |
1088 | }); | 1084 | }); |
1089 | })(); | ||