You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on Azure GPT-4o-128k + manual correction translation.
Comments are manually added.
PR Instructions
Only need to maintain the index.json files in the dict directory; if you feel the translation is incorrect, feel free to submit a PR.
Modify _translate in index.json as needed.
_translate is the translated content, and _note is your understanding of it as an annotation._note field supports HTML format and will be directly rendered below the original text.
CI Steps
Pull from the original repository Prosemirror/website, compare with last-commit.txt; if there are updates, proceed to the next step; if not, interrupt CI.
cd into website, follow instructions from the original repository: after npm i + make, various index.html files will be built in the publish directory.
After running npm i in root directory, run index.js to query dictionary files (index.json) in dict directories that match paths with those under public for Chinese replacement; if fields aren't found, perform AI translation and update dictionary.
Move website/public directory up one level into public directory and push remotely to trigger Vercel's build update.
Local Build Instructions
Replace secrets.OPENAI_API_KEY and secrets.OPENAI_URL in utils.js with your own.
Check if each index.html under the website/public directory is functioning properly.
Notes To Prevent Future Forgetfulness On My Part
This project's CI can be triggered two ways: manually or via weekly checks once per week
2.CI may modify files within dict directories along with generating new index.htmls overwriting same-path/same-name ones inside public
3.CI commits modifications back into this repo triggering Vercel updates hence merges cannot trigger here
中文说明
Prosemirror 中文文档
基于 Azure GPT-4o-128k + 人工修正翻译。
注释部分为人工添加。
PR 说明
只需要维护 dict 目录的各个 index.json 即可,如果感觉翻译的不对,欢迎提交 PR。
修改 index.json 中的 _translate 即可。
_translate 是翻译内容,_note 是你对内容的理解注释。_note 字段支持 HTML 格式,会直接渲染到原文下方。