Skip to content

Fix generation of plurals #12

@DasProffi

Description

@DasProffi

Describe the bug

When using a plural in the .arb the resulting translation file produces incorect result.

Describe how to produce the bug

"nOrganization": "{count, plural, =1{# Organization} other{# Organizations}}"
produces

'nOrganization': ({ count }): string => {
      return TranslationGen.resolveSelect(count, {
        '=1': `${=1} Organization`,
        'other': `${other} Organizations`,
      })
    },

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions