- Review from blocked user —{" "}
+ {t("review_from_blocked_user")}
@@ -323,7 +315,7 @@ export function ReviewItem({
className="game-details__blocked-review-hide-link"
onClick={() => onToggleVisibility(review.id)}
>
- Hide
+ {t("hide")}
)}
diff --git a/src/renderer/src/pages/settings/settings-download-sources.tsx b/src/renderer/src/pages/settings/settings-download-sources.tsx
index 75f0cc73..675919e3 100644
--- a/src/renderer/src/pages/settings/settings-download-sources.tsx
+++ b/src/renderer/src/pages/settings/settings-download-sources.tsx
@@ -89,7 +89,7 @@ export function SettingsDownloadSources() {
try {
await window.electron.removeDownloadSource(false, downloadSource.id);
const sources = await window.electron.getDownloadSources();
- setDownloadSources(sources as DownloadSource[]);
+ setDownloadSources(sources);
showSuccessToast(t("removed_download_source"));
} catch (error) {
logger.error("Failed to remove download source:", error);
@@ -104,7 +104,7 @@ export function SettingsDownloadSources() {
try {
await window.electron.removeDownloadSource(true);
const sources = await window.electron.getDownloadSources();
- setDownloadSources(sources as DownloadSource[]);
+ setDownloadSources(sources);
showSuccessToast(t("removed_all_download_sources"));
} catch (error) {
logger.error("Failed to remove all download sources:", error);
@@ -117,7 +117,7 @@ export function SettingsDownloadSources() {
const handleAddDownloadSource = async () => {
try {
const sources = await window.electron.getDownloadSources();
- setDownloadSources(sources as DownloadSource[]);
+ setDownloadSources(sources);
} catch (error) {
logger.error("Failed to refresh download sources:", error);
}
@@ -128,7 +128,7 @@ export function SettingsDownloadSources() {
try {
await window.electron.syncDownloadSources();
const sources = await window.electron.getDownloadSources();
- setDownloadSources(sources as DownloadSource[]);
+ setDownloadSources(sources);
showSuccessToast(t("download_sources_synced_successfully"));
} finally {
diff --git a/src/types/index.ts b/src/types/index.ts
index f435bc60..45e319ba 100644
--- a/src/types/index.ts
+++ b/src/types/index.ts
@@ -253,7 +253,7 @@ export interface GameReview {
translations: {
[key: string]: string;
};
- detectedLanguage: string;
+ detectedLanguage: string | null;
}
export interface TrendingGame extends ShopAssets {