Skip to content

Crash on Native when using a language without plural config #53

@jacobras

Description

@jacobras

Libres crashes on JS when using any language that doesn't have a set of PluralRules. For example, Dutch ("nl"), even though it follows the same rules as English.

Plural rule for 'nl' not provided
IllegalStateException: Plural rule for 'nl' not provided

My current workaround:

// See also: jsMain
actual fun extendLibresPlurals() {
    // Make all Libres plurals default to the English implementation
    // Workaround until https://github.com/Skeptick/libres/issues/53 is fixed
    PluralRules["nl"] = PluralRules["en"]
    PluralRules["de"] = PluralRules["en"]
    // ... and so forth ...
}

My suggested fix: #54

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions