mirror of
https://github.com/WenPai-org/git-embed-feicode.git
synced 2025-08-05 21:05:12 +08:00
Add i18n and release-aware download for repo card
This update adds internationalization to all user-facing strings in the block editor UI and repository card, and refactors download logic to support release ZIPs and branch ZIPs for GitHub, GitLab, Gitea, Forgejo, and custom platforms. The PHP backend now fetches release info, generates appropriate download URLs and filenames, and improves caching and debug logging. The block UI and card rendering are updated to use translated strings and new download button logic.
This commit is contained in:
parent
2f811072c5
commit
8beaadc3bc
7 changed files with 992 additions and 767 deletions
|
@ -7,7 +7,7 @@ msgstr ""
|
|||
"Project-Id-Version: Git Embed for feiCode 1.0.1\n"
|
||||
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/git-embed-feicode\n"
|
||||
"POT-Creation-Date: 2024-12-31 12:00+0000\n"
|
||||
"PO-Revision-Date: 2025-07-31 17:43+0800\n"
|
||||
"PO-Revision-Date: 2025-08-01 01:09+0800\n"
|
||||
"Last-Translator: feiCode Team\n"
|
||||
"Language-Team: Chinese (China)\n"
|
||||
"Language: zh_CN\n"
|
||||
|
@ -200,6 +200,9 @@ msgstr "查看仓库"
|
|||
msgid "Clone"
|
||||
msgstr "克隆"
|
||||
|
||||
msgid "Download %s (%s)"
|
||||
msgstr "下载 %s (%s)"
|
||||
|
||||
msgid "Download ZIP"
|
||||
msgstr "下载 ZIP"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue