Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Localization] Improve French Locales #1576

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/egg-hatch-phase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { achvs } from "./system/achv";
import { pokemonPrevolutions } from "./data/pokemon-evolutions";
import { EggTier } from "./data/enums/egg-type";
import PokemonInfoContainer from "./ui/pokemon-info-container";
import i18next from "i18next";

export class EggHatchPhase extends Phase {
private egg: Egg;
Expand Down Expand Up @@ -292,7 +293,7 @@ export class EggHatchPhase extends Phase {

this.scene.playSoundWithoutBgm("evolution_fanfare");

this.scene.ui.showText(`${this.pokemon.name} hatched from the egg!`, null, () => {
this.scene.ui.showText(i18next.t("egg:eggHatched", {pokemonName: this.pokemon.name}), null, () => {
this.scene.gameData.updateSpeciesDexIvs(this.pokemon.species.speciesId, this.pokemon.ivs);
this.scene.gameData.setPokemonCaught(this.pokemon, true, true).then(() => {
this.scene.gameData.setEggMoveUnlocked(this.pokemon.species, this.eggMoveIndex).then(() => {
Expand Down
2 changes: 2 additions & 0 deletions src/locales/de/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { menuUiHandler } from "./menu-ui-handler";
import { modifierType } from "./modifier-type";
import { move } from "./move";
import { nature } from "./nature";
import { phases } from "./phases";
import { pokeball } from "./pokeball";
import { pokemon } from "./pokemon";
import { pokemonInfo } from "./pokemon-info";
Expand Down Expand Up @@ -46,6 +47,7 @@ export const deConfig = {
modifierType: modifierType,
move: move,
nature: nature,
phases: phases,
pokeball: pokeball,
pokemon: pokemon,
pokemonInfo: pokemonInfo,
Expand Down
3 changes: 2 additions & 1 deletion src/locales/de/egg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ export const egg: SimpleTranslationEntries = {
"notEnoughVouchers": "Du hast nicht genug Ei-Gutscheine!",
"tooManyEggs": "Du hast schon zu viele Eier!",
"pull": "Pull",
"pulls": "Pulls"
"pulls": "Pulls",
"eggHatched": "{{pokemonName}} hatched from the egg!"
} as const;
15 changes: 15 additions & 0 deletions src/locales/de/phases.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";

export const phases: SimpleTranslationEntries = {
"berryNervous": "{{pokemonName}} ist zu\nnervös um Beeren zu essen!",
"restoredHp": "Die KP von{{pokemonName}}\n wurden wiederhergestellt",
"moveDisabled": "{{moveName}} ist blockiert!",
"moveUsed": "{{pokemonName}} setzt\n{{moveName}} ein!",
"attackMissed": "Die Attacke von {{pokemonName}}\n hat verfehlt!",
"fainted": "{{pokemonName}} wurde besiegt!",
"rewards": "Du erhältst\n{{rewardsName}}!",
"gamemodeReward": "{{name}} beendete {{gamemodeName}}-Modus zum ersten Mal!\nDu erhältst {{rewardsName}}!",
"retry": "Willst du diesen Kampf wiederholen?",
"unlocked": "{{unlockableName}}\nwurde freigeschaltet.",
"fullHp": "Die KP von {{pokemonName}}\n sind voll!",
} as const;
5 changes: 5 additions & 0 deletions src/locales/de/pokemon-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ export const pokemonInfo: PokemonInfoTranslationEntries = {
"FAIRY": "Fee",
"STELLAR": "Stellar",
},
Prefix: {
"Foe": "Foe ",
"Wild": "Wild ",
"Default": "",
},
} as const;
2 changes: 2 additions & 0 deletions src/locales/en/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { menuUiHandler } from "./menu-ui-handler";
import { modifierType } from "./modifier-type";
import { move } from "./move";
import { nature } from "./nature";
import { phases } from "./phases";
import { pokeball } from "./pokeball";
import { pokemon } from "./pokemon";
import { pokemonInfo } from "./pokemon-info";
Expand Down Expand Up @@ -46,6 +47,7 @@ export const enConfig = {
modifierType: modifierType,
move: move,
nature: nature,
phases: phases,
pokeball: pokeball,
pokemon: pokemon,
pokemonInfo: pokemonInfo,
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en/egg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ export const egg: SimpleTranslationEntries = {
"notEnoughVouchers": "You don't have enough vouchers!",
"tooManyEggs": "You have too many eggs!",
"pull": "Pull",
"pulls": "Pulls"
"pulls": "Pulls",
"eggHatched": "{{pokemonName}} hatched from the egg!"
} as const;
15 changes: 15 additions & 0 deletions src/locales/en/phases.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";

export const phases: SimpleTranslationEntries = {
"berryNervous": "{{pokemonName}} is too\nnervous to eat berries!",
"restoredHp": "{{pokemonName}}'s\nHP was restored.",
"moveDisabled": "{{moveName}} is disabled!",
"moveUsed": "{{pokemonName}} used\n{{moveName}}!",
"attackMissed": "{{pokemonName}}'s\nattack missed!",
"fainted": "{{pokemonName}} fainted!",
"rewards": "You received\n{{rewardsName}}!",
"gamemodeReward": "{{name}} beat {{gamemodeName}} Mode for the first time!\nYou received {{rewardsName}}!",
"retry": "Would you like to retry from the start of the battle?",
"unlocked": "{{unlockableName}}\nhas been unlocked.",
"fullHp": "{{pokemonName}}'s\nHP is full!",
} as const;
5 changes: 5 additions & 0 deletions src/locales/en/pokemon-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ export const pokemonInfo: PokemonInfoTranslationEntries = {
"FAIRY": "Fairy",
"STELLAR": "Stellar",
},
Prefix: {
"Foe": "Foe ",
"Wild": "Wild ",
"Default": "",
},
} as const;
2 changes: 2 additions & 0 deletions src/locales/es/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { menuUiHandler } from "./menu-ui-handler";
import { modifierType } from "./modifier-type";
import { move } from "./move";
import { nature } from "./nature";
import { phases } from "./phases";
import { pokeball } from "./pokeball";
import { pokemon } from "./pokemon";
import { pokemonInfo } from "./pokemon-info";
Expand Down Expand Up @@ -46,6 +47,7 @@ export const esConfig = {
modifierType: modifierType,
move: move,
nature: nature,
phases: phases,
pokeball: pokeball,
pokemon: pokemon,
pokemonInfo: pokemonInfo,
Expand Down
3 changes: 2 additions & 1 deletion src/locales/es/egg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ export const egg: SimpleTranslationEntries = {
"notEnoughVouchers": "You don't have enough vouchers!",
"tooManyEggs": "You have too many eggs!",
"pull": "Pull",
"pulls": "Pulls"
"pulls": "Pulls",
"eggHatched": "{{pokemonName}} hatched from the egg!"
} as const;
15 changes: 15 additions & 0 deletions src/locales/es/phases.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";

export const phases: SimpleTranslationEntries = {
"berryNervous": "{{pokemonName}} is too\nnervous to eat berries!",
"restoredHp": "{{pokemonName}}'s\nHP was restored.",
"moveDisabled": "{{moveName}} is disabled!",
"moveUsed": "{{pokemonName}} used\n{{moveName}}!",
"attackMissed": "{{pokemonName}}'s\nattack missed!",
"fainted": "{{pokemonName}} fainted!",
"rewards": "You received\n{{rewardsName}}!",
"gamemodeReward": "{{name}} beat {{gamemodeName}} Mode for the first time!\nYou received {{rewardsName}}!",
"retry": "Would you like to retry from the start of the battle?",
"unlocked": "{{unlockableName}}\nhas been unlocked.",
"fullHp": "{{pokemonName}}'s\nHP is full!",
} as const;
5 changes: 5 additions & 0 deletions src/locales/es/pokemon-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ export const pokemonInfo: PokemonInfoTranslationEntries = {
"FAIRY": "Hada",
"STELLAR": "Astral",
},
Prefix: {
"Foe": "Foe ",
"Wild": "Wild ",
"Default": "",
},
} as const;
2 changes: 2 additions & 0 deletions src/locales/fr/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { menuUiHandler } from "./menu-ui-handler";
import { modifierType } from "./modifier-type";
import { move } from "./move";
import { nature } from "./nature";
import { phases } from "./phases";
import { pokeball } from "./pokeball";
import { pokemon } from "./pokemon";
import { pokemonInfo } from "./pokemon-info";
Expand Down Expand Up @@ -46,6 +47,7 @@ export const frConfig = {
modifierType: modifierType,
move: move,
nature: nature,
phases: phases,
pokeball: pokeball,
pokemon: pokemon,
pokemonInfo: pokemonInfo,
Expand Down
3 changes: 2 additions & 1 deletion src/locales/fr/egg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ export const egg: SimpleTranslationEntries = {
"notEnoughVouchers": "Vous n’avez pas assez de coupons !",
"tooManyEggs": "Vous avez trop d’Œufs !",
"pull": "Tirage",
"pulls": "Tirages"
"pulls": "Tirages",
"eggHatched": "Un {{pokemonName}} vient de sortir de l’Œuf !"
} as const;
15 changes: 15 additions & 0 deletions src/locales/fr/phases.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";

export const phases: SimpleTranslationEntries = {
"berryNervous": "{{pokemonName}} est trop\nnerveux pour manger des baies !",
"restoredHp": "Les PV de {{pokemonName}} ont été restaurés.",
"moveDisabled": "{{moveName}} est désactivé !",
"moveUsed": "{{pokemonName}} utilise\n{{moveName}} !",
"attackMissed": "L'attaque de {{pokemonName}}\na raté !",
"fainted": "{{pokemonName}} est K.O. !",
"rewards": "Vous avez reçu\n{{rewardsName}} !",
"gamemodeReward": "{{name}} a battu le mode {{gamemodeName}} pour la première fois !\nVous avez reçu {{rewardsName}} !",
"retry": "Voulez-vous recommencer depuis le début du combat ?",
"unlocked": "{{unlockableName}}\na été débloqué.",
"fullHp": "Les PV de {{pokemonName}} sont au maximum !",
} as const;
5 changes: 5 additions & 0 deletions src/locales/fr/pokemon-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ export const pokemonInfo: PokemonInfoTranslationEntries = {
"FAIRY": "Fée",
"STELLAR": "Stellaire",
},
Prefix: {
"Foe": "Adversaire ",
"Wild": "Sauvage ",
"Default": "",
},
} as const;
2 changes: 2 additions & 0 deletions src/locales/it/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { menuUiHandler } from "./menu-ui-handler";
import { modifierType } from "./modifier-type";
import { move } from "./move";
import { nature } from "./nature";
import { phases } from "./phases";
import { pokeball } from "./pokeball";
import { pokemon } from "./pokemon";
import { pokemonInfo } from "./pokemon-info";
Expand Down Expand Up @@ -46,6 +47,7 @@ export const itConfig = {
modifierType: modifierType,
move: move,
nature: nature,
phases: phases,
pokeball: pokeball,
pokemon: pokemon,
pokemonInfo: pokemonInfo,
Expand Down
3 changes: 2 additions & 1 deletion src/locales/it/egg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ export const egg: SimpleTranslationEntries = {
"notEnoughVouchers": "Non hai abbastanza Biglietti!",
"tooManyEggs": "Hai troppe Uova!",
"pull": "Tiro",
"pulls": "Tiri"
"pulls": "Tiri",
"eggHatched": "{{pokemonName}} hatched from the egg!"
} as const;
15 changes: 15 additions & 0 deletions src/locales/it/phases.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";

export const phases: SimpleTranslationEntries = {
"berryNervous": "{{pokemonName}} is too\nnervous to eat berries!",
"restoredHp": "{{pokemonName}}'s\nHP was restored.",
"moveDisabled": "{{moveName}} is disabled!",
"moveUsed": "{{pokemonName}} used\n{{moveName}}!",
"attackMissed": "{{pokemonName}}'s\nattack missed!",
"fainted": "{{pokemonName}} fainted!",
"rewards": "You received\n{{rewardsName}}!",
"gamemodeReward": "{{name}} beat {{gamemodeName}} Mode for the first time!\nYou received {{rewardsName}}!",
"retry": "Would you like to retry from the start of the battle?",
"unlocked": "{{unlockableName}}\nhas been unlocked.",
"fullHp": "{{pokemonName}}'s\nHP is full!",
} as const;
5 changes: 5 additions & 0 deletions src/locales/it/pokemon-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ export const pokemonInfo: PokemonInfoTranslationEntries = {
"FAIRY": "Folletto",
"STELLAR": "Astrale",
},
Prefix: {
"Foe": "Foe ",
"Wild": "Wild ",
"Default": "",
},
} as const;
2 changes: 2 additions & 0 deletions src/locales/pt_BR/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { menuUiHandler } from "./menu-ui-handler";
import { modifierType } from "./modifier-type";
import { move } from "./move";
import { nature } from "./nature";
import { phases } from "./phases";
import { pokeball } from "./pokeball";
import { pokemon } from "./pokemon";
import { pokemonInfo } from "./pokemon-info";
Expand Down Expand Up @@ -46,6 +47,7 @@ export const ptBrConfig = {
modifierType: modifierType,
move: move,
nature: nature,
phases: phases,
pokeball: pokeball,
pokemon: pokemon,
pokemonInfo: pokemonInfo,
Expand Down
3 changes: 2 additions & 1 deletion src/locales/pt_BR/egg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ export const egg: SimpleTranslationEntries = {
"notEnoughVouchers": "Você não tem vouchers suficientes!",
"tooManyEggs": "Você já tem muitos ovos!",
"pull": "Prêmio",
"pulls": "Prêmios"
"pulls": "Prêmios",
"eggHatched": "{{pokemonName}} hatched from the egg!"
} as const;
15 changes: 15 additions & 0 deletions src/locales/pt_BR/phases.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";

export const phases: SimpleTranslationEntries = {
"berryNervous": "{{pokemonName}} is too\nnervous to eat berries!",
"restoredHp": "{{pokemonName}}'s\nHP was restored.",
"moveDisabled": "{{moveName}} is disabled!",
"moveUsed": "{{pokemonName}} used\n{{moveName}}!",
"attackMissed": "{{pokemonName}}'s\nattack missed!",
"fainted": "{{pokemonName}} fainted!",
"rewards": "You received\n{{rewardsName}}!",
"gamemodeReward": "{{name}} beat {{gamemodeName}} Mode for the first time!\nYou received {{rewardsName}}!",
"retry": "Would you like to retry from the start of the battle?",
"unlocked": "{{unlockableName}}\nhas been unlocked.",
"fullHp": "{{pokemonName}}'s\nHP is full!",
} as const;
5 changes: 5 additions & 0 deletions src/locales/pt_BR/pokemon-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ export const pokemonInfo: PokemonInfoTranslationEntries = {
"FAIRY": "Fada",
"STELLAR": "Estelar"
},
Prefix: {
"Foe": "Foe ",
"Wild": "Wild ",
"Default": "",
},
} as const;
2 changes: 2 additions & 0 deletions src/locales/zh_CN/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { menuUiHandler } from "./menu-ui-handler";
import { modifierType } from "./modifier-type";
import { move } from "./move";
import { nature } from "./nature";
import { phases } from "./phases";
import { pokeball } from "./pokeball";
import { pokemon } from "./pokemon";
import { pokemonInfo } from "./pokemon-info";
Expand Down Expand Up @@ -46,6 +47,7 @@ export const zhCnConfig = {
modifierType: modifierType,
move: move,
nature: nature,
phases: phases,
pokeball: pokeball,
pokemon: pokemon,
pokemonInfo: pokemonInfo,
Expand Down
3 changes: 2 additions & 1 deletion src/locales/zh_CN/egg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ export const egg: SimpleTranslationEntries = {
"notEnoughVouchers": "你没有足够的兑换券!",
"tooManyEggs": "你的蛋太多啦!",
"pull": "次",
"pulls": "次"
"pulls": "次",
"eggHatched": "{{pokemonName}} hatched from the egg!"
} as const;
15 changes: 15 additions & 0 deletions src/locales/zh_CN/phases.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";

export const phases: SimpleTranslationEntries = {
"berryNervous": "{{pokemonName}} is too\nnervous to eat berries!",
"restoredHp": "{{pokemonName}}'s\nHP was restored.",
"moveDisabled": "{{moveName}} is disabled!",
"moveUsed": "{{pokemonName}} used\n{{moveName}}!",
"attackMissed": "{{pokemonName}}'s\nattack missed!",
"fainted": "{{pokemonName}} fainted!",
"rewards": "You received\n{{rewardsName}}!",
"gamemodeReward": "{{name}} beat {{gamemodeName}} Mode for the first time!\nYou received {{rewardsName}}!",
"retry": "Would you like to retry from the start of the battle?",
"unlocked": "{{unlockableName}}\nhas been unlocked.",
"fullHp": "{{pokemonName}}'s\nHP is full!",
} as const;
7 changes: 6 additions & 1 deletion src/locales/zh_CN/pokemon-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ export const pokemonInfo: PokemonInfoTranslationEntries = {
"FAIRY": "妖精",
"STELLAR": "星晶",
},
} as const;
Prefix: {
"Foe": "Foe ",
"Wild": "Wild ",
"Default": "",
},
} as const;
2 changes: 2 additions & 0 deletions src/locales/zh_TW/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { menuUiHandler } from "./menu-ui-handler";
import { modifierType } from "./modifier-type";
import { move } from "./move";
import { nature } from "./nature";
import { phases } from "./phases";
import { pokeball } from "./pokeball";
import { pokemon } from "./pokemon";
import { pokemonInfo } from "./pokemon-info";
Expand Down Expand Up @@ -45,6 +46,7 @@ export const zhTWConfig = {
modifierType: modifierType,
move: move,
nature: nature,
phases: phases,
pokeball: pokeball,
pokemon: pokemon,
pokemonInfo: pokemonInfo,
Expand Down
3 changes: 2 additions & 1 deletion src/locales/zh_TW/egg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ export const egg: SimpleTranslationEntries = {
"notEnoughVouchers": "你沒有足夠的兌換券!",
"tooManyEggs": "你的蛋太多啦!",
"pull": "抽",
"pulls": "抽"
"pulls": "抽",
"eggHatched": "{{pokemonName}} hatched from the egg!"
} as const;
Loading