diff --git a/src/data/dialogue.ts b/src/data/dialogue.ts index 4914d9f4e95..089082bee81 100644 --- a/src/data/dialogue.ts +++ b/src/data/dialogue.ts @@ -9,14 +9,14 @@ export interface TrainerTypeMessages { } export interface TrainerTypeDialogue { - [key: integer]: TrainerTypeMessages | [TrainerTypeMessages, TrainerTypeMessages] + [key: integer]: TrainerTypeMessages | Array } export function getTrainerTypeDialogue(): TrainerTypeDialogue { return trainerTypeDialogue; } -export const trainerTypeDialogue = { +export const trainerTypeDialogue: TrainerTypeDialogue = { [TrainerType.YOUNGSTER]: [ { encounter: [ diff --git a/src/locales/de/dialogue.ts b/src/locales/de/dialogue.ts index c127328af6a..cf3a2bf813d 100644 --- a/src/locales/de/dialogue.ts +++ b/src/locales/de/dialogue.ts @@ -1635,13 +1635,13 @@ export const PGMdialogue: DialogueTranslationEntries = { "encounter": { 1: `Ich habe mich entschieden, erneut meinen Hut in den Ring zu werfen. $Komm jetzt... Zeig mir die Früchte deines Trainings.`, - "victory": { - 1: "Ich freue mich auf Neuigkeiten über all deine Erfolge!" - }, - "defeat": { - 1: "Was ist los? Das ist doch nicht alles, oder?" - } }, + "victory": { + 1: "Ich freue mich auf Neuigkeiten über all deine Erfolge!" + }, + "defeat": { + 1: "Was ist los? Das ist doch nicht alles, oder?" + } }, "nemona": { "encounter": { @@ -2337,7 +2337,7 @@ export const PGMdialogue: DialogueTranslationEntries = { }; // Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue. -export const PGFdialogue: SimpleTranslationEntries = PGMdialogue; +export const PGFdialogue: DialogueTranslationEntries = PGMdialogue; // Dialogue of the endboss of the game when the player character is male (Or unset) export const PGMbattleSpecDialogue: SimpleTranslationEntries = { diff --git a/src/locales/en/dialogue.ts b/src/locales/en/dialogue.ts index 794c83843a8..0d716add4af 100644 --- a/src/locales/en/dialogue.ts +++ b/src/locales/en/dialogue.ts @@ -1595,13 +1595,13 @@ export const PGMdialogue: DialogueTranslationEntries = { "encounter": { 1: `I decided to throw my hat in the ring once more. $Come now… Show me the fruits of your training.`, - "victory": { - 1: "I eagerly await news of all your achievements!" - }, - "defeat": { - 1: "What's the matter? This isn't all, is it?" - } }, + "victory": { + 1: "I eagerly await news of all your achievements!" + }, + "defeat": { + 1: "What's the matter? This isn't all, is it?" + } }, "nemona": { "encounter": { @@ -2278,7 +2278,7 @@ export const PGMdialogue: DialogueTranslationEntries = { // Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue. -export const PGFdialogue: SimpleTranslationEntries = PGMdialogue; +export const PGFdialogue: DialogueTranslationEntries = PGMdialogue; // Dialogue of the endboss of the game when the player character is male (Or unset) export const PGMbattleSpecDialogue: SimpleTranslationEntries = { diff --git a/src/locales/es/dialogue.ts b/src/locales/es/dialogue.ts index 5d9fabfebb1..b9d6c3de832 100644 --- a/src/locales/es/dialogue.ts +++ b/src/locales/es/dialogue.ts @@ -1595,13 +1595,13 @@ export const PGMdialogue: DialogueTranslationEntries = { "encounter": { 1: `I decided to throw my hat in the ring once more. $Come now… Show me the fruits of your training.`, - "victory": { - 1: "I eagerly await news of all your achievements!" - }, - "defeat": { - 1: "What's the matter? This isn't all, is it?" - } }, + "victory": { + 1: "I eagerly await news of all your achievements!" + }, + "defeat": { + 1: "What's the matter? This isn't all, is it?" + } }, "nemona": { "encounter": { @@ -2278,7 +2278,7 @@ export const PGMdialogue: DialogueTranslationEntries = { // Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue. -export const PGFdialogue: SimpleTranslationEntries = PGMdialogue; +export const PGFdialogue: DialogueTranslationEntries = PGMdialogue; // Dialogue of the endboss of the game when the player character is male (Or unset) export const PGMbattleSpecDialogue: SimpleTranslationEntries = { diff --git a/src/locales/fr/dialogue.ts b/src/locales/fr/dialogue.ts index 265565e29bd..45731194f0e 100644 --- a/src/locales/fr/dialogue.ts +++ b/src/locales/fr/dialogue.ts @@ -1595,13 +1595,13 @@ export const PGMdialogue: DialogueTranslationEntries = { "encounter": { 1: `I decided to throw my hat in the ring once more. $Come now… Show me the fruits of your training.`, - "victory": { - 1: "I eagerly await news of all your achievements!" - }, - "defeat": { - 1: "What's the matter? This isn't all, is it?" - } }, + "victory": { + 1: "I eagerly await news of all your achievements!" + }, + "defeat": { + 1: "What's the matter? This isn't all, is it?" + } }, "nemona": { "encounter": { @@ -3873,13 +3873,13 @@ export const PGFdialogue: DialogueTranslationEntries = { "encounter": { 1: `I decided to throw my hat in the ring once more. $Come now… Show me the fruits of your training.`, - "victory": { - 1: "I eagerly await news of all your achievements!" - }, - "defeat": { - 1: "What's the matter? This isn't all, is it?" - } }, + "victory": { + 1: "I eagerly await news of all your achievements!" + }, + "defeat": { + 1: "What's the matter? This isn't all, is it?" + } }, "nemona": { "encounter": { diff --git a/src/locales/it/dialogue.ts b/src/locales/it/dialogue.ts index 5d9fabfebb1..b9d6c3de832 100644 --- a/src/locales/it/dialogue.ts +++ b/src/locales/it/dialogue.ts @@ -1595,13 +1595,13 @@ export const PGMdialogue: DialogueTranslationEntries = { "encounter": { 1: `I decided to throw my hat in the ring once more. $Come now… Show me the fruits of your training.`, - "victory": { - 1: "I eagerly await news of all your achievements!" - }, - "defeat": { - 1: "What's the matter? This isn't all, is it?" - } }, + "victory": { + 1: "I eagerly await news of all your achievements!" + }, + "defeat": { + 1: "What's the matter? This isn't all, is it?" + } }, "nemona": { "encounter": { @@ -2278,7 +2278,7 @@ export const PGMdialogue: DialogueTranslationEntries = { // Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue. -export const PGFdialogue: SimpleTranslationEntries = PGMdialogue; +export const PGFdialogue: DialogueTranslationEntries = PGMdialogue; // Dialogue of the endboss of the game when the player character is male (Or unset) export const PGMbattleSpecDialogue: SimpleTranslationEntries = { diff --git a/src/locales/pt_BR/dialogue.ts b/src/locales/pt_BR/dialogue.ts index 5d9fabfebb1..b9d6c3de832 100644 --- a/src/locales/pt_BR/dialogue.ts +++ b/src/locales/pt_BR/dialogue.ts @@ -1595,13 +1595,13 @@ export const PGMdialogue: DialogueTranslationEntries = { "encounter": { 1: `I decided to throw my hat in the ring once more. $Come now… Show me the fruits of your training.`, - "victory": { - 1: "I eagerly await news of all your achievements!" - }, - "defeat": { - 1: "What's the matter? This isn't all, is it?" - } }, + "victory": { + 1: "I eagerly await news of all your achievements!" + }, + "defeat": { + 1: "What's the matter? This isn't all, is it?" + } }, "nemona": { "encounter": { @@ -2278,7 +2278,7 @@ export const PGMdialogue: DialogueTranslationEntries = { // Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue. -export const PGFdialogue: SimpleTranslationEntries = PGMdialogue; +export const PGFdialogue: DialogueTranslationEntries = PGMdialogue; // Dialogue of the endboss of the game when the player character is male (Or unset) export const PGMbattleSpecDialogue: SimpleTranslationEntries = { diff --git a/src/locales/zh_CN/dialogue.ts b/src/locales/zh_CN/dialogue.ts index 5d9fabfebb1..b9d6c3de832 100644 --- a/src/locales/zh_CN/dialogue.ts +++ b/src/locales/zh_CN/dialogue.ts @@ -1595,13 +1595,13 @@ export const PGMdialogue: DialogueTranslationEntries = { "encounter": { 1: `I decided to throw my hat in the ring once more. $Come now… Show me the fruits of your training.`, - "victory": { - 1: "I eagerly await news of all your achievements!" - }, - "defeat": { - 1: "What's the matter? This isn't all, is it?" - } }, + "victory": { + 1: "I eagerly await news of all your achievements!" + }, + "defeat": { + 1: "What's the matter? This isn't all, is it?" + } }, "nemona": { "encounter": { @@ -2278,7 +2278,7 @@ export const PGMdialogue: DialogueTranslationEntries = { // Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue. -export const PGFdialogue: SimpleTranslationEntries = PGMdialogue; +export const PGFdialogue: DialogueTranslationEntries = PGMdialogue; // Dialogue of the endboss of the game when the player character is male (Or unset) export const PGMbattleSpecDialogue: SimpleTranslationEntries = { diff --git a/src/locales/zh_TW/dialogue.ts b/src/locales/zh_TW/dialogue.ts index cbe9733ca0a..764fec5a719 100644 --- a/src/locales/zh_TW/dialogue.ts +++ b/src/locales/zh_TW/dialogue.ts @@ -1595,13 +1595,13 @@ export const PGMdialogue: DialogueTranslationEntries = { "encounter": { 1: `I decided to throw my hat in the ring once more. $Come now… Show me the fruits of your training.`, - "victory": { - 1: "I eagerly await news of all your achievements!" - }, - "defeat": { - 1: "What's the matter? This isn't all, is it?" - } }, + "victory": { + 1: "I eagerly await news of all your achievements!" + }, + "defeat": { + 1: "What's the matter? This isn't all, is it?" + } }, "nemona": { "encounter": { @@ -2278,7 +2278,7 @@ export const PGMdialogue: DialogueTranslationEntries = { // Dialogue of the NPCs in the game when the player character is female. For languages that do not have gendered pronouns, this can be set to PGMdialogue. -export const PGFdialogue: SimpleTranslationEntries = PGMdialogue; +export const PGFdialogue: DialogueTranslationEntries = PGMdialogue; // Dialogue of the endboss of the game when the player character is male (Or unset) export const PGMbattleSpecDialogue: SimpleTranslationEntries = { diff --git a/src/plugins/i18n.ts b/src/plugins/i18n.ts index 3d3e1be0837..7053b2da7fa 100644 --- a/src/plugins/i18n.ts +++ b/src/plugins/i18n.ts @@ -65,19 +65,14 @@ export interface DialogueTranslationEntry { } export interface DialogueTranslationCategory { - encounter: DialogueTranslationEntry; - victory: DialogueTranslationEntry; - defeat?: DialogueTranslationEntry; -} - -export interface DialogueTranslationTrainerClass { - [key: string]: DialogueTranslationCategory; + [category: string]: DialogueTranslationEntry; } export interface DialogueTranslationEntries { - [key: string]: DialogueTranslationTrainerClass; + [trainertype: string]: DialogueTranslationCategory; } + export interface Localizable { localize(): void; }