Compare commits

..

No commits in common. "7dfe1ce216cd30e937280176a0c735c204fb33a9" and "64b9427f1111e4c8961545a416be49572f71b3c6" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View File

@ -11,11 +11,11 @@ import { NumberHolder, randSeedInt, toDmgValue } from "#utils/common";
import i18next from "i18next";
export function getBerryName(berryType: BerryType): string {
return i18next.t(`berry:${BerryType[berryType].toLowerCase()}.name`);
return i18next.t(`berry:${BerryType[berryType]}.name`);
}
export function getBerryEffectDescription(berryType: BerryType): string {
return i18next.t(`berry:${BerryType[berryType].toLowerCase()}.effect`);
return i18next.t(`berry:${BerryType[berryType]}.effect`);
}
export type BerryPredicate = (pokemon: Pokemon) => boolean;

View File

@ -1,7 +1,7 @@
import { globalScene } from "#app/global-scene";
import { TextStyle } from "#enums/text-style";
import { addTextObject } from "#ui/text";
import { toCamelCase, toTitleCase } from "#utils/strings";
import { toTitleCase } from "#utils/strings";
import i18next from "i18next";
const hiddenX = -150;
@ -100,7 +100,7 @@ export class BgmBar extends Phaser.GameObjects.Container {
}
getRealBgmName(bgmName: string): string {
return i18next.t([`bgmName:${toCamelCase(bgmName)}`, "bgmName:missingEntries"], {
return i18next.t([`bgmName:${bgmName}`, "bgmName:missing_entries"], {
name: toTitleCase(bgmName),
});
}