add missing translations

This commit is contained in:
Zagrios
2025-02-23 16:42:16 +01:00
parent e7b3ca4fdf
commit 2637726f5a
14 changed files with 59 additions and 4 deletions
+4
View File
@@ -153,6 +153,10 @@
"uninstall-all": "Alle deinstallieren",
"unselect-all": "Alle abwählen"
}
},
"mod-item": {
"this-is-a-large-mod": "Das ist ein großer Mod!",
"this-is-a-very-large-mod": "Das ist ein sehr großer Mod!"
}
},
"notifications": {
+4
View File
@@ -153,6 +153,10 @@
"uninstall-all": "Uninstall all",
"unselect-all": "Unselect all"
}
},
"mod-item":{
"this-is-a-large-mod": "This is a large mod!",
"this-is-a-very-large-mod": "This is a very large mod!"
}
},
"notifications": {
+4
View File
@@ -153,6 +153,10 @@
"uninstall-all": "Desinstalar todos",
"unselect-all": "Deseleccionar todo"
}
},
"mod-item": {
"this-is-a-large-mod": "¡Este es un mod grande!",
"this-is-a-very-large-mod": "¡Este es un mod muy grande!"
}
},
"notifications": {
+4
View File
@@ -153,6 +153,10 @@
"uninstall-all": "Tout désinstaller",
"unselect-all": "Tout désélectionner"
}
},
"mod-item": {
"this-is-a-large-mod": "C'est un mod volumineux !",
"this-is-a-very-large-mod": "C'est un mod très volumineux !"
}
},
"notifications": {
+4
View File
@@ -153,6 +153,10 @@
"uninstall-all": "Disinstalla tutto",
"unselect-all": "Deseleziona tutto"
}
},
"mod-item": {
"this-is-a-large-mod": "Questo è un mod grande!",
"this-is-a-very-large-mod": "Questo è un mod molto grande!"
}
},
"notifications": {
+4
View File
@@ -153,6 +153,10 @@
"uninstall-all": "全てアンインストールする",
"unselect-all": "すべて選択解除"
}
},
"mod-item": {
"this-is-a-large-mod": "これは大きなModです!",
"this-is-a-very-large-mod": "これは非常に大きなModです!"
}
},
"notifications": {
+4
View File
@@ -153,6 +153,10 @@
"uninstall-all": "모두 제거",
"unselect-all": "모두 선택 해제"
}
},
"mod-item": {
"this-is-a-large-mod": "이것은 큰 모드입니다!",
"this-is-a-very-large-mod": "이것은 매우 큰 모드입니다!"
}
},
"notifications": {
+4
View File
@@ -153,6 +153,10 @@
"uninstall-all": "Desinstalar todos",
"unselect-all": "Desmarcar todos"
}
},
"mod-item": {
"this-is-a-large-mod": "Este é um mod grande!",
"this-is-a-very-large-mod": "Este é um mod muito grande!"
}
},
"notifications": {
+4
View File
@@ -153,6 +153,10 @@
"uninstall-all": "Удалить всё",
"unselect-all": "Снять все выделения"
}
},
"mod-item": {
"this-is-a-large-mod": "Это большой мод!",
"this-is-a-very-large-mod": "Это очень большой мод!"
}
},
"notifications": {
+4
View File
@@ -153,6 +153,10 @@
"uninstall-all": "I-uninstall ang lahat",
"unselect-all": "I-unselect and lahat"
}
},
"mod-item": {
"this-is-a-large-mod": "Ito ay isang malaking mod!",
"this-is-a-very-large-mod": "Ito ay isang napakalaking mod!"
}
},
"notifications": {
+4
View File
@@ -153,6 +153,10 @@
"uninstall-all": "Видалити всі",
"unselect-all": "Зняти виділення з всіх"
}
},
"mod-item": {
"this-is-a-large-mod": "Це великий мод!",
"this-is-a-very-large-mod": "Це дуже великий мод!"
}
},
"notifications": {
+4
View File
@@ -153,6 +153,10 @@
"uninstall-all": "全部移除",
"unselect-all": "取消全選"
}
},
"mod-item": {
"this-is-a-large-mod": "這是一個大型Mod",
"this-is-a-very-large-mod": "這是一個非常大型的Mod"
}
},
"notifications": {
+4
View File
@@ -153,6 +153,10 @@
"uninstall-all": "全部卸载",
"unselect-all": "取消全选"
}
},
"mod-item": {
"this-is-a-large-mod": "这是一个大型Mod",
"this-is-a-very-large-mod": "这是一个非常大型的Mod"
}
},
"notifications": {
@@ -8,6 +8,7 @@ import { useOnUpdate } from "renderer/hooks/use-on-update.hook";
import striptags from "striptags";
import { safeGt } from "shared/helpers/semver.helpers";
import Tippy from "@tippyjs/react";
import { useTranslationV2 } from "renderer/hooks/use-translation.hook";
type Props = {
className?: string;
@@ -29,6 +30,8 @@ type FileSizeProps = {
function FileSizeText({ fileSize, wantInfoStyle }: Readonly<FileSizeProps>) {
const { text: t } = useTranslationV2();
const verifyFileSize = fileSize !== undefined;
const isMediumMod = verifyFileSize && fileSize > 1024 * 1024 * 50; // 50MB
@@ -45,9 +48,9 @@ function FileSizeText({ fileSize, wantInfoStyle }: Readonly<FileSizeProps>) {
const getWarningText = () : string => {
if (isLargeMod)
return `This is a very large mod!`;
return `pages.version-viewer.mods.mods-grid.mod-item.this-is-a-very-large-mod`;
if (isMediumMod)
return `This is a large mod!`;
return `pages.version-viewer.mods.mods-grid.mod-item.this-is-a-large-mod`;
return "";
};
@@ -70,10 +73,10 @@ function FileSizeText({ fileSize, wantInfoStyle }: Readonly<FileSizeProps>) {
return (
<Tippy
content={getWarningText()}
content={t(getWarningText())}
placement="left"
theme={getTheme()}
className={`${isLargeMod || isMediumMod ? "" : "opacity-0"}`}
disabled={!(isLargeMod || isMediumMod)}
delay={[50, 0]} >
<span className={`min-w-0 text-center bg-inherit py-2 px-1 text-sm border-t-2 border-b-2 group-hover:brightness-90 ${getTextColor()}`} style={wantInfoStyle}>
{getFormattedSize()}