Support ICU pluralization

Hi!

There are many strings that come in two versions; singular and plural (example). This does not work in a lot of languages as many languages make a more granular distinction.

I want to suggest that Obsidian supports internationalization fully by implementing this spec instead of the singular vs. plural.

Thanks

Use case or problem

Proposed solution

Current workaround (optional)

Related feature requests (optional)

I tried editing my original post a few times but it always errors. Here is my edit:

Hi!

There are many strings that come in two versions; singular and plural (example). This does not work in a lot of languages as many languages make a more granular distinction.

I want to suggest that Obsidian supports internationalization fully by implementing this spec instead of the singular vs. plural.

Thanks

Use case or problem

This will allow for all languages to be presented grammatically in Obsidian.

Proposed solution

  • Identify which strings come in the singular vs. plural versions.
  • Write code support for internationalization. Most likely using the Intl.PluralRules API.
  • Make that code backwards-compatible to account for strings in different languages taking time to be updated.
  • Document how to create pluralized strings internally.
  • Reach out to the community to re-translate pluralized strings to their one, two, few, and many forms.

Thanks!

Bumping.