feat: setup Co-op Translator for Chinese documentation#310
feat: setup Co-op Translator for Chinese documentation#310shogun444 wants to merge 1 commit intothesysdev:mainfrom
Conversation
rabisg
left a comment
There was a problem hiding this comment.
Given that this PR affects the GH workflow and will require a write permission, we can test it out in your fork and then merge the PR once its ready and working e2e
Also once it is working as expected please add a shields badge to the README.md for the translated version
.github/workflows/translate-docs.yml
Outdated
| push: | ||
| paths: | ||
| - README.md | ||
| - docs/content/docs/** |
There was a problem hiding this comment.
Can you please remove this. While this is something we definitely want to add in the future, it would require more work to be able to fully serve i18n content on fumadocs
https://www.fumadocs.dev/docs/internationalization/next
There was a problem hiding this comment.
Lets start with README for now and we can pick up docs i18n in a separate PR
.github/workflows/translate-docs.yml
Outdated
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Run Co-op Translator |
There was a problem hiding this comment.
We need an additional step after the translation to commit it to the repo or else the translation file won't show up in the repo
There was a problem hiding this comment.
Updated PR - added a commit + push step after the translation so generated files are persisted to the repo.
I tested the workflow in my fork:
- The workflow triggers correctly
- The Co-op Translator step runs
- The commit + push step works as expected (creates a commit or no-op if no changes)
However, the translation step requires an LLM provider configuration (API key). Since I don’t have an API key configured in my fork, the workflow cannot complete the translation step end-to-end.
From what I’ve verified, everything up to that point is working correctly, and the translation should function as expected once the appropriate repository-level secrets are configured.
Let me know if you’d like me to adjust anything or if there’s a preferred way to handle the LLM configuration.
examples/openui-chat/Dockerfile
Outdated
| @@ -0,0 +1,45 @@ | |||
| # -------------------------------------------------- | |||
There was a problem hiding this comment.
can you remove all unrelated changes from this PR
Lets keep the scope to only Co-op translator
8b37894 to
d01c32a
Compare
d01c32a to
38c0793
Compare
|
Changes, look good. I'll test it and see if it works |
|
thanks for taking a look. |
This PR sets up Co-op Translator to automatically generate Chinese (Simplified)
translations for OpenUI documentation.
Changes:
This provides a scalable i18n foundation so additional languages can be added easily.
Closes #296