Skip to content

Commit d3f887e

Browse files
Feat/add new download toast UI changes (#1315)
* chore: bump @hyperplay/ui to version 1.30.3 and update pnpm-lock.yaml * feat(DownloadToast): add internationalization support for download toast messages * feat(DownloadToast): add new messages for download toast functionality --------- Co-authored-by: Brett <[email protected]>
1 parent e20640c commit d3f887e

File tree

4 files changed

+24
-9
lines changed

4 files changed

+24
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"@hyperplay/chains": "^0.6.1",
7373
"@hyperplay/check-disk-space": "^3.5.2",
7474
"@hyperplay/quests-ui": "^0.4.0",
75-
"@hyperplay/ui": "^1.30.2",
75+
"@hyperplay/ui": "^1.30.3",
7676
"@hyperplay/utils": "^0.3.14",
7777
"@mantine/carousel": "^7.12.0",
7878
"@mantine/core": "^7.12.0",

pnpm-lock.yaml

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/locales/en/gamepage.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@
104104
"dlc": {
105105
"installDlcs": "Install all DLCs"
106106
},
107+
"downloadToast": {
108+
"cancel": "Cancel",
109+
"of": "of",
110+
"pause": "Pause",
111+
"resume": "Resume"
112+
},
107113
"enabled": "Enabled",
108114
"game": {
109115
"dlcs": "DLCs",

src/frontend/components/UI/DownloadToastManager/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,14 @@ export default function DownloadToastManager() {
187187
downloadedInBytes={adjustedDownloadedInBytes}
188188
downloadSizeInBytes={adjustedDownloadSizeInBytes}
189189
estimatedCompletionTimeInMs={etaInMs}
190+
i18n={{
191+
play: t('label.playing.start', 'Play'),
192+
pause: t('downloadToast.pause', 'Pause'),
193+
resume: t('downloadToast.resume', 'Resume'),
194+
cancel: t('downloadToast.cancel', 'Cancel'),
195+
downloading: t('status.downloading', 'Downloading'),
196+
of: t('downloadToast.of', 'of')
197+
}}
190198
onCancelClick={() => {
191199
setShowStopInstallModal(true)
192200
window.api.trackEvent({

0 commit comments

Comments
 (0)