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:
1 parent
74e1623135
commit
b047d352c1
8 files changed
+30
-12
No files matched your search
@@ -6,6 +6,7 @@ describe('species registry', () => {
|
||||
const eq = getSpecies('equine')
|
||||
expect(eq).toBeDefined()
|
||||
expect(eq?.labelFr).toBe('Cheval')
|
||||
expect(eq?.labelEn).toBe('Horse')
|
||||
expect(eq?.mainSvg).toBe('/species/equine/Horse.svg')
|
||||
expect(eq?.details.head).toBe('/species/equine/Horse_head.svg')
|
||||
expect(eq?.vertebralFormula).toEqual({ C: 7, T: 18, L: 6, S: 5, Cd: 18 })
|
||||
|
||||
Reference in new issue
Block a user