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

Feat/i18n #465

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
feat(i18n): companions page and data i18n
  • Loading branch information
Alconix committed Oct 4, 2022
commit afbda06a8e46b2be5c8730d7ac57e9f59e5735e2
45 changes: 42 additions & 3 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
"loveIsInTheAir": "Love is in the Air",
"noblegarden": "Noblegarden",
"childrensWeek": "Children's Week",
"midsummer": "Midsummer",
"midsummer": "Fire Festival",
"desecrate": "Desecrate",
"honorFlame": "Honor",
"brewfest": "Brewfest",
Expand Down Expand Up @@ -491,7 +491,7 @@
"assaultValeOfEternalBlossoms": "Assault: Vale of Eternal Blossoms",
"assaultUldum": "Assault: Uldum",
"visions": "Visions",
"prelaunchEvent": "Pre-launch Event",
"preLaunchEvent": "Pre-launch Event",
"class": "Class",
"tradingPost": "Trading Post",
"fishingShack": "Fishing Shack",
Expand Down Expand Up @@ -566,5 +566,44 @@
"valleyOfTheFourWinds": "Valley of the Four Winds",
"mountHyjal": "Mount Hyjal",
"allianceTerritory": "Alliance Territory",
"hordeTerritory": "Horde Territory"
"hordeTerritory": "Horde Territory",
"unknown": "Unknown",
"honeyDrop": "Honey Drop",
"nazjatarPvp": "Nazjatar PvP",
"petBattle": "Pet Battles",
"emissary": "Emissary",
"felEgg": "Fel Egg",
"worldDrop": "World Drop",
"deathsOfChromie": "Deaths of Chromie",
"masteringTheMenagerie": "Mastering the Menagerie",
"crittersOfDraenor": "Critters of Draenor",
"tanaanPetBattle": "Tanaan Pet Battle",
"celestialTournament": "Celestial Tournament",
"warlordsOfDraenor": "Warlords of Draenor",
"crackedEgg": "Cracked Egg",
"allianceVendor": "Alliance Vendor",
"hordeVendor": "Horde Vendor",
"worldDropEasternKingdoms": "World Drop: Eastern Kingdoms",
"worldDropKalimdor": "World Drop: Kalimdor",
"dayOfTheDead": "Day of the Dead",
"herbalism": "Herbalism",
"mining": "Mining",
"skinning": "Skinning",
"inscription": "Inscription",
"pickpocketing": "Pickpocketing",
"petBattleDungeon": "Pet Battle Dungeon",
"challengeWailingCaverns": "Challenge: Wailing Caverns",
"challengeDeadmines": "Challenge: Deadmines",
"challengeGnomeregan": "Challenge: Gnomeregan",
"challengeStratholme": "Challenge: Stratholme",
"challengeBlackrockDepths": "Challenge: Blackrock Depths",
"attunementEdition": "II: Attunement Edition",
"drinkinFromTheSunwell": "III: Drinkin' from the Sunwell",
"wrathOfTheLickKing": "IV: Wrath of the Lick King",
"cuteaclysm": "V: Cuteaclysm",
"petsOfPandaria": "VI: Pets of Pandaria",
"authenticator": "Authenticator",
"starcraft2": "Starcraft II",
"diablo3": "Diablo III",
"overwatch": "Overwatch"
}
45 changes: 42 additions & 3 deletions src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
"loveIsInTheAir": "Fête de l'amour dans l'air",
"noblegarden": "Jardin des nobles",
"childrensWeek": "Semaine des enfants",
"midsummer": "Solstice",
"midsummer": "Fête du feu",
"desecrate": "Extinction",
"honorFlame": "Garde-flammes",
"brewfest": "Fête des Brasseurs",
Expand All @@ -345,7 +345,7 @@
"petCharms": "Charmes pour mascotte",
"challenges": "Défis",
"collect": "Collection",
"leashes": "Raids de mascottes",
"leashes": "Raid de mascottes",
"taming": "Dompteurs",
"PVP": "JcJ",
"speciesBrokenIsles": "Espèces: Îles Brisées",
Expand Down Expand Up @@ -566,5 +566,44 @@
"valleyOfTheFourWinds": "Vallée des Quatre vents",
"mountHyjal": "Mont Hyjal",
"allianceTerritory": "Territoire de l'Alliance",
"hordeTerritory": "Territoire de la Horde"
"hordeTerritory": "Territoire de la Horde",
"unknown": "Inconnu",
"honeyDrop": "Miel",
"nazjatarPvp": "JcJ Nazjatar",
"petBattle": "Combat de mascottes",
"emissary": "Émissaire",
"felEgg": "Œuf taché par la corruption",
"worldDrop": "Butin mondial",
"deathsOfChromie": "Les morts de Chromie",
"masteringTheMenagerie": "Maîtriser la Ménagerie",
"crittersOfDraenor": "Bestioles de Draenor",
"tanaanPetBattle": "Combat de mascottes de Tanaan",
"celestialTournament": "Tournoi des Astres vénérables",
"warlordsOfDraenor": "Warlords of Draenor",
"crackedEgg": "Oeuf brisé",
"allianceVendor": "Vendeur de l'Alliance",
"hordeVendor": "Vendeur de la Horde",
"worldDropEasternKingdoms": "Butin mondial : Royaumes de l'est",
"worldDropKalimdor": "Butin mondial : Kalimdor",
"dayOfTheDead": "Jour des morts",
"herbalism": "Herboristerie",
"mining": "Minage",
"skinning": "Dépeçage",
"inscription": "Calligraphie",
"pickpocketing": "Vol à la tire",
"petBattleDungeon": "Donjon de combat de mascottes",
"challengeWailingCaverns": "Défi : cavernes des Lamentations",
"challengeDeadmines": "Défi : les Mortemines",
"challengeGnomeregan": "Défi : Gnomeregan",
"challengeStratholme": "Défi : Stratholme",
"challengeBlackrockDepths": "Défi : profondeurs de Rochenoire",
"attunementEdition": "II : édition harmonisation",
"drinkinFromTheSunwell": "III : Puisons dans le Puits de soleil",
"wrathOfTheLickKing": "IV : la colère du roi des laisses",
"cuteaclysm": "V : Choutaclysme",
"petsOfPandaria": "VI : prédateurs de Pandarie",
"authenticator": "Authenticator",
"starcraft2": "Starcraft II",
"diablo3": "Diablo III",
"overwatch": "Overwatch"
}
9 changes: 5 additions & 4 deletions src/pages/Companions.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script>
import { onMount } from 'svelte'
import { t } from 'svelte-i18n'
import { region, realm, character } from '$stores/user'
import { getCompanions } from '$api/companions'
import { percent, percentFormat, getTitle, getImageSrc } from '$util/utils'
Expand All @@ -24,13 +25,13 @@
</script>

<svelte:head>
<title>{getTitle($character, 'Companions')}</title>
<title>{getTitle($character, $t('companions'))}</title>
</svelte:head>

<div class="container">
<div class="page-header">
<h2>
Companions
{$t('companions')}
<ProgressBar
rightSide={true}
width={companions ? percent(companions.collected, companions.possible) : 0}
Expand All @@ -44,11 +45,11 @@

{#if companions}
{#each companions.categories as category}
<h3 class="categoryHeader">{ category.name }</h3>
<h3 class="categoryHeader">{ $t(category.name) }</h3>

{#each category.subCategories as subCategory}
<div class="sect">
<div class="subCatHeader">{ subCategory.name }</div>
<div class="subCatHeader">{ $t(subCategory.name) }</div>
{#each subCategory.items as item}
<div class="pbCell">
<a
Expand Down
Loading