mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 16:53:47 +03:00
apply suggestions
This commit is contained in:
parent
653afa7210
commit
1d4547c2c8
9853
package-lock.json
generated
9853
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -122,7 +122,8 @@
|
|||||||
"enable_download_notifications": "Gdy pobieranie zostanie zakończone",
|
"enable_download_notifications": "Gdy pobieranie zostanie zakończone",
|
||||||
"enable_repack_list_notifications": "Gdy dodawany jest nowy repack",
|
"enable_repack_list_notifications": "Gdy dodawany jest nowy repack",
|
||||||
"telemetry": "Telemetria",
|
"telemetry": "Telemetria",
|
||||||
"telemetry_description": "Włącz anonimowe statystyki użycia"
|
"telemetry_description": "Włącz anonimowe statystyki użycia",
|
||||||
|
"language": "Język"
|
||||||
},
|
},
|
||||||
"notifications": {
|
"notifications": {
|
||||||
"download_complete": "Pobieranie zakończone",
|
"download_complete": "Pobieranie zakończone",
|
||||||
|
@ -27,11 +27,11 @@ export function SettingsGeneral({
|
|||||||
language: "",
|
language: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
const [defaultDownloadsPath, setdefaultDownloadsPath] = useState("");
|
const [defaultDownloadsPath, setDefaultDownloadsPath] = useState("");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
async function fetchdefaultDownloadsPath() {
|
async function fetchdefaultDownloadsPath() {
|
||||||
setdefaultDownloadsPath(await window.electron.getDefaultDownloadsPath());
|
setDefaultDownloadsPath(await window.electron.getDefaultDownloadsPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchdefaultDownloadsPath();
|
fetchdefaultDownloadsPath();
|
||||||
@ -107,7 +107,7 @@ export function SettingsGeneral({
|
|||||||
<Select value={form.language} onChange={handleLanguageChange}>
|
<Select value={form.language} onChange={handleLanguageChange}>
|
||||||
{Object.keys(languageResources).map((language) => (
|
{Object.keys(languageResources).map((language) => (
|
||||||
<option key={language} value={language}>
|
<option key={language} value={language}>
|
||||||
{ISO6391.getName(language)}
|
{ISO6391.getNativeName(language)}
|
||||||
</option>
|
</option>
|
||||||
))}
|
))}
|
||||||
</Select>
|
</Select>
|
||||||
|
@ -43,13 +43,15 @@ export function Settings() {
|
|||||||
updateUserPreferences={handleUpdateUserPreferences}
|
updateUserPreferences={handleUpdateUserPreferences}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
default:
|
case "behavior":
|
||||||
return (
|
return (
|
||||||
<SettingsBehavior
|
<SettingsBehavior
|
||||||
userPreferences={userPreferences}
|
userPreferences={userPreferences}
|
||||||
updateUserPreferences={handleUpdateUserPreferences}
|
updateUserPreferences={handleUpdateUserPreferences}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
default:
|
||||||
|
return <></>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user