[PR #393] [MERGED] feat(plugin_decoder): add support for internationalized readme files #486

Closed
opened 2026-02-16 01:16:07 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/393
Author: @Yeuoly
Created: 7/9/2025
Status: Merged
Merged: 7/21/2025
Merged by: @Yeuoly

Base: mainHead: feat/readme-i18n


📝 Commits (3)

  • c3d6dcd feat(plugin_decoder): add support for internationalized readme files
  • dc33314 feat(plugin): add support for multilingual README generation
  • 4c3eaab feat(plugin): add README command and list functionality

📊 Changes

12 files changed (+455 additions, -38 deletions)

View changed files

📝 cmd/commandline/plugin.go (+19 -0)
📝 cmd/commandline/plugin/init.go (+43 -0)
cmd/commandline/plugin/list_readme.go (+86 -0)
📝 cmd/commandline/plugin/profile.go (+216 -34)
cmd/commandline/plugin/templates/readme/ja_JP.md (+3 -0)
cmd/commandline/plugin/templates/readme/pt_BR.md (+3 -0)
cmd/commandline/plugin/templates/readme/zh_Hans.md (+3 -0)
📝 pkg/plugin_packager/decoder/decoder.go (+4 -0)
📝 pkg/plugin_packager/decoder/fs.go (+4 -0)
📝 pkg/plugin_packager/decoder/helper.go (+45 -0)
📝 pkg/plugin_packager/decoder/helper_test.go (+25 -4)
📝 pkg/plugin_packager/decoder/zip.go (+4 -0)

📄 Description

image
  • Introduced the AvailableI18nReadme method in the PluginDecoder interface to retrieve available readme files in multiple languages.
  • Implemented the method in FSPluginDecoder and ZipPluginDecoder to read localized readme files from the filesystem and zip archives.
  • Enhanced UnixPluginDecoder to handle readme files in a structured manner, including support for reading from a dedicated "readme" directory.
  • Added unit tests to verify the functionality of the AvailableI18nReadme method and ensure correct retrieval of localized readme content.

Description

Please provide a brief description of the changes made in this pull request.
Please also include the issue number if this is related to an issue using the format Fixes #123 or Closes #123.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • Other

Essential Checklist

Testing

  • I have tested the changes locally and confirmed they work as expected
  • I have added unit tests where necessary and they pass successfully

Bug Fix (if applicable)

  • I have used GitHub syntax to close the related issue (e.g., Fixes #123 or Closes #123)

Additional Information

Please provide any additional context that would help reviewers understand the changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/393 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 7/9/2025 **Status:** ✅ Merged **Merged:** 7/21/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `feat/readme-i18n` --- ### 📝 Commits (3) - [`c3d6dcd`](https://github.com/langgenius/dify-plugin-daemon/commit/c3d6dcd92e6d2cd0f8eef35668e5e0f4b663ac05) feat(plugin_decoder): add support for internationalized readme files - [`dc33314`](https://github.com/langgenius/dify-plugin-daemon/commit/dc333143117cf97b74b69efa6330acc556f9a6ef) feat(plugin): add support for multilingual README generation - [`4c3eaab`](https://github.com/langgenius/dify-plugin-daemon/commit/4c3eaab643176d474b89e5398a6c64bd88a3e0e4) feat(plugin): add README command and list functionality ### 📊 Changes **12 files changed** (+455 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `cmd/commandline/plugin.go` (+19 -0) 📝 `cmd/commandline/plugin/init.go` (+43 -0) ➕ `cmd/commandline/plugin/list_readme.go` (+86 -0) 📝 `cmd/commandline/plugin/profile.go` (+216 -34) ➕ `cmd/commandline/plugin/templates/readme/ja_JP.md` (+3 -0) ➕ `cmd/commandline/plugin/templates/readme/pt_BR.md` (+3 -0) ➕ `cmd/commandline/plugin/templates/readme/zh_Hans.md` (+3 -0) 📝 `pkg/plugin_packager/decoder/decoder.go` (+4 -0) 📝 `pkg/plugin_packager/decoder/fs.go` (+4 -0) 📝 `pkg/plugin_packager/decoder/helper.go` (+45 -0) 📝 `pkg/plugin_packager/decoder/helper_test.go` (+25 -4) 📝 `pkg/plugin_packager/decoder/zip.go` (+4 -0) </details> ### 📄 Description <img width="774" alt="image" src="https://github.com/user-attachments/assets/8730da23-8979-4881-8d59-80a1a83fd6ed" /> - Introduced the AvailableI18nReadme method in the PluginDecoder interface to retrieve available readme files in multiple languages. - Implemented the method in FSPluginDecoder and ZipPluginDecoder to read localized readme files from the filesystem and zip archives. - Enhanced UnixPluginDecoder to handle readme files in a structured manner, including support for reading from a dedicated "readme" directory. - Added unit tests to verify the functionality of the AvailableI18nReadme method and ensure correct retrieval of localized readme content. ## Description Please provide a brief description of the changes made in this pull request. Please also include the issue number if this is related to an issue using the format `Fixes #123` or `Closes #123`. ## Type of Change - [ ] Bug fix - [ ] New feature - [ ] Refactor - [ ] Performance improvement - [ ] Other ## Essential Checklist ### Testing - [ ] I have tested the changes locally and confirmed they work as expected - [ ] I have added unit tests where necessary and they pass successfully ### Bug Fix (if applicable) - [ ] I have used GitHub syntax to close the related issue (e.g., `Fixes #123` or `Closes #123`) ## Additional Information Please provide any additional context that would help reviewers understand the changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:16:07 -05:00
yindo closed this issue 2026-02-16 01:16:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#486