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",
|
"your_achievements": "Your Achievements",
|
||||||
"unlocked_at": "Unlocked at:",
|
"unlocked_at": "Unlocked at:",
|
||||||
"subscription_needed": "A Hydra Cloud subscription is required to see this content",
|
"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": {
|
"tour": {
|
||||||
"subscription_tour_title": "Hydra Cloud Subscription",
|
"subscription_tour_title": "Hydra Cloud Subscription",
|
||||||
|
|
|
@ -360,7 +360,8 @@
|
||||||
"user_achievements": "Conquistas de {{displayName}}",
|
"user_achievements": "Conquistas de {{displayName}}",
|
||||||
"unlocked_at": "Desbloqueado em:",
|
"unlocked_at": "Desbloqueado em:",
|
||||||
"subscription_needed": "Você precisa de uma assinatura Hydra Cloud para visualizar este conteúdo",
|
"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": {
|
"tour": {
|
||||||
"subscription_tour_title": "Assinatura Hydra Cloud",
|
"subscription_tour_title": "Assinatura Hydra Cloud",
|
||||||
|
|
|
@ -102,7 +102,7 @@ export const publishCombinedNewAchievementNotification = async (
|
||||||
: icon;
|
: icon;
|
||||||
|
|
||||||
const options: NotificationOptions = {
|
const options: NotificationOptions = {
|
||||||
title: "New achievement unlocked",
|
title: t("achievement_unlocked", { ns: "achievement" }),
|
||||||
body: t("new_achievements_unlocked", {
|
body: t("new_achievements_unlocked", {
|
||||||
ns: "achievement",
|
ns: "achievement",
|
||||||
gameCount,
|
gameCount,
|
||||||
|
@ -129,7 +129,7 @@ export const publishNewAchievementNotification = async (achievement: {
|
||||||
const iconPath = await downloadImage(achievement.achievementIcon);
|
const iconPath = await downloadImage(achievement.achievementIcon);
|
||||||
|
|
||||||
const options: NotificationOptions = {
|
const options: NotificationOptions = {
|
||||||
title: "New achievement unlocked",
|
title: t("achievement_unlocked", { ns: "achievement" }),
|
||||||
body: achievement.displayName,
|
body: achievement.displayName,
|
||||||
icon: iconPath,
|
icon: iconPath,
|
||||||
silent: true,
|
silent: true,
|
||||||
|
@ -137,7 +137,11 @@ export const publishNewAchievementNotification = async (achievement: {
|
||||||
value:
|
value:
|
||||||
achievement.unlockedAchievementCount /
|
achievement.unlockedAchievementCount /
|
||||||
achievement.totalAchievementCount,
|
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