CI: add the crowdin-contributors.py to 1.8.x branch

This commit is contained in:
Alexey Sokolov
2020-06-07 15:23:56 +01:00
parent 5a671d7e62
commit e6538c5570

25
.ci/crowdin-contributors.py Executable file
View File

@@ -0,0 +1,25 @@
#!/usr/bin/env python3
import json
import sys
array = []
data = json.load(sys.stdin)
for user in data['data']:
user = user['data']
if user['fullName']:
array.append('* {} ({})'.format(user['username'], user['fullName']))
else:
array.append('* ' + user['username'])
array.sort(key=lambda x: x.lower())
sys.stdout = open('TRANSLATORS.md', 'wt')
print('These people helped translating ZNC to various languages:')
print()
for u in array:
print(u)
print()
print('Generated from https://crowdin.com/project/znc-bouncer')