refactor: migrate states generator (#1291)

* refactor: migrate states generator

* Update src/modules/states-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/states-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Marc Emmanuel 2026-01-30 16:44:09 +01:00 committed by GitHub
parent 363c82ee30
commit 88c70b9264
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 829 additions and 643 deletions

View file

@ -223,7 +223,7 @@ class NamesGenerator {
}
// generate state name based on capital or random name and culture-specific suffix
getState(name: string, culture: number, base: number): string {
getState(name: string, culture: number, base?: number): string {
if (name === undefined) {
ERROR && console.error("Please define a base name");
return "ERROR";