General
You can help me to 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
Using i18n, you can translate the plugin.
To add a new language:
- Clone the dedicated repository
- Take 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
andpnpm
, runpnpm i
and runpnpm run build
, without forget to add the filemain.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!