mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
Merge pull request #958 from hydralauncher/fix/ensure-i18n-matches-language-in-db
fix: ensure renderer i18n matches db language
This commit is contained in:
commit
8037101a2b
3 changed files with 8 additions and 1 deletions
|
@ -48,6 +48,9 @@ export function Hero() {
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className={styles.content}>
|
<div className={styles.content}>
|
||||||
|
{game.logo && (
|
||||||
|
<img src={game.logo} width="250px" alt={game.description} />
|
||||||
|
)}
|
||||||
<p className={styles.description}>{game.description}</p>
|
<p className={styles.description}>{game.description}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -43,7 +43,10 @@ i18n
|
||||||
})
|
})
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
const userPreferences = await window.electron.getUserPreferences();
|
const userPreferences = await window.electron.getUserPreferences();
|
||||||
if (!userPreferences?.language) {
|
|
||||||
|
if (userPreferences?.language) {
|
||||||
|
i18n.changeLanguage(userPreferences.language);
|
||||||
|
} else {
|
||||||
window.electron.updateUserPreferences({ language: i18n.language });
|
window.electron.updateUserPreferences({ language: i18n.language });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -232,6 +232,7 @@ export interface TrendingGame {
|
||||||
uri: string;
|
uri: string;
|
||||||
description: string;
|
description: string;
|
||||||
background: string;
|
background: string;
|
||||||
|
logo: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export * from "./steam.types";
|
export * from "./steam.types";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue