We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 321c4d5 + e4f477c commit d991b6fCopy full SHA for d991b6f
1 file changed
cmd/pokemon/pokemon.go
@@ -102,8 +102,17 @@ func PokemonCommand() (string, error) {
102
var eggGroupSlice []string
103
104
for _, entry := range pokemonSpeciesStruct.EggGroups {
105
- capitalizedEggGroup := cases.Title(language.English).String(entry.Name)
106
- eggGroupSlice = append(eggGroupSlice, capitalizedEggGroup)
+ modernEggGroupNames := map[string]string{
+ "indeterminate": "Amorphous",
107
+ }
108
+
109
+ if name, exists := modernEggGroupNames[entry.Name]; exists {
110
+ eggGroupSlice = append(eggGroupSlice, name)
111
+ } else {
112
+ capitalizedEggGroup := cases.Title(language.English).String(entry.Name)
113
+ eggGroupSlice = append(eggGroupSlice, capitalizedEggGroup)
114
115
116
}
117
118
sort.Strings(eggGroupSlice)
0 commit comments