Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

unexpected pluralization behavior #376

@vonovak

Description

@vonovak

🐛 Bug Report

Hello! I'm here to ask about / report unexpected pluralization behavior. Thank you for looking into this.

To Reproduce

This json file contains translations corresponding to this component. The file was created in crowdin from this source_strings.json file.

Expected behavior

running the translate-fbts script in package.json I'm expecting the output to contain plural forms for cs_CZ like in the input file but they are different:

input has 4 plural froms:

output has 2 plural forms:

    "1hIiOI": {
      "*": "Máte {number of people} sledujících",
      "_1": "Máte 1 člověka, který sleduje"
    },

Link to repo (highly encouraged) or paste

https://github.com/vonovak/i18n-demo

envinfo

  System:
    OS: macOS 12.5.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 1.92 GB / 64.00 GB
    Shell: 5.1.16 - /opt/homebrew/bin/bash
  Binaries:
    Node: 16.16.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 8.11.0 - /opt/homebrew/bin/npm
    Watchman: 2022.07.04.00 - /opt/homebrew/bin/watchman

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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