The author of github-readme-stats uses the non-standard code "cn" for simplified Chinese, see [here](https://github.com/anuraghazra/github-readme-stats?tab=readme-ov-file#available-locales). While for traditional Chinese the author only provides "zh-tw". The github-readme-stats functions on repo page will break if the user sets the site language to ALL variants of Chinese except for zh-tw. This hack is to make all sub-variants of simplified Chinese fall back to "cn" and all sub-variants of traditional Chinese fall back to "zh-tw". This patch fixes the problem and has been tested locally & with GitHub pages. |
||
|---|---|---|
| .. | ||
| repo_trophies.liquid | ||
| repo_user.liquid | ||
| repo.liquid | ||