Last active
August 29, 2015 13:56
-
-
Save eemeli/8883345 to your computer and use it in GitHub Desktop.
Sample MessageFormat JSON for testing messageformat.js output
This file contains hidden or 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
{ | |
"weekday_n":"{N, plural, =0{Sunday} =1{Monday} =2{Tuesday} =3{Wednesday} =4{Thursday} =5{Friday} =6{Saturday} other{???}}", | |
"month_n":"{N, plural, =0{January} =1{February} =2{March} =3{April} =4{May} =5{June} =6{July} =7{August} =8{September} =9{October} =10{November} =11{December} other{???}}", | |
"time_diff":"{T} {T_UNIT, plural, =0{seconds} =1{minutes} =2{hours} =3{days} =4{weeks} =5{months} =6{years} other{???}} {T_PAST, select, true{ago} other{from now}}", | |
"no_id":"No ID set! Please assign konopas_set.id a unique identifier.", | |
"old_browser":"Unfortunately, your browser doesn't support some of the Javascript features required by KonOpas. To use, please try a different browser.", | |
"private_mode":"It looks like you're using an iOS or Safari browser in private mode, which disables localStorage. This will result in a suboptimal KonOpas experience.", | |
"next_ended":"There are no more program items scheduled.", | |
"next_start":"The next program item starts in {H, plural, =0{} one{one hour and} other{# hours and}} {M, plural, one{one minute} other{# minutes}} after the set time.", | |
"star_export":"<p>Your current selection is encoded in <a href=\"{THIS}\" target=\"_blank\">this page's URL</a>, which you may open elsewhere to share your selection.<p>For easier sharing, you can also generate a <a href=\"{SHORT}\">shorter link</a> or a <a href=\"{QR}\">QR code</a>.", | |
"star_import":"<p>Your previously selected items are shown with a highlighted interior, while those imported via <a href=\"{THIS}\">this link</a> have a highlighted border.<p>Your previous selection {PREV, plural, =0{was empty} one{had one item} other{had # items}}, and the imported selection has {NEW, plural, =0{no new items} one{one new item} other{# new items}}{SAME, plural, =0{} one{and one which was already selected} other{and # which were already selected}}. {BAD, plural, =0{} one{One of the imported items had an invalid ID.} other{# of the imported items had invalid IDs.}}", | |
"star_set":"Set my selection to the imported selection</a>", | |
"star_add":"Add the {N, plural, one{new item} other{# new items}} to my selection</a>", | |
"star_export_link":"<a href=\"{URL}\">Export selection</a> ({N, plural, one{one item} other{# items}})", | |
"star_hint":"<p>To \"star\" a program item, click on the gray square next to it. Your selections will be remembered, and shown in this view. You currently don't have any program items selected, so this list is empty.", | |
"filter_sum_id":"Listing {N, plural, one{one item: <a href=\"{URL}\">{TITLE}</a>} other{# items with id <a href=\"{URL}\">{ID}</a>}}", | |
"filter_sum":"Listing {ALL, select, true{<b>all</b>} other{}} {N, plural, one{one {TAG} item} other{# {TAG} items}} {GOT_DAY, select, true{on <b>{DAY}</b>} other{}} {GOT_AREA, select, true{in <b>{AREA}</b>} other{}} {GOT_Q, select, true{matching the query <b>{Q}</b>} other{}}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is from KonOpas, which I'm currently internationalizing.