feat(species): locale-aware species labels via labelEn

B-6: SpeciesManifest only carried labelFr — EN users saw 'Cheval'.
labelEn required on the manifest, speciesLabel(s, locale) helper in
registry; AnimalForm dropdown + SvgEditor picker localized (locale
passed into initSvgEditor, re-inits on locale change). Scaffolder
template + ADDING-A-SPECIES.md + registry test updated.
This commit is contained in:
Bastien Chanot committed 2026-07-12 16:23:07 +02:00
1 parent 74e1623135
commit b047d352c1
8 files changed
+30 -12

No files matched your search

+2 -1
View File
@@ -113,9 +113,10 @@ files by absolute path starting with `/species/...`.
import type { SpeciesManifest } from '@/domain/species/types'
import { CANINE_VERTEBRAL_FORMULA } from './vertebrae'
export const canine: SpeciesManifest = {
const canine: SpeciesManifest = {
id: 'canine',
labelFr: 'Chien',
labelEn: 'Dog',
mainSvg: '/species/canine/Dog.svg',
details: {
head: '/species/canine/Dog_head.svg',