Plugin development¶
You can help me develop the plugin using pnpm
!
- First, clone the project on your computer with
git clone git@github.com:enveloppe/obsidian-enveloppe.git
cd obsidian-enveloppe
pnpm install
- Create an
.env
file with the following content:
pnpm run dev
- Enjoy!
Some notes:
- I use Conventional Commit to generate the commit message, so please respect the format!
- Don’t forget to document your functions!
Translation or paraphrasing¶
The plugin uses i18n to manage translation and UX writing.
To add a new language or rephrase current wording:
- Clone locales, the dedicated repository for language
- Create the file of the langage you want to translate (for example
es.json
for Spanish) and use the english file (en.json
) as a base. - Translate the file, while keeping the
{{variable}}
(you can’t translate them) - Create a pull request on the repository with the new file
Test locally
You can test locally your translation if you want, but you need to clone the main repository with submodule, have node
and pnpm
, run pnpm i
and run pnpm run build
, without forget to add the file main.js
in your .obsidian/plugin/obsidian-mkdocs-publisher
. Don’t forget to reload Obsidian after the copy!
Advice
If you use VSCode or jetbrain editor, you can look at i18n Ally to get some useful tool for your translation!
It is also possible to use Weblate to translate the plugin!
Last update :
6 janvier 2025
Created : 6 janvier 2025
Created : 6 janvier 2025