feat(pokemon): add types, stats, genus, dimensions, and details

Update schema and API to support expanded Pokemon profile fields
Add UI for editing and displaying types, base stats, and dimensions
Support translations for details and genus fields
This commit is contained in:
2026-05-01 17:58:33 +08:00
parent ec3494ea28
commit 49aae3bd7c
15 changed files with 996 additions and 18 deletions

View File

@@ -87,13 +87,40 @@ const messages = {
subtitle: 'Search Pokemon and filter by specialities, ideal habitat, and favourites.',
detailKicker: 'Pokédex Detail',
editKicker: 'Pokédex Edit',
editSubtitle: 'Maintain Pokemon profile, specialities, and favourites.',
editSubtitle: 'Maintain Pokemon profile, details, types, stats, specialities, and favourites.',
newTitle: 'New Pokemon',
editTitle: 'Edit #{id} {name}',
loadingList: 'Loading Pokemon list',
loadingDetail: 'Loading Pokemon detail',
loadingEdit: 'Loading Pokemon editor',
environmentPrefix: 'Ideal Habitat: {name}',
details: 'Details',
genus: 'Genus',
height: 'Height',
heightInput: 'Height (in)',
heightImperial: 'ft / in',
heightMetric: 'm',
feet: 'ft',
inches: 'in',
meters: 'm',
weight: 'Weight',
weightInput: 'Weight (lb)',
pounds: 'lb',
kilograms: 'kg',
measurements: 'Height & Weight',
types: 'Types',
typeOne: 'Type 1',
typeTwo: 'Type 2',
typesAndStats: 'Types & Base stats',
statsTitle: 'Base stats',
stats: {
hp: 'HP',
attack: 'Attack',
defense: 'Defense',
specialAttack: 'Special Attack',
specialDefense: 'Special Defense',
speed: 'Speed'
},
environment: 'Ideal Habitat',
skills: 'Specialities',
skillMatchMode: 'Speciality match mode',
@@ -109,6 +136,7 @@ const messages = {
relatedItemCategory: 'Related item category',
habitats: 'Habitats',
namePlaceholder: 'Name',
searchTypes: 'Search types',
searchEnvironment: 'Search ideal habitats',
searchSkills: 'Search specialities',
searchFavoriteThings: 'Search favourites',
@@ -220,6 +248,7 @@ const messages = {
}
},
config: {
pokemonTypes: 'Pokemon Types',
skills: 'Specialities',
environments: 'Ideal Habitats',
favoriteThings: 'Favourites / tags',
@@ -341,13 +370,40 @@ const messages = {
subtitle: '搜索宝可梦,并按特长、环境、喜欢的东西筛选。',
detailKicker: 'Pokédex Detail',
editKicker: 'Pokédex Edit',
editSubtitle: '维护 Pokemon 基本资料、特长和喜欢的东西。',
editSubtitle: '维护 Pokemon 介绍、属性、六维、特长和喜欢的东西。',
newTitle: '新增 Pokemon',
editTitle: '编辑 #{id} {name}',
loadingList: '正在加载 Pokemon 列表',
loadingDetail: '正在加载 Pokemon 详情',
loadingEdit: '正在加载 Pokemon 编辑内容',
environmentPrefix: '喜欢的环境:{name}',
details: '介绍',
genus: '分类',
height: '身高',
heightInput: '身高in',
heightImperial: 'ft / in',
heightMetric: 'm',
feet: 'ft',
inches: 'in',
meters: 'm',
weight: '体重',
weightInput: '体重lb',
pounds: 'lb',
kilograms: 'kg',
measurements: '身高与体重',
types: '属性',
typeOne: '属性 1',
typeTwo: '属性 2',
typesAndStats: '属性与六维',
statsTitle: '六维',
stats: {
hp: 'HP',
attack: '攻击',
defense: '防御',
specialAttack: '特攻',
specialDefense: '特防',
speed: '速度'
},
environment: '喜欢的环境',
skills: '特长',
skillMatchMode: '特长匹配方式',
@@ -363,6 +419,7 @@ const messages = {
relatedItemCategory: '关联物品分类',
habitats: '栖息地',
namePlaceholder: '名字',
searchTypes: '搜索属性',
searchEnvironment: '搜索喜欢的环境',
searchSkills: '搜索特长',
searchFavoriteThings: '搜索喜欢的东西',
@@ -474,6 +531,7 @@ const messages = {
}
},
config: {
pokemonTypes: 'Pokemon 属性',
skills: '特长',
environments: '喜欢的环境',
favoriteThings: '喜欢的东西 / 标签',