pokerogue/src/interfaces/locales.ts
Sirz Benjie 408b66f913
[Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495)
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-03-09 14:13:25 -07:00

94 lines
2.1 KiB
TypeScript

export interface Localizable {
localize(): void;
}
export interface TranslationEntries {
[key: string]: string | { [key: string]: string };
}
export interface SimpleTranslationEntries {
[key: string]: string;
}
export interface MoveTranslationEntry {
name: string;
effect: string;
}
export interface MoveTranslationEntries {
[key: string]: MoveTranslationEntry;
}
export interface AbilityTranslationEntry {
name: string;
description: string;
}
export interface AbilityTranslationEntries {
[key: string]: AbilityTranslationEntry;
}
export interface ModifierTypeTranslationEntry {
name?: string;
description?: string;
extra?: SimpleTranslationEntries;
}
export interface ModifierTypeTranslationEntries {
ModifierType: { [key: string]: ModifierTypeTranslationEntry };
SpeciesBoosterItem: { [key: string]: ModifierTypeTranslationEntry };
AttackTypeBoosterItem: SimpleTranslationEntries;
TempStatStageBoosterItem: SimpleTranslationEntries;
BaseStatBoosterItem: SimpleTranslationEntries;
EvolutionItem: SimpleTranslationEntries;
FormChangeItem: SimpleTranslationEntries;
}
export interface PokemonInfoTranslationEntries {
Stat: SimpleTranslationEntries;
Type: SimpleTranslationEntries;
}
export interface BerryTranslationEntry {
name: string;
effect: string;
}
export interface BerryTranslationEntries {
[key: string]: BerryTranslationEntry;
}
export interface StatusEffectTranslationEntries {
[key: string]: StatusEffectTranslationEntry;
}
export interface StatusEffectTranslationEntry {
name: string;
obtain: string;
obtainSource: string;
activation: string;
overlap: string;
heal: string;
description: string;
}
export interface AchievementTranslationEntry {
name?: string;
description?: string;
}
export interface AchievementTranslationEntries {
[key: string]: AchievementTranslationEntry;
}
export interface DialogueTranslationEntry {
[key: number]: string;
}
export interface DialogueTranslationCategory {
[category: string]: DialogueTranslationEntry;
}
export interface DialogueTranslationEntries {
[trainertype: string]: DialogueTranslationCategory;
}