libres icon indicating copy to clipboard operation
libres copied to clipboard

Fall back to English plural rules instead of crashing on unknown locale

Open jacobras opened this issue 1 year ago • 0 comments

Currently the library crashes on JS when using any language that doesn't have a set of PluralRules. See #53.

They should be added when needed, but I suggest not crashing on it. It's better to fall back to the English formatting rule. For many languages this will already be correct and the ones that need something else should get a custom configuration.

I would like to add some logging still when the fallback is triggered, but there's no logging mechanism in Libres currently so that's omitted.

jacobras avatar Jan 09 '24 17:01 jacobras