{"id":22048487,"url":"https://github.com/thinkwee/hexo-translation-switch","last_synced_at":"2025-09-17T21:55:39.720Z","repository":{"id":265226374,"uuid":"895514869","full_name":"thinkwee/hexo-translation-switch","owner":"thinkwee","description":"A hexo plugin for switching your post in different languages","archived":false,"fork":false,"pushed_at":"2024-12-11T08:29:59.000Z","size":264,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T14:44:49.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinkwee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-28T10:57:48.000Z","updated_at":"2024-12-11T08:30:03.000Z","dependencies_parsed_at":"2024-11-28T12:18:47.959Z","dependency_job_id":"590862cc-3de8-4e07-8ffc-aed960821809","html_url":"https://github.com/thinkwee/hexo-translation-switch","commit_stats":null,"previous_names":["thinkwee/hexo-language-switch","thinkwee/hexo-translation-switch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thinkwee/hexo-translation-switch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkwee%2Fhexo-translation-switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkwee%2Fhexo-translation-switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkwee%2Fhexo-translation-switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkwee%2Fhexo-translation-switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkwee","download_url":"https://codeload.github.com/thinkwee/hexo-translation-switch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkwee%2Fhexo-translation-switch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275672975,"owners_count":25507467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-30T14:12:28.482Z","updated_at":"2025-09-17T21:55:39.699Z","avatar_url":"https://github.com/thinkwee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src='./logo.png' width=\"200\" alt=\"Translation Robot Logo\"\u003e\n  \u003cp\u003eThe \u003cb\u003eT\u003c/b\u003eranslation Plugin for Hexo Next-Theme Blog\u003c/p\u003e\n\u003c/div\u003e\n\n\n# hexo-translation-switch\n\n- A [Hexo](https://hexo.io/zh-cn/) plugin that enables seamless switching between multiple language versions of your posts. It is suitable for the hexo [next](https://github.com/next-theme/hexo-theme-next) theme.\n- Check example [here](https://thinkwee.top/2024/04/23/next-on-llm/#more)\n\n\n# Features\n- only change your post between chinese/english\n- a seperate bottom for switching language\n- with an automatically generated table of contents for each language.\n\n## Installation\n- clone this repo then\n```bash\nnpm install hexo-translation-switch\n```\n\n## Usage\n- organize your post like\n```markdown\n---\ntitle: xxxxx\ndate: 2024-xx-xx xx:xx:xx\ncategories: xxxx\ntags:\n  - xx\n  - xx\n---\nsome text....\n\u003c!--more--\u003e\n{% language_switch %}\n\n{% lang_content en %}\nYOUR_ENGLISH_POST_HERE\n{% endlang_content %}\n\n{% lang_content zh %}\nYOUR_CHINESE_POST_HERE\n{% endlang_content %}\n```\n- where you can use ``language_switch`` to put your language switch buttom and use ``lang_content`` to wrap your post in different languages\n\n## Known Issues (working on it)\n- [ ] only works for hexo next theme.\n- [x] if the titles of chinese/english post are the same, the chinese toc will not work.\n- [x] some animation does not behave as smoothly as original next theme. (Now fixed)\n\n## License\n\nMIT\n\n## Author\n\nthinkwee\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkwee%2Fhexo-translation-switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkwee%2Fhexo-translation-switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkwee%2Fhexo-translation-switch/lists"}