Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(@formatjs/icu-messageformat-parser): set requiresOtherClause to …
…true BREAKING CHANGE: This is so that we're consistent with icu4j, fix #2855
- Loading branch information
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
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
14 changes: 13 additions & 1 deletion
14
packages/icu-messageformat-parser/tests/__snapshots__/manipulator.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,31 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`hoist some random case 1 1`] = `"{p1,plural,one{{foo,select,bar{one two other{other} } baz{one three other{other} }}}}"`; | ||
exports[`hoist some random case 1 1`] = `"{p1,plural,one{{foo,select,bar{one two} baz{one three} other{one other}}} other{other}}"`; | ||
|
||
exports[`should hoist plural & select and tag 1`] = ` | ||
"{count,plural,one{{gender,select,male{{count,plural,one{{gender,select,male{I have a male <b>dog</b> | ||
and a male <strong>cat</strong> | ||
} female{I have a male <b>dog</b> | ||
and a female <strong>cat</strong> | ||
} other{I have a male <b>dog</b> | ||
and a male <strong>cat</strong> | ||
}}} other{I have a male <b>dog</b> | ||
and many cats}}} female{{count,plural,one{{gender,select,male{I have a female <b>dog</b> | ||
and a male <strong>cat</strong> | ||
} female{I have a female <b>dog</b> | ||
and a female <strong>cat</strong> | ||
} other{I have a female <b>dog</b> | ||
and a male <strong>cat</strong> | ||
}}} other{I have a female <b>dog</b> | ||
and many cats}}} other{{count,plural,one{{gender,select,male{I have a male <b>dog</b> | ||
and a male <strong>cat</strong> | ||
} female{I have a male <b>dog</b> | ||
and a female <strong>cat</strong> | ||
} other{I have a male <b>dog</b> | ||
and a male <strong>cat</strong> | ||
}}} other{I have a male <b>dog</b> | ||
and many cats}}}}} other{{count,plural,one{{gender,select,male{I have many dogs and a male <strong>cat</strong> | ||
} female{I have many dogs and a female <strong>cat</strong> | ||
} other{I have many dogs and a male <strong>cat</strong> | ||
}}} other{I have many dogs and many cats}}}}" | ||
`; |
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