|
1 | 1 | import React, { Fragment, useEffect, useState } from 'react'; |
| 2 | +import { useTranslation } from 'react-i18next'; |
2 | 3 | import { Spacer, Mobile, getParams } from './Utils'; |
3 | 4 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; |
4 | 5 | import { IconProp } from '@fortawesome/fontawesome-svg-core'; |
@@ -38,6 +39,7 @@ const formatGH = (url: string) => { |
38 | 39 | type Platform = "wiiu" | "switch" | "3ds"; |
39 | 40 |
|
40 | 41 | const QuickStore = (props: { platform: Platform }) => { |
| 42 | + const { t } = useTranslation(); |
41 | 43 |
|
42 | 44 | const [ allApps, setAllApps ] = useState([]); |
43 | 45 | const { platform: plat } = getParams(props) as {platform?: Platform}; |
@@ -65,9 +67,7 @@ const QuickStore = (props: { platform: Platform }) => { |
65 | 67 | <div className="catTitle"> |
66 | 68 | QuickStore |
67 | 69 | </div> |
68 | | - <p> |
69 | | - This page allows you to download multiple apps in a single zip file, that can then be extracted directly to the root of the SD card. |
70 | | - </p> |
| 70 | + <p>{t("qsPurpose")}</p> |
71 | 71 | <p className="disabled"> |
72 | 72 | <input type="checkbox" id="experimental" disabled/> |
73 | 73 | <label htmlFor="experimental">Fetch releases directly from <FontAwesomeIcon icon={faPropIcon} /> Github where possible (Coming Soon)</label> |
@@ -146,7 +146,7 @@ const QuickStore = (props: { platform: Platform }) => { |
146 | 146 | const progress = (<div className='progress'><button className="progressBar"> |
147 | 147 | <FontAwesomeIcon icon={faCirclePropIcon} className={"fa-spin"} /> |
148 | 148 | |
149 | | - Downloading {selectedPackages.length} packages... |
| 149 | + {t("downloadVerb", { count: selectedPackages.length })} |
150 | 150 | </button></div>); |
151 | 151 |
|
152 | 152 | const dlButton = <div> |
@@ -186,7 +186,7 @@ const QuickStore = (props: { platform: Platform }) => { |
186 | 186 | > |
187 | 187 | <FontAwesomeIcon icon={faDLPropIcon} /> |
188 | 188 | |
189 | | - Download {selectedPackages.length} Selected |
| 189 | + {t("downloadPrompt", { count: selectedPackages.length })} |
190 | 190 | </button> |
191 | 191 | </div>; |
192 | 192 |
|
|
0 commit comments