-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from jigfox/add-uci
feat: add support for icu message format
- Loading branch information
Showing
7 changed files
with
14,284 additions
and
10,274 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
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,152 @@ | ||
===== | ||
Basic | ||
===== | ||
|
||
Updated {minutes, plural, | ||
=0 {just now} | ||
=1 {one minute ago} | ||
other {some minutes ago}} | ||
|
||
--- | ||
|
||
(fragment | ||
(text) | ||
(icu | ||
(expression | ||
(identifier)) | ||
(icu_clause) | ||
(icu_case | ||
(icu_category) | ||
(text)) | ||
(icu_case | ||
(icu_category) | ||
(text)) | ||
(icu_case | ||
(icu_category) | ||
(text)))) | ||
|
||
|
||
===== | ||
With interpolation | ||
===== | ||
|
||
Updated {minutes, plural, =0 {just now} =1 {one minute ago} other {{{minutes}} minutes ago}} | ||
|
||
--- | ||
|
||
(fragment | ||
(text) | ||
(icu | ||
(expression | ||
(identifier)) | ||
(icu_clause) | ||
(icu_case | ||
(icu_category) | ||
(text)) | ||
(icu_case | ||
(icu_category) | ||
(text)) | ||
(icu_case | ||
(icu_category) | ||
(interpolation | ||
(expression | ||
(identifier))) | ||
(text)))) | ||
|
||
====== | ||
Select | ||
====== | ||
|
||
The author is {gender, select, male {male} female {female} other {other}} | ||
|
||
--- | ||
|
||
(fragment | ||
(text) | ||
(icu | ||
(expression | ||
(identifier)) | ||
(icu_clause) | ||
(icu_case | ||
(icu_category) | ||
(text)) | ||
(icu_case | ||
(icu_category) | ||
(text)) | ||
(icu_case | ||
(icu_category) | ||
(text)))) | ||
|
||
===== | ||
Mixed | ||
===== | ||
|
||
Updated: {minutes, plural, | ||
=0 {just now} | ||
=1 {one minute ago} | ||
other {{{minutes}} minutes ago by {gender, select, male {male} female {female} other {other}}}} | ||
|
||
--- | ||
|
||
(fragment | ||
(text) | ||
(icu | ||
(expression | ||
(identifier)) | ||
(icu_clause) | ||
(icu_case | ||
(icu_category) | ||
(text)) | ||
(icu_case | ||
(icu_category) | ||
(text)) | ||
(icu_case | ||
(icu_category) | ||
(interpolation | ||
(expression | ||
(identifier))) | ||
(text) | ||
(icu | ||
(expression | ||
(identifier)) | ||
(icu_clause) | ||
(icu_case | ||
(icu_category) | ||
(text)) | ||
(icu_case | ||
(icu_category) | ||
(text)) | ||
(icu_case | ||
(icu_category) | ||
(text)))))) | ||
|
||
===== | ||
With pipe | ||
===== | ||
|
||
Updated {minutes | async, plural, | ||
=0 {just now} | ||
=1 {one minute ago} | ||
other {some minutes ago}} | ||
|
||
--- | ||
|
||
(fragment | ||
(text) | ||
(icu | ||
(expression | ||
(identifier) | ||
(pipe_sequence | ||
(pipe_operator) | ||
(pipe_call | ||
(identifier)))) | ||
(icu_clause) | ||
(icu_case | ||
(icu_category) | ||
(text)) | ||
(icu_case | ||
(icu_category) | ||
(text)) | ||
(icu_case | ||
(icu_category) | ||
(text)))) |
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
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
Oops, something went wrong.