From c96dbd43fe3e027b6288ea9591565940fe8029ad Mon Sep 17 00:00:00 2001 From: Jannik Tappert Date: Wed, 15 May 2024 18:05:57 +0200 Subject: [PATCH] Added that the title will get made lower case so the rival is correctly set --- src/data/trainer-config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/data/trainer-config.ts b/src/data/trainer-config.ts index 31157d5c413..ad441dac0ac 100644 --- a/src/data/trainer-config.ts +++ b/src/data/trainer-config.ts @@ -253,6 +253,9 @@ export class TrainerConfig { initI18n(); } + // Make the title lowercase and replace spaces with underscores + title = title.toLowerCase().replace(/\s/g, '_'); + this.title = i18next.t(`titles:${title}`);