1.24.0 • Published 7 months ago

@polyipseity/obsidian-plugin-library v1.24.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Plugin Library for Obsidian release

Library for Obsidian plugins.

Buy Me a Coffee/embed

Repository · Changelog · Other things · Installation · Contributing · Security

Installation

This is NOT an installable plugin.

Contributing

Contributions are welcome!

Todos

The todos here, ordered alphabetically, are things planned for the plugin. There are no guarantees that they will be completed. However, we are likely to accept contributions for them.

  • (None)

Translating

Translation files are under assets/locales/. Each locale has its own directory named with its corresponding IETF language tag.

To contribute translation for an existing locale, modify the files in the corresponding directory.

For a new locale, create a new directory named with its language tag and copy assets/locales/en/translation.json into it. Then, add an entry to assets/locales/en/language.json in this format:

{
	// ...
	"en": "English",
	"(your-language-tag)": "(Native name of your language)",
	"uwu": "Uwuish",
	// ...
}

Sort the list of languages by the alphabetical order of their language tags. Then modify the files in the new directory. There will be errors in assets/locales.ts, which you can ignore and we will fix them for you. You are welcome to fix them yourself if you know TypeScript.

When translating, keep in mind the following things:

  • Do not translate anything between {{ and }} ({{example}}). They are interpolations and will be replaced by localized strings at runtime.
  • Do not translate anything between $t( and ) ($t(example)). They refer to other localized strings. To find the localized string being referred to, follow the path of the key, which is separated by dots (.). For example, the key youtu.be./dQw4w9WgXcQ refers to:
{
	// ...
	"youtu": {
		// ...
		"be": {
			// ...
			"/dQw4w9WgXcQ": "I am 'youtu.be./dQw4w9WgXcQ'!",
			// ...
		},
		// ...
	},
	// ...
}
  • The keys under generic are vocabularies. They can be referred in translation strings by $t(generic.key). Refer to them as much as possible to standardize translations for vocabularies that appear in different places.
  • It is okay to move interpolations and references to other localized strings around to make the translation natural. It is also okay to not use some references used in the original translation. However, it is NOT okay to not use all interpolations.

Security

We hope that there will never be any security vulnerabilities, but unfortunately it does happen. Please report them!

Supported versions

VersionSupported
latest
outdated

Reporting a vulnerability

Please report a vulerability by opening an new issue. We will get back to you as soon as possible.

1.24.0

7 months ago

1.23.2

7 months ago

1.23.1

7 months ago

1.23.0

7 months ago

1.22.0

7 months ago

1.21.0

8 months ago

1.20.0

8 months ago

1.19.0

8 months ago

1.18.1

8 months ago

1.18.0

8 months ago

1.17.0

9 months ago

1.16.0

9 months ago

1.15.2

9 months ago

1.15.1

9 months ago

1.15.0

9 months ago

1.14.2

9 months ago

1.14.1

9 months ago

1.14.0

9 months ago

1.13.2

9 months ago

1.13.1

9 months ago

1.13.0

9 months ago

1.12.1

9 months ago

1.12.0

9 months ago

1.11.3

9 months ago

1.11.2

9 months ago

1.11.1

9 months ago

1.11.0

9 months ago

1.10.1

9 months ago

1.10.0

9 months ago

1.9.0

10 months ago

1.8.0

10 months ago

1.7.0

10 months ago

1.6.0

10 months ago