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 #2 from chris-rudmin/master
merging chris-rudmin's support for custom plural method (options.getSuffixMethod)
- Loading branch information
Showing
4 changed files
with
161 additions
and
111 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
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,38 +1,42 @@ | ||
{ | ||
"sections" : { | ||
"home" : "Home", | ||
"files" : "My Files" | ||
}, | ||
"product" : { | ||
"name" : "jsperanto" | ||
}, | ||
"withHTML" : "<b>this would be bold</b>", | ||
"withreuse" : "$t(product.name) and $t(sections.home)", | ||
"withreplacement" : "since __year__", | ||
"4" : { | ||
"level" : { | ||
"of" : { | ||
"nesting": "4 level of nesting" | ||
} | ||
} | ||
}, | ||
"pluralversionexist" : "singular version of pluralversionexist", | ||
"pluralversionexist_plural" : "plural version of pluralversionexist", | ||
"pluralversiondoesnotexist" : "plural version does not exist", | ||
"count and replacement" : "you have __count__ friend", | ||
"count and replacement_plural" : "you have __count__ friends", | ||
|
||
"infinite" : "infinite $t(recursion)", | ||
"recursion" : "recursion $t(infinite)", | ||
"project" : { | ||
"name" : "jsperanto", | ||
"store" : "JSON", | ||
"size" : { | ||
"source" : "$t(project.name) is __value__ __unit__", | ||
"min" : "$t(project.size.source) when minified", | ||
"gzip" : "$t(project.size.min) and gzipped" | ||
} | ||
}, | ||
"can_speak" : "I can only speak one language", | ||
"can_speak_plural" : "I can speak __count__ languages" | ||
"sections" : { | ||
"home" : "Home", | ||
"files" : "My Files" | ||
}, | ||
"product" : { | ||
"name" : "jsperanto" | ||
}, | ||
"withHTML" : "<b>this would be bold</b>", | ||
"withreuse" : "$t(product.name) and $t(sections.home)", | ||
"withreplacement" : "since __year__", | ||
"4" : { | ||
"level" : { | ||
"of" : { | ||
"nesting": "4 level of nesting" | ||
} | ||
} | ||
}, | ||
"pluralversionexist" : "singular version of pluralversionexist", | ||
"pluralversionexist_plural" : "plural version of pluralversionexist", | ||
"pluralversiondoesnotexist" : "plural version does not exist", | ||
"count and replacement" : "you have __count__ friend", | ||
"count and replacement_plural" : "you have __count__ friends", | ||
|
||
"infinite" : "infinite $t(recursion)", | ||
"recursion" : "recursion $t(infinite)", | ||
"project" : { | ||
"name" : "jsperanto", | ||
"store" : "JSON", | ||
"size" : { | ||
"source" : "$t(project.name) is __value__ __unit__", | ||
"min" : "$t(project.size.source) when minified", | ||
"gzip" : "$t(project.size.min) and gzipped" | ||
} | ||
}, | ||
"can_speak" : "I can only speak one language", | ||
"can_speak_plural" : "I can speak __count__ languages", | ||
|
||
"countCustomSuffix" : "I have exactly one. The count is __count__", | ||
"countCustomSuffix_zero" : "I have exactly zero. The count is __count__", | ||
"countCustomSuffix_plural" : "I have many. The count is __count__" | ||
} |
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