Add a small curated catalog of Iberian horticultural species and let a variety be linked to it from the edit sheet. - assets/catalog/species.json: 14 species with botanical family and ES/EN common names (wikidata_qid/gbif_key deferred to the varilla enrichment). - SpeciesRepository: idempotent seedBundled (is_bundled rows, keyed by scientific name) + search by scientific/common name with a locale-best label. Seeded on startup from DI. - VarietyRepository.linkSpecies: sets species_id and prefills category from the species' family when empty (never overwrites an existing category). VarietyDetail now carries the scientific name. - Edit sheet gains a live species-search field; the detail view shows the scientific name (italic). i18n strings added (ES/EN). Tests: catalog parse, idempotent seeding, search by scientific/common name, linkSpecies prefill semantics, and a widget test for the autocomplete → link → scientific-name-shown flow. Full suite: 32 passing, 0 skipped.
71 lines
1.6 KiB
JSON
71 lines
1.6 KiB
JSON
{
|
|
"app": {
|
|
"title": "Tanemaki"
|
|
},
|
|
"common": {
|
|
"save": "Save",
|
|
"cancel": "Cancel",
|
|
"delete": "Delete",
|
|
"edit": "Edit"
|
|
},
|
|
"inventory": {
|
|
"title": "Inventory",
|
|
"searchHint": "Search seeds",
|
|
"empty": "No seeds yet. Tap + to add your first.",
|
|
"uncategorized": "Uncategorized"
|
|
},
|
|
"quickAdd": {
|
|
"title": "Add a seed",
|
|
"labelField": "Name",
|
|
"labelRequired": "Give it a name",
|
|
"addPhoto": "Add photo",
|
|
"quantity": "How much?",
|
|
"more": "Add more…",
|
|
"save": "Save",
|
|
"cancel": "Cancel"
|
|
},
|
|
"detail": {
|
|
"notFound": "This seed is no longer here.",
|
|
"lots": "Lots",
|
|
"noLots": "No lots yet.",
|
|
"names": "Also known as",
|
|
"notes": "Notes",
|
|
"addLot": "Add lot",
|
|
"deleteConfirm": "Delete this seed?",
|
|
"year": "Year {year}",
|
|
"noYear": "Year unknown"
|
|
},
|
|
"editVariety": {
|
|
"title": "Edit seed",
|
|
"name": "Name",
|
|
"category": "Category",
|
|
"notes": "Notes",
|
|
"species": "Species (from catalog)",
|
|
"speciesHint": "Search a species…"
|
|
},
|
|
"addLot": {
|
|
"title": "Add lot",
|
|
"year": "Harvest year",
|
|
"quantity": "Quantity"
|
|
},
|
|
"quantityKind": {
|
|
"aFew": "a few",
|
|
"some": "some",
|
|
"plenty": "plenty",
|
|
"handful": "a handful",
|
|
"pinch": "a pinch",
|
|
"jar": "a jar",
|
|
"packet": "a packet",
|
|
"cob": "a cob",
|
|
"head": "a head",
|
|
"pod": "a pod",
|
|
"ear": "an ear",
|
|
"fruit": "a fruit",
|
|
"bulb": "a bulb",
|
|
"tuber": "a tuber",
|
|
"seedHead": "a seed head",
|
|
"bunch": "a bunch",
|
|
"grams": "grams",
|
|
"count": "count"
|
|
}
|
|
}
|