File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -163,14 +163,19 @@ def generate_contributors_md_file(data: dict) -> None:
163163 content += f"\n ## { crowdin_project } \n "
164164 content += '\n {{< grid columns="2 3 4 5" >}}\n \n '
165165 translators = data [crowdin_project ]["translators" ]
166+ all_translators = []
166167 for _ , contributors in translators .items ():
167168 if contributors :
168169 for contributor in contributors :
169- content += "\n \n "
170- content += generate_card (
171- name = contributor ["name" ], img_link = contributor ["img_link" ]
172- )
173- content += "\n \n "
170+ if contributor not in all_translators :
171+ all_translators .append (contributor )
172+
173+ for contributor in all_translators :
174+ content += "\n \n "
175+ content += generate_card (
176+ name = contributor ["name" ], img_link = contributor ["img_link" ]
177+ )
178+ content += "\n \n "
174179
175180 content += "\n {{< /grid >}}"
176181
You can’t perform that action at this time.
0 commit comments