Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions extras/authors/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# Generate authors list

This small script reads the commit information and generates a list of authors
and links them to their Github profile, if available. This can be run before
and links them to their GitHub profile, if available. This can be run before
each release to keep the data up to date.

## Usage

Generate a token to avoid the rate limiting on the Github API:
Note that you might run into rate-limiting issues if you run this script too
often. If so, you can generate a token and use it in the script:
<https://github.com/settings/personal-access-tokens> (no need to select any
permissions, we're just performing reading operations on public data)

Run the script and optionally copy the generated files to their correct locations

```bash
uv run generate_authors_api.py
```
6 changes: 6 additions & 0 deletions extras/authors/generate_authors_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
# Third Party
import requests

# /// script
# dependencies = [
# "requests",
# ]
# ///

ORGANIZATION = 'wger-project'
REPOSITORIES = ['wger', 'flutter', 'react', 'docker', 'docs']
COMMITS_PER_PAGE = 100
Expand Down
54 changes: 54 additions & 0 deletions wger/core/fixtures/languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,5 +214,59 @@
"full_name": "漢語",
"full_name_en": "Chinese"
}
},
{
"model": "core.language",
"pk": 25,
"fields": {
"short_name": "sk",
"full_name": "Slovenský jazyk",
"full_name_en": "Slovak"
}
},
{
"model": "core.language",
"pk": 26,
"fields": {
"short_name": "sl",
"full_name": "Slovenski jezik",
"full_name_en": "Slovenian"
}
},
{
"model": "core.language",
"pk": 27,
"fields": {
"short_name": "ko",
"full_name": "한국어",
"full_name_en": "Korean"
}
},
{
"model": "core.language",
"pk": 28,
"fields": {
"short_name": "th",
"full_name": "ภาษาไทย",
"full_name_en": "Thai"
}
},
{
"model": "core.language",
"pk": 29,
"fields": {
"short_name": "sr",
"full_name": "српски језик",
"full_name_en": "Serbian"
}
},
{
"model": "core.language",
"pk": 30,
"fields": {
"short_name": "ta",
"full_name": "தமிழ்",
"full_name_en": "Tamil"
}
}
]
1 change: 1 addition & 0 deletions wger/core/static/images/icons/flags/ko.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions wger/core/static/images/icons/flags/sk.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions wger/core/static/images/icons/flags/sl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading