Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: pluralize utility does not respect enableFallback: true options #99

Open
eugenet8k opened this issue Aug 12, 2024 · 0 comments
Open

Comments

@eugenet8k
Copy link

Description

A follow up to #39.

How to reproduce

    i18n = new I18n({
      enableFallback: true,
      en: {
        labels: {
          name: 'Name',
          total: {one: '%{count} name', other: '%{count} names'},
        },
      },
      ru: {
        labels: {
          name: 'Имя',
          total: {one: undefined, other: undefined},
        },
      },
    })

What do you expect

> i18n.t('labels.total', {count: 5, locale: 'ru'})

5 names

What happened instead

> i18n.t('labels.total', {count: 5, locale: 'ru'})

[missing "ru.labels.total.other" translation]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant