opral / inlang-paraglide-js

Tree-shakable i18n library build on the inlang ecosystem.
https://inlang.com/m/gerre34r/library-inlang-paraglideJs
42 stars 0 forks source link

Staggered Plural Rollout #34

Closed LorisSigrist closed 6 months ago

LorisSigrist commented 6 months ago

Problem

Supporting Plurals would give Paraglide an advantage in i18n library comparisons, as it's another box ticked.

The SDK is already capable of supporting plurals. What's needed is plugin support & for Inlang apps to support it.

We haven't gone ahead yet to avoid \ecosystem skew\, where some apps support it & others don't. For plurals this skew would be acceptable IMO.

Proposal

We only need support for plurals in the inlang-message-format, not all plugins. Once message-persistence is ready that's a mute point anyways.

I'm proposing to roll out plurals in one plugin + Paraglide first, learn lessons from there & then expand support across the ecosystem down the line.

There is an experimental implementation ready to try: https://github.com/opral/monorepo/pull/2376

This was discussed with @loris.sigrist, @nils.jacobsen, @niklas.buchfink and @jannes.blobel in Around https://mail.missiveapp.com/#inbox/conversations/0ee90b38-621c-4b69-b739-c3dbbcfd3746

linear[bot] commented 6 months ago

PARJS-37 Staggered Plural Rollout

NilsJacobsen commented 6 months ago

I've always been a big fan of small PRs and early merges.

samuelstroschein commented 6 months ago
  1. @loris.sigrist please use the default template Problem, Proposal. it was hard to comprehend what this issue is about.

  2. I don't see value in paraglide cooking its on soup. Wait for the SDK where one person is responsible on a longer running project for rolling out variants across the ecosystem. The rollout can start with paraglide.

Can this be closed in favor of variants (pluralization, gender, a/b test)?

LorisSigrist commented 6 months ago

use the default template

Is there a way to get the template in Linear?

Wait for the SDK where one person is responsible on a longer running project for rolling out variants across the ecosystem

The SDK already supports Variants, we just don't use them. There would be zero code-changes required from the SDK

LorisSigrist commented 6 months ago

Can this be closed in favor of variants (pluralization, gender, a/b test)

Yes