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

Example in README is non-i18n #35

@yarons

Description

@yarons

Line 237:

this.context.ngettext('day ago', 'days ago', numberOfDays);

This is a bad example of i18n string because in Hebrew (and in several other languages) we don't use the same word order so unless there's a placeholder in there I can't translate it so that Hebrew native speaker will understand.

A better approach would be (assuming I'm not messing up the parameters):

this.context.ngettext('{numberOfDays} day ago', '{numberOfDays} days ago', numberOfDays);

Another solution can be changing the example :)

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