-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(): country-coded language breaks plurals with po-gettext (#1131)
- Loading branch information
Showing
4 changed files
with
87 additions
and
2 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
packages/cli/src/api/formats/__snapshots__/po-gettext.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
packages/cli/src/api/formats/fixtures/messages_plural-4-letter.po
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
msgid "" | ||
msgstr "" | ||
"POT-Creation-Date: 2018-08-27 10:00+0000\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"X-Generator: @lingui/cli\n" | ||
"Language: en_CA\n" | ||
|
||
#. js-lingui:pluralize_on=someCount | ||
msgid "message_with_id" | ||
msgid_plural "message_with_id_plural" | ||
msgstr[0] "Singular case" | ||
msgstr[1] "Case number {someCount}" | ||
|
||
#. js-lingui:icu=%7BanotherCount%2C+plural%2C+one+%7BSingular+case%7D+other+%7BCase+number+%7BanotherCount%7D%7D%7D&pluralize_on=anotherCount | ||
msgid "Singular case" | ||
msgid_plural "Case number {anotherCount}" | ||
msgstr[0] "Singular case" | ||
msgstr[1] "Case number {anotherCount}" | ||
|
||
#. Comment made by the developers. | ||
#. js-lingui:pluralize_on=count | ||
msgid "message_with_id_but_without_translation" | ||
msgid_plural "message_with_id_but_without_translation_plural" | ||
msgstr[0] "" | ||
msgstr[1] "" | ||
|
||
#. js-lingui:icu=%7Bcount%2C+plural%2C+one+%7BSingular%7D+other+%7BPlural%7D%7D&pluralize_on=count | ||
msgid "Singular" | ||
msgid_plural "Plural" | ||
msgstr[0] "" | ||
msgstr[1] "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6b60b8a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: