mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: i18n
This commit is contained in:
parent
9ee4e2e29b
commit
9189541c3a
3 changed files with 11 additions and 5 deletions
|
@ -362,7 +362,8 @@
|
|||
"your_achievements": "Your Achievements",
|
||||
"unlocked_at": "Unlocked at:",
|
||||
"subscription_needed": "A Hydra Cloud subscription is required to see this content",
|
||||
"new_achievements_unlocked": "Unlocked {{achievementCount}} new achievements from {{gameCount}} games"
|
||||
"new_achievements_unlocked": "Unlocked {{achievementCount}} new achievements from {{gameCount}} games",
|
||||
"achievement_progress": "{{unlockedCount}}/{{totalCount}} achievements"
|
||||
},
|
||||
"tour": {
|
||||
"subscription_tour_title": "Hydra Cloud Subscription",
|
||||
|
|
|
@ -360,7 +360,8 @@
|
|||
"user_achievements": "Conquistas de {{displayName}}",
|
||||
"unlocked_at": "Desbloqueado em:",
|
||||
"subscription_needed": "Você precisa de uma assinatura Hydra Cloud para visualizar este conteúdo",
|
||||
"new_achievements_unlocked": "{{achievementCount}} novas conquistas de {{gameCount}} jogos"
|
||||
"new_achievements_unlocked": "{{achievementCount}} novas conquistas de {{gameCount}} jogos",
|
||||
"achievement_progress": "{{unlockedCount}}/{{totalCount}} conquistas"
|
||||
},
|
||||
"tour": {
|
||||
"subscription_tour_title": "Assinatura Hydra Cloud",
|
||||
|
|
|
@ -102,7 +102,7 @@ export const publishCombinedNewAchievementNotification = async (
|
|||
: icon;
|
||||
|
||||
const options: NotificationOptions = {
|
||||
title: "New achievement unlocked",
|
||||
title: t("achievement_unlocked", { ns: "achievement" }),
|
||||
body: t("new_achievements_unlocked", {
|
||||
ns: "achievement",
|
||||
gameCount,
|
||||
|
@ -129,7 +129,7 @@ export const publishNewAchievementNotification = async (achievement: {
|
|||
const iconPath = await downloadImage(achievement.achievementIcon);
|
||||
|
||||
const options: NotificationOptions = {
|
||||
title: "New achievement unlocked",
|
||||
title: t("achievement_unlocked", { ns: "achievement" }),
|
||||
body: achievement.displayName,
|
||||
icon: iconPath,
|
||||
silent: true,
|
||||
|
@ -137,7 +137,11 @@ export const publishNewAchievementNotification = async (achievement: {
|
|||
value:
|
||||
achievement.unlockedAchievementCount /
|
||||
achievement.totalAchievementCount,
|
||||
valueOverride: `${achievement.unlockedAchievementCount}/${achievement.totalAchievementCount} achievements`,
|
||||
valueOverride: t("achievement_progress", {
|
||||
ns: "achievement",
|
||||
unlockedCount: achievement.unlockedAchievementCount,
|
||||
totalCount: achievement.totalAchievementCount,
|
||||
}),
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue