pages/_includes/repository
Jiaye Wu 7719863ea0
fix language-not-found issues on repo page with simplified and traditional Chinese (#3015)
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.
2025-02-14 13:16:39 -03:00
..
repo_trophies.liquid Renamed repo-img- to only- to allow setting images for only one theme (#2886) 2024-12-12 12:45:04 -03:00
repo_user.liquid fix language-not-found issues on repo page with simplified and traditional Chinese (#3015) 2025-02-14 13:16:39 -03:00
repo.liquid fix language-not-found issues on repo page with simplified and traditional Chinese (#3015) 2025-02-14 13:16:39 -03:00