Obsidian plugin for i18n of other Obsidian plugins
Top 88.6% on sourcepulse
This project provides a one-stop solution for internationalizing Obsidian plugins, specifically targeting Chinese users seeking translated interfaces for third-party plugins. It automates the process of extracting translatable strings, applying translations via local files, cloud repositories, or machine translation, and injecting them into plugins, thereby enhancing the user experience for non-English speakers.
How It Works
The core mechanism involves modifying the source code of target Obsidian plugins to inject translated strings. It uses regular expressions to identify translatable content, extracts this into a dictionary format, and then offers three translation methods: cloud files (community-maintained dictionaries), local files (manual editing), and machine translation (via Baidu Translate or OpenAI-compatible APIs). The plugin dynamically injects and unloads these dictionaries, with built-in backup and restore functionality for modified plugin files.
Quick Start & Requirements
Ctrl + P
-> BRAT: Plugins: Add a beta plugin for testing
-> https://github.com/0011000000110010/obsidian-i18n
main.js
, manifest.json
, style.css
from GitHub Releases and place in Obsidian's plugins directory (.obsidian/plugins/i18n
).Highlighted Details
Maintenance & Community
The project is maintained by a single author, with a request for plugin developers not to submit issues directly to the Gitee mirror. Discussion is encouraged on the GitHub repository.
Licensing & Compatibility
Limitations & Caveats
The plugin modifies plugin source files, carrying inherent risks despite backup mechanisms. Machine translation may introduce errors, requiring manual correction of non-translatable code elements (e.g., function names, variable names). The project is not yet available on the official Obsidian plugin marketplace.
1 day ago
Inactive