Added that the title will get made lower case so the rival is correctly set

pull/752/head
Jannik Tappert 2024-05-15 18:05:57 +02:00
parent 9b94d64b78
commit c96dbd43fe
1 changed files with 3 additions and 0 deletions

View File

@ -253,6 +253,9 @@ export class TrainerConfig {
initI18n(); initI18n();
} }
// Make the title lowercase and replace spaces with underscores
title = title.toLowerCase().replace(/\s/g, '_');
this.title = i18next.t(`titles:${title}`); this.title = i18next.t(`titles:${title}`);