Translations

This commit is contained in:
Zagrios
2025-02-25 15:48:14 +01:00
parent abfd0cf4dd
commit 7a86016e8e
15 changed files with 124 additions and 55 deletions
@@ -15,7 +15,7 @@ import { NotificationService } from "renderer/services/notification.service";
export const LoginToMetaModal: ModalComponent<string> = ({ resolver }) => {
const { text: t } = useTranslationV2();
const { text: t, element: te } = useTranslationV2();
const ipc = useService(IpcService);
const modal = useService(ModalService);
@@ -60,7 +60,11 @@ export const LoginToMetaModal: ModalComponent<string> = ({ resolver }) => {
<p className="font-bold">{t("modals.connect-to-meta.body.token-needed")}</p>
<p>{t("modals.connect-to-meta.body.need-cookie-enabled")}</p>
<p className="text-warning-400">You must own the desktop version of Beat Saber. If you bought it on the standalone store, follow <a className="underline cursor-pointer" href="https://github.com/Zagrios/bs-manager/wiki/how-to-claim-oculus-desktop-version" target="_blank">this guide</a> to claim it.</p>
<p className="text-warning-400">{(
te("modals.connect-to-meta.body.must-own-desktop-version", {link: (
<a className="underline cursor-pointer" href="https://github.com/Zagrios/bs-manager/wiki/how-to-claim-oculus-desktop-version" target="_blank">{t("misc.this-guide")}</a>
)})
)}</p>
<div className="w-full flex flex-row justify-start items-center gap-1.5">
<BsmCheckbox className="relative z-[1] w-6 aspect-square" checked={stay} onChange={enable => setStay(() => enable)}/>
@@ -49,8 +49,8 @@ export class OculusDownloaderService extends AbstractBsDownloaderService impleme
}
const notificationData: Notification = {title: "notifications.types.error", desc: `notifications.bs-download.oculus-download.errors.msg.${err.code}`, duration: 9000};
if(err.code === OculusDownloaderErrorCodes.DOWNLOAD_MANIFEST_FAILED){
notificationData.actions = [{ id: "0", title: "Claim your desktop version" }]
if(err.code === OculusDownloaderErrorCodes.DOWNLOAD_MANIFEST_FAILED || err.code === OculusDownloaderErrorCodes.UNABLE_TO_GET_MANIFEST){
notificationData.actions = [{ id: "0", title: "notifications.bs-download.oculus-download.errors.actions.claim-your-desktop-version" }]
return this.notifications.notifyError(notificationData).then(action => (
action === "0" && this.linkOpener.open("https://github.com/Zagrios/bs-manager/wiki/how-to-claim-oculus-desktop-version")
));