Repository navigation
coffeejson-swift 1.1.0
Reads and writes CoffeeJSON 1.1.
Added
Gear.variantsays which member of a registered family a piece of gear is,
for example a size, a material or a generation. The package reads it and
writes it.ImportedRecipe.brewerandImportedRecipe.grindergive the gear as the
document states it, so an app can show its own label for a registered id.GearLabelsholds the gear registry's display labels, keyed by language
tag.GearLabels.forLanguage(_:)narrows a tag such asja-JPtoja,
then falls back toen.Gear.displayLabel(using:)renders one piece of gear as a display string.
Pass your own labels to show a registered id in your locale.
Changed
Codec.currentVersionis"1.1".ImportedRecipe.brewerLabelandImportedRecipe.grindDescriptionresolve a
registered id to the registry's label and showvariantbeside it. For
customand an unknown id, they show the statedlabelas written. Without
alabel, they showbrandandmodel, then the id itself. In 1.0.0 they
showed the statedlabelfirst for every id.