Skip to content

🆙 Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.

Add translation for model selection

Nayam Amarshedd0583c93b9e
diff --git a/common/models-list.ts b/common/models-list.ts
index 1cd4c73..2eb8b59 100644
--- a/common/models-list.ts
+++ b/common/models-list.ts
@@ -1,35 +1,21 @@
export const MODELS = {
"upscayl-standard-4x": {
id: "upscayl-standard-4x",
- name: "Upscayl Standard",
- description: "Suitable for most images.",
},
"upscayl-lite-4x": {
id: "upscayl-lite-4x",
- name: "Upscayl Lite",
- description:
- "Suitable for most images. High-speed upscaling with minimal quality loss.",
},
"remacri-4x": {
id: "remacri-4x",
- name: "Remacri (Non-Commercial)",
- description:
- "For natural images. Added sharpness and detail. No commercial use.",
},
"ultramix-balanced-4x": {
id: "ultramix-balanced-4x",
- name: "Ultramix (Non-Commercial)",
- description: "For natural images with a balance of sharpness and detail.",
},
"ultrasharp-4x": {
id: "ultrasharp-4x",
- name: "Ultrasharp (Non-Commercial)",
- description: "For natural images with a focus on sharpness.",
},
"digital-art-4x": {
id: "digital-art-4x",
- name: "Digital Art",
- description: "For digital art and illustrations.",
},
};
diff --git a/package-lock.json b/package-lock.json
index f53f1ca..fe55d4a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "upscayl",
- "version": "2.15.0",
+ "version": "2.10.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "upscayl",
- "version": "2.15.0",
+ "version": "2.10.0",
"license": "AGPL-3.0",
"dependencies": {
"@radix-ui/react-dialog": "^1.0.5",
@@ -28,6 +28,7 @@
"gray-matter": "^4.0.3",
"jotai": "^2.2.2",
"lucide-react": "^0.366.0",
+ "posthog-js": "^1.200.1",
"react-compare-slider": "^3.0.1",
"react-markdown": "^9.0.1",
"react-resizable-panels": "^2.0.16",
@@ -4102,6 +4103,17 @@
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",
"integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A=="
},
+ "node_modules/core-js": {
+ "version": "3.39.0",
+ "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.39.0.tgz",
+ "integrity": "sha512-raM0ew0/jJUqkJ0E6e8UDtl+y/7ktFivgWvqw8dNSQeNWoSDLvQ1H/RN3aPXB9tBd4/FhyR4RDPGhsNIMsAn7g==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/core-js"
+ }
+ },
"node_modules/core-util-is": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
@@ -5731,6 +5743,12 @@
"pend": "~1.2.0"
}
},
+ "node_modules/fflate": {
+ "version": "0.4.8",
+ "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.4.8.tgz",
+ "integrity": "sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA==",
+ "license": "MIT"
+ },
"node_modules/file-entry-cache": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
@@ -9139,6 +9157,28 @@
"resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="
},
+ "node_modules/posthog-js": {
+ "version": "1.200.1",
+ "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.200.1.tgz",
+ "integrity": "sha512-Ktm2Fa6La67imiZXNwXvFnhkoFae3KhGvjI2TUnElxWF3Sr5mvi5/IMT2fLc5pns89cKsCr+n52Q5E6OxpqBxw==",
+ "license": "MIT",
+ "dependencies": {
+ "core-js": "^3.38.1",
+ "fflate": "^0.4.8",
+ "preact": "^10.19.3",
+ "web-vitals": "^4.2.0"
+ }
+ },
+ "node_modules/preact": {
+ "version": "10.25.2",
+ "resolved": "https://registry.npmjs.org/preact/-/preact-10.25.2.tgz",
+ "integrity": "sha512-GEts1EH3oMnqdOIeXhlbBSddZ9nrINd070WBOiPO2ous1orrKGUM4SMDbwyjSWD1iMS2dBvaDjAa5qUhz3TXqw==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/preact"
+ }
+ },
"node_modules/prelude-ls": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
@@ -11170,6 +11210,12 @@
"url": "https://opencollective.com/unified"
}
},
+ "node_modules/web-vitals": {
+ "version": "4.2.4",
+ "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-4.2.4.tgz",
+ "integrity": "sha512-r4DIlprAGwJ7YM11VZp4R884m0Vmgr6EAKe3P+kO0PPj3Unqyvv59rczf6UiGcb9Z8QxZVcqKNwv/g0WNdWwsw==",
+ "license": "Apache-2.0"
+ },
"node_modules/websocket-driver": {
"version": "0.7.4",
"resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz",
diff --git a/package.json b/package.json
index 8718e6d..3fe022b 100644
--- a/package.json
+++ b/package.json
@@ -244,6 +244,7 @@
"gray-matter": "^4.0.3",
"jotai": "^2.2.2",
"lucide-react": "^0.366.0",
+ "posthog-js": "^1.200.1",
"react-compare-slider": "^3.0.1",
"react-markdown": "^9.0.1",
"react-resizable-panels": "^2.0.16",
diff --git a/renderer/components/main-content/onboarding-dialog.tsx b/renderer/components/main-content/onboarding-dialog.tsx
index daae9a0..aed3df2 100644
--- a/renderer/components/main-content/onboarding-dialog.tsx
+++ b/renderer/components/main-content/onboarding-dialog.tsx
@@ -1,4 +1,4 @@
-import { useEffect, useState } from "react";
+import { useEffect, useMemo, useState } from "react";
import {
Dialog,
DialogContent,
@@ -14,6 +14,7 @@ import {
enableContributionAtom,
} from "@/atoms/user-settings-atom";
import { useAtom } from "jotai";
+import useTranslation from "../hooks/use-translation";
type OnboardingStep = {
title: string;
@@ -29,60 +30,65 @@ type OnboardingStep = {
}[];
};
-const onboardingSteps: OnboardingStep[] = [
- {
- title: "Welcome to Upscayl 🎉",
- description: "Let's get you started with a few quick steps.",
- type: "info",
- },
- {
- title: "Choose Your Preferences 🎨",
- description: "Configure your initial settings.",
- type: "settings",
- configurationOptions: [
+export function OnboardingDialog() {
+ const t = useTranslation();
+
+ const [currentStep, setCurrentStep] = useState(0);
+ const [settings, setSettings] = useState<Record<string, any>>({});
+
+ const [open, setOpen] = useState(false);
+
+ const onboardingSteps: OnboardingStep[] = useMemo(
+ () => [
{
- type: "switch",
- label: "Enable automatic updates",
- key: "autoUpdate",
+ title: t("ONBOARDING_DIALOG.STEP_1.TITLE"),
+ description: t("ONBOARDING_DIALOG.STEP_1.DESCRIPTION"),
+ type: "info",
},
{
- type: "switch",
- label: "Help Improve Upscayl",
- description: "Send anonymous usage data to help improve Upscayl.",
- key: "improveUpscayl",
+ title: t("ONBOARDING_DIALOG.STEP_2.TITLE"),
+ description: t("ONBOARDING_DIALOG.STEP_2.DESCRIPTION"),
+ type: "settings",
+ configurationOptions: [
+ {
+ type: "switch",
+ label: t("SETTINGS.AUTO_UPDATE.TITLE"),
+ key: "autoUpdate",
+ },
+ {
+ type: "switch",
+ label: t("SETTINGS.ENABLE_CONTRIBUTION.TITLE"),
+ description: t("SETTINGS.ENABLE_CONTRIBUTION.DESCRIPTION"),
+ key: "improveUpscayl",
+ },
+ {
+ type: "component",
+ label: t("SETTINGS.THEME.TITLE"),
+ component: <SelectTheme hideLabel={true} />,
+ key: "theme",
+ },
+ ],
},
{
- type: "component",
- label: "Theme",
- component: <SelectTheme hideLabel={true} />,
- key: "theme",
+ type: "info",
+ title: t("ONBOARDING_DIALOG.STEP_3.TITLE"),
+ description: t("ONBOARDING_DIALOG.STEP_3.DESCRIPTION"),
+ configurationOptions: [
+ {
+ key: "video",
+ type: "video",
+ videoSrc: "https://www.youtube-nocookie.com/embed/3M77flVZlVY",
+ },
+ ],
},
- ],
- },
- {
- title: "How do I use Upscayl? 🚀",
- type: "info",
- description: "Watch this short video to learn about the new features.",
- configurationOptions: [
{
- key: "video",
- type: "video",
- videoSrc: "https://www.youtube-nocookie.com/embed/3M77flVZlVY",
+ title: t("ONBOARDING_DIALOG.STEP_4.TITLE"),
+ description: t("ONBOARDING_DIALOG.STEP_4.DESCRIPTION"),
+ type: "info",
},
],
- },
- {
- title: "You're All Set! 🎉",
- description: "You can now start upscaling your images.",
- type: "info",
- },
-];
-
-export function OnboardingDialog() {
- const [currentStep, setCurrentStep] = useState(0);
- const [settings, setSettings] = useState<Record<string, any>>({});
-
- const [open, setOpen] = useState(false);
+ [],
+ );
const currentStepData = onboardingSteps[currentStep];
const isLastStep = currentStep === onboardingSteps.length - 1;
@@ -146,7 +152,7 @@ export function OnboardingDialog() {
{option.label && (
<label
htmlFor={option.key}
- className="text-balance text-left text-sm uppercase text-primary-content"
+ className="text-nowrap text-left text-sm uppercase text-primary-content"
>
{option.label}
</label>
@@ -201,14 +207,16 @@ export function OnboardingDialog() {
<DialogFooter className="gap-2 md:gap-0">
<button onClick={handleNext} className="btn btn-secondary w-40">
- {isLastStep ? "Get Started" : "Next"}
+ {isLastStep
+ ? t("ONBOARDING_DIALOG.GET_STARTED_BUTTON_TITLE")
+ : t("ONBOARDING_DIALOG.NEXT_BUTTON_TITLE")}
</button>
{!isFirstStep && (
<button
onClick={() => setCurrentStep((prev) => prev - 1)}
className="btn btn-primary w-40"
>
- Back
+ {t("ONBOARDING_DIALOG.BACK_BUTTON_TITLE")}
</button>
)}
</DialogFooter>
diff --git a/renderer/components/sidebar/settings-tab/auto-update-toggle.tsx b/renderer/components/sidebar/settings-tab/auto-update-toggle.tsx
new file mode 100644
index 0000000..fef193a
--- /dev/null
+++ b/renderer/components/sidebar/settings-tab/auto-update-toggle.tsx
@@ -0,0 +1,27 @@
+import { translationAtom } from "@/atoms/translations-atom";
+import { autoUpdateAtom } from "@/atoms/user-settings-atom";
+import { useAtom, useAtomValue } from "jotai";
+
+const AutoUpdateToggle = () => {
+ const [autoUpdate, setAutoUpdate] = useAtom(autoUpdateAtom);
+ const t = useAtomValue(translationAtom);
+
+ return (
+ <div className="flex flex-col gap-2">
+ <p className="text-sm font-medium">{t("SETTINGS.AUTO_UPDATE.TITLE")}</p>
+ <p className="text-xs text-base-content/80">
+ {t("SETTINGS.AUTO_UPDATE.DESCRIPTION")}
+ </p>
+ <input
+ type="checkbox"
+ className="toggle"
+ checked={autoUpdate}
+ onClick={() => {
+ setAutoUpdate((prev) => !prev);
+ }}
+ />
+ </div>
+ );
+};
+
+export default AutoUpdateToggle;
diff --git a/renderer/components/sidebar/settings-tab/enable-contributions-toggle.tsx b/renderer/components/sidebar/settings-tab/enable-contributions-toggle.tsx
new file mode 100644
index 0000000..9dd951d
--- /dev/null
+++ b/renderer/components/sidebar/settings-tab/enable-contributions-toggle.tsx
@@ -0,0 +1,31 @@
+import { translationAtom } from "@/atoms/translations-atom";
+import { enableContributionAtom } from "@/atoms/user-settings-atom";
+import { useAtom, useAtomValue } from "jotai";
+
+const AutoUpdateToggle = () => {
+ const [enableContribution, setEnableContribution] = useAtom(
+ enableContributionAtom,
+ );
+ const t = useAtomValue(translationAtom);
+
+ return (
+ <div className="flex flex-col gap-2">
+ <p className="text-sm font-medium">
+ {t("SETTINGS.ENABLE_CONTRIBUTION.TITLE")}
+ </p>
+ <p className="text-xs text-base-content/80">
+ {t("SETTINGS.ENABLE_CONTRIBUTION.DESCRIPTION")}
+ </p>
+ <input
+ type="checkbox"
+ className="toggle"
+ checked={enableContribution}
+ onClick={() => {
+ setEnableContribution((prev) => !prev);
+ }}
+ />
+ </div>
+ );
+};
+
+export default AutoUpdateToggle;
diff --git a/renderer/components/sidebar/upscayl-tab/select-model-dialog.tsx b/renderer/components/sidebar/upscayl-tab/select-model-dialog.tsx
index a146e2b..11b4314 100644
--- a/renderer/components/sidebar/upscayl-tab/select-model-dialog.tsx
+++ b/renderer/components/sidebar/upscayl-tab/select-model-dialog.tsx
@@ -41,7 +41,9 @@ const SelectModelDialog = () => {
<DialogTrigger asChild>
<button className="btn btn-primary justify-start border-border">
<SwatchBookIcon className="mr-2 h-5 w-5" />
- {MODELS[selectedModelId]?.name || selectedModelId}
+ {t(
+ `APP.MODEL_SELECTION.MODELS.${MODELS[selectedModelId].id || selectedModelId}.NAME` as any,
+ ) || selectedModelId}
</button>
</DialogTrigger>
<DialogContent className="z-50 sm:max-w-lg">
@@ -59,20 +61,22 @@ const SelectModelDialog = () => {
className="btn !h-auto !w-full !flex-col !items-start !rounded-sm !p-4"
onClick={() => handleModelSelect(modelId)}
>
- <div className="font-semibold">{model.name}</div>
+ <div className="font-semibold">
+ {t(`APP.MODEL_SELECTION.MODELS.${modelId}.NAME`)}
+ </div>
<div className="mb-2 text-left font-normal leading-normal text-opacity-50">
- {model.description}
+ {t(`APP.MODEL_SELECTION.MODELS.${modelId}.DESCRIPTION`)}
</div>
<div className="relative h-52 w-full overflow-hidden rounded-sm">
<div className="flex h-full w-full">
<img
src={`/model-comparison/${model.id}/before.webp`}
- alt={`${model.name} Before`}
+ alt={`Model Before`}
className="h-full w-1/2 object-cover"
/>
<img
src={`/model-comparison/${model.id}/after.webp`}
- alt={`${model.name} After`}
+ alt={`Model After`}
className="h-full w-1/2 object-cover"
/>
</div>
@@ -80,10 +84,10 @@ const SelectModelDialog = () => {
<div className="h-full w-px bg-white opacity-50"></div>
</div>
<div className="absolute bottom-2 left-2 rounded bg-black bg-opacity-50 px-1 text-xs text-white">
- Before
+ {t("APP.MODEL_SELECTION.BEFORE")}
</div>
<div className="absolute bottom-2 right-2 rounded bg-black bg-opacity-50 px-1 text-xs text-white">
- After
+ {t("APP.MODEL_SELECTION.AFTER")}
</div>
<Button
variant="secondary"
@@ -92,14 +96,16 @@ const SelectModelDialog = () => {
onClick={(e) => handleZoom(e, modelId)}
>
<Maximize2 className="h-4 w-4" />
- <span className="sr-only">Zoom</span>
+ <span className="sr-only">
+ {t("APP.MODEL_SELECTION.ZOOM")}
+ </span>
</Button>
</div>
</button>
);
})}
<p className="font-semibold text-base-content">
- Imported Custom Models
+ {t("APP.MODEL_SELECTION.IMPORTED_CUSTOM_MODELS")}
</p>
{customModelIds.map((customModel) => {
return (
@@ -130,7 +136,7 @@ const SelectModelDialog = () => {
<div className="relative h-full w-1/2">
<img
src={`/model-comparison/${MODELS[zoomedModel]?.id}/before.webp`}
- alt={`${MODELS[zoomedModel]?.name} Before`}
+ alt={`Zoomed in Image - Before`}
className="h-full w-full object-contain"
/>
<div className="absolute bottom-4 left-4 rounded bg-black bg-opacity-50 px-2 py-1 text-sm text-white">
@@ -140,7 +146,7 @@ const SelectModelDialog = () => {
<div className="relative h-full w-1/2">
<img
src={`/model-comparison/${MODELS[zoomedModel]?.id}/after.webp`}
- alt={`${MODELS[zoomedModel]?.name} After`}
+ alt={`Zoomed in Image - After`}
className="h-full w-full object-contain"
/>
<div className="absolute bottom-4 right-4 rounded bg-black bg-opacity-50 px-2 py-1 text-sm text-white">
diff --git a/renderer/locales/en.json b/renderer/locales/en.json
index 5c3ab83..7ea9433 100644
--- a/renderer/locales/en.json
+++ b/renderer/locales/en.json
@@ -67,6 +67,14 @@
"TITLE": "SAVE OUTPUT FOLDER",
"DESCRIPTION": "If enabled, the output folder will be remembered between sessions."
},
+ "AUTO_UPDATE": {
+ "TITLE": "AUTO UPDATE UPSCAYL",
+ "DESCRIPTION": "If enabled, the application will check for new updates and notify you."
+ },
+ "ENABLE_CONTRIBUTION": {
+ "TITLE": "HELP IMPROVE UPSCAYL",
+ "DESCRIPTION": "If enabled, Upscayl will collect anonymous usage data to improve the application interface and features."
+ },
"THEME": {
"TITLE": "UPSCAYL THEME"
},
@@ -101,13 +109,35 @@
"MODEL_SELECTION": {
"TITLE": "Step 2",
"DESCRIPTION": "Select AI Model",
+ "IMPORTED_CUSTOM_MODELS": "Imported Custom Models",
+ "BEFORE": "Before",
+ "AFTER": "After",
+ "ZOOM": "Zoom",
"MODELS": {
- "upscayl-standard-4x": "General Photo (Real-ESRGAN)",
- "x4fast": "General Photo (Fast Real-ESRGAN)",
- "remacri": "General Photo (Remacri)",
- "ultramix": "General Photo (Ultramix Balanced)",
- "ultrasharp": "General Photo (Ultrasharp)",
- "anime": "Digital Art"
+ "upscayl-standard-4x": {
+ "NAME": "Upscayl Standard",
+ "DESCRIPTION": "Suitable for most images."
+ },
+ "upscayl-lite-4x": {
+ "NAME": "Upscayl Lite",
+ "DESCRIPTION": "Suitable for most images. High-speed upscaling with minimal quality loss."
+ },
+ "remacri-4x": {
+ "NAME": "Remacri (Non-Commercial)",
+ "DESCRIPTION": "For natural images. Added sharpness and detail. No commercial use."
+ },
+ "ultramix-balanced-4x": {
+ "NAME": "Ultramix (Non-Commercial)",
+ "DESCRIPTION": "For natural images with a balance of sharpness and detail."
+ },
+ "ultrasharp-4x": {
+ "NAME": "Ultrasharp (Non-Commercial)",
+ "DESCRIPTION": "For natural images with a focus on sharpness."
+ },
+ "digital-art-4x": {
+ "NAME": "Digital Art",
+ "DESCRIPTION": "For digital art and illustrations."
+ }
}
},
"DOUBLE_UPSCAYL": {
@@ -219,5 +249,26 @@
"INCORRECT_FIELDS_ALERT": "Please fill in all the fields correctly.",
"JOIN_WAITLIST": "Join the waitlist",
"DONT_SHOW_AGAIN": "DON'T SHOW AGAIN"
+ },
+ "ONBOARDING_DIALOG": {
+ "NEXT_BUTTON_TITLE": "Next",
+ "BACK_BUTTON_TITLE": "Back",
+ "GET_STARTED_BUTTON_TITLE": "Get Started",
+ "STEP_1": {
+ "TITLE": "Welcome to Upscayl 🎉",
+ "DESCRIPTION": "Let's get you started with a few quick steps."
+ },
+ "STEP_2": {
+ "TITLE": "Choose Your Preferences 🎨",
+ "DESCRIPTION": "Configure your initial settings."
+ },
+ "STEP_3": {
+ "TITLE": "How do I use Upscayl? 🚀",
+ "DESCRIPTION": "Watch this short video to learn about the new features."
+ },
+ "STEP_4": {
+ "TITLE": "You're All Set! 🎉",
+ "DESCRIPTION": "You're ready to start upscaling images with Upscayl!"
+ }
}
}
diff --git a/renderer/locales/es.json b/renderer/locales/es.json
index 18381d5..d9bb3da 100644
--- a/renderer/locales/es.json
+++ b/renderer/locales/es.json
@@ -67,6 +67,14 @@
"TITLE": "GUARDAR CARPETA DE SALIDA",
"DESCRIPTION": "Si está habilitado, la carpeta de salida se recordará entre sesiones."
},
+ "AUTO_UPDATE": {
+ "TITLE": "ACTUALIZACIÓN AUTOMÁTICA DE UPSCAYL",
+ "DESCRIPTION": "Si está habilitado, la aplicación buscará nuevas actualizaciones y te notificará."
+ },
+ "ENABLE_CONTRIBUTION": {
+ "TITLE": "AYUDA A MEJORAR UPSCAYL",
+ "DESCRIPTION": "Si está habilitado, Upscayl recopilará datos de uso anónimos para mejorar la interfaz y las características de la aplicación."
+ },
"THEME": {
"TITLE": "TEMA DE UPSCAYL"
},
@@ -100,14 +108,37 @@
},
"MODEL_SELECTION": {
"TITLE": "Paso 2",
- "DESCRIPTION": "Seleccionar modelo",
+ "DESCRIPTION": "Seleccionar modelo de IA",
+ "IMPORTED_CUSTOM_MODELS": "Modelos personalizados importados",
+ "BEFORE": "Antes",
+ "AFTER": "Después",
+ "ZOOM": "Zoom",
"MODELS": {
- "upscayl-standard-4x": "Foto General (Real-ESRGAN)",
- "x4fast": "Foto General (Fast Real-ESRGAN)",
- "remacri": "Foto General (Remacri)",
- "ultramix": "Foto General (Ultramix Balanced)",
- "ultrasharp": "Foto General (Ultrasharp)",
- "anime": "Arte Digital"
+ "upscayl-standard-4x": {
+ "NAME": "Upscayl Estándar",
+ "DESCRIPTION": "Adecuado para la mayoría de las imágenes."
+ },
+ "upscayl-lite-4x": {
+ "NAME": "Upscayl Lite",
+ "DESCRIPTION": "Adecuado para la mayoría de las imágenes. Aumento de velocidad alta con mínima pérdida de calidad."
+ },
+ "remacri-4x": {
+ "id": "remacri-4x",
+ "NAME": "Remacri (No Comercial)",
+ "DESCRIPTION": "Para imágenes naturales. Añade nitidez y detalle. No uso comercial."
+ },
+ "ultramix-balanced-4x": {
+ "NAME": "Ultramix (No Comercial)",
+ "DESCRIPTION": "Para imágenes naturales con un equilibrio de nitidez y detalle."
+ },
+ "ultrasharp-4x": {
+ "NAME": "Ultranítido (No Comercial)",
+ "DESCRIPTION": "Para imágenes naturales con un enfoque en la nitidez."
+ },
+ "digital-art-4x": {
+ "NAME": "Arte Digital",
+ "DESCRIPTION": "Para arte digital e ilustraciones."
+ }
}
},
"DOUBLE_UPSCAYL": {
@@ -219,5 +250,26 @@
"INCORRECT_FIELDS_ALERT": "Por favor, completa todos los campos correctamente.",
"JOIN_WAITLIST": "Únete a la lista de espera",
"DONT_SHOW_AGAIN": "NO MOSTRAR DE NUEVO"
+ },
+ "ONBOARDING_DIALOG": {
+ "NEXT_BUTTON_TITLE": "Siguiente",
+ "BACK_BUTTON_TITLE": "Atrás",
+ "GET_STARTED_BUTTON_TITLE": "Comenzar",
+ "STEP_1": {
+ "TITLE": "Bienvenido a Upscayl 🎉",
+ "DESCRIPTION": "Vamos a empezar con unos pocos pasos rápidos."
+ },
+ "STEP_2": {
+ "TITLE": "Elige tus preferencias 🎨",
+ "DESCRIPTION": "Configura tus ajustes iniciales."
+ },
+ "STEP_3": {
+ "TITLE": "¿Cómo uso Upscayl? 🚀",
+ "DESCRIPTION": "Mira este breve video para aprender sobre las nuevas características."
+ },
+ "STEP_4": {
+ "TITLE": "¡Todo listo! 🎉",
+ "DESCRIPTION": "¡Estás listo para empezar a aumentar imágenes con Upscayl!"
+ }
}
}
diff --git a/renderer/locales/fr.json b/renderer/locales/fr.json
index ff3d1a1..18fe420 100644
--- a/renderer/locales/fr.json
+++ b/renderer/locales/fr.json
@@ -67,6 +67,14 @@
"TITLE": "ENREGISTRER LE DOSSIER DE SORTIE",
"DESCRIPTION": "Si activé, le dossier de sortie sera mémorisé entre les sessions."
},
+ "AUTO_UPDATE": {
+ "TITLE": "MISE À JOUR AUTOMATIQUE UPSCAYL",
+ "DESCRIPTION": "Si activé, l'application vérifiera les nouvelles mises à jour et vous en informera."
+ },
+ "ENABLE_CONTRIBUTION": {
+ "TITLE": "AIDER À AMÉLIORER UPSCAYL",
+ "DESCRIPTION": "Si activé, Upscayl collectera des données d'utilisation anonymes pour améliorer l'interface et les fonctionnalités de l'application."
+ },
"THEME": {
"TITLE": "THÈME UPSCAYL"
},
@@ -100,14 +108,36 @@
},
"MODEL_SELECTION": {
"TITLE": "Étape 2",
- "DESCRIPTION": "Sélectionner un modèle",
+ "DESCRIPTION": "Sélectionner le modèle AI",
+ "IMPORTED_CUSTOM_MODELS": "Modèles personnalisés importés",
+ "BEFORE": "Avant",
+ "AFTER": "Après",
+ "ZOOM": "Zoom",
"MODELS": {
- "upscayl-standard-4x": "Photo Générale (Real-ESRGAN)",
- "x4fast": "Photo Générale (Fast Real-ESRGAN)",
- "remacri": "Photo Générale (Remacri)",
- "ultramix": "Photo Générale (Ultramix Balanced)",
- "ultrasharp": "Photo Générale (Ultrasharp)",
- "anime": "Art Numérique"
+ "upscayl-standard-4x": {
+ "NAME": "Upscayl Standard",
+ "DESCRIPTION": "Convient à la plupart des images."
+ },
+ "upscayl-lite-4x": {
+ "NAME": "Upscayl Lite",
+ "DESCRIPTION": "Convient à la plupart des images. Suréchantillonnage rapide avec une perte de qualité minimale."
+ },
+ "remacri-4x": {
+ "NAME": "Remacri (Non-Commercial)",
+ "DESCRIPTION": "Pour les images naturelles. Ajoute de la netteté et des détails. Pas d'utilisation commerciale."
+ },
+ "ultramix-balanced-4x": {
+ "NAME": "Ultramix (Non-Commercial)",
+ "DESCRIPTION": "Pour les images naturelles avec un équilibre de netteté et de détails."
+ },
+ "ultrasharp-4x": {
+ "NAME": "Ultrasharp (Non-Commercial)",
+ "DESCRIPTION": "Pour les images naturelles avec un accent sur la netteté."
+ },
+ "digital-art-4x": {
+ "NAME": "Art numérique",
+ "DESCRIPTION": "Pour l'art numérique et les illustrations."
+ }
}
},
"DOUBLE_UPSCAYL": {
@@ -219,5 +249,26 @@
"INCORRECT_FIELDS_ALERT": "Veuillez remplir correctement tous les champs.",
"JOIN_WAITLIST": "Rejoindre la liste d'attente",
"DONT_SHOW_AGAIN": "NE PLUS AFFICHER"
+ },
+ "ONBOARDING_DIALOG": {
+ "NEXT_BUTTON_TITLE": "Suivant",
+ "BACK_BUTTON_TITLE": "Retour",
+ "GET_STARTED_BUTTON_TITLE": "Commencer",
+ "STEP_1": {
+ "TITLE": "Bienvenue sur Upscayl 🎉",
+ "DESCRIPTION": "Commençons par quelques étapes rapides."
+ },
+ "STEP_2": {
+ "TITLE": "Choisissez vos préférences 🎨",
+ "DESCRIPTION": "Configurez vos paramètres initiaux."
+ },
+ "STEP_3": {
+ "TITLE": "Comment utiliser Upscayl ? 🚀",
+ "DESCRIPTION": "Regardez cette courte vidéo pour découvrir les nouvelles fonctionnalités."
+ },
+ "STEP_4": {
+ "TITLE": "Vous êtes prêt ! 🎉",
+ "DESCRIPTION": "Vous êtes prêt à commencer à suréchantillonner des images avec Upscayl !"
+ }
}
}
diff --git a/renderer/locales/ja.json b/renderer/locales/ja.json
index 68d697f..14c78dc 100644
--- a/renderer/locales/ja.json
+++ b/renderer/locales/ja.json
@@ -67,6 +67,14 @@
"TITLE": "出力フォルダを保存",
"DESCRIPTION": "有効にすると、セッション間で出力フォルダが記憶されます。"
},
+ "AUTO_UPDATE": {
+ "TITLE": "自動更新",
+ "DESCRIPTION": "有効にすると、アプリケーションは新しい更新をチェックし、通知します。"
+ },
+ "ENABLE_CONTRIBUTION": {
+ "TITLE": "UPSCAYLの改善に協力",
+ "DESCRIPTION": "有効にすると、Upscaylは匿名の使用データを収集して、アプリケーションのインターフェースと機能を改善します。"
+ },
"THEME": {
"TITLE": "UPSCAYLテーマ"
},
@@ -100,14 +108,36 @@
},
"MODEL_SELECTION": {
"TITLE": "ステップ 2",
- "DESCRIPTION": "モデルを選択",
+ "DESCRIPTION": "AIモデルを選択",
+ "IMPORTED_CUSTOM_MODELS": "インポートされたカスタムモデル",
+ "BEFORE": "前",
+ "AFTER": "後",
+ "ZOOM": "ズーム",
"MODELS": {
- "upscayl-standard-4x": "一般写真 (Real-ESRGAN)",
- "x4fast": "一般写真 (高速 Real-ESRGAN)",
- "remacri": "一般写真 (Remacri)",
- "ultramix": "一般写真 (Ultramix Balanced)",
- "ultrasharp": "一般写真 (Ultrasharp)",
- "anime": "デジタルアート"
+ "upscayl-standard-4x": {
+ "NAME": "Upscaylスタンダード",
+ "DESCRIPTION": "ほとんどの画像に適しています。"
+ },
+ "upscayl-lite-4x": {
+ "NAME": "Upscaylライト",
+ "DESCRIPTION": "ほとんどの画像に適しています。最小限の品質損失で高速アップスケーリング。"
+ },
+ "remacri-4x": {
+ "NAME": "Remacri(非商用)",
+ "DESCRIPTION": "自然な画像に適しています。シャープネスとディテールが追加されます。商用利用不可。"
+ },
+ "ultramix-balanced-4x": {
+ "NAME": "Ultramix(非商用)",
+ "DESCRIPTION": "シャープネスとディテールのバランスが取れた自然な画像に適しています。"
+ },
+ "ultrasharp-4x": {
+ "NAME": "Ultrasharp(非商用)",
+ "DESCRIPTION": "シャープネスに重点を置いた自然な画像に適しています。"
+ },
+ "digital-art-4x": {
+ "NAME": "デジタルアート",
+ "DESCRIPTION": "デジタルアートやイラストに適しています。"
+ }
}
},
"DOUBLE_UPSCAYL": {
@@ -219,5 +249,26 @@
"INCORRECT_FIELDS_ALERT": "すべてのフィールドに正しく入力してください。",
"JOIN_WAITLIST": "待機リストに参加",
"DONT_SHOW_AGAIN": "再表示しない"
+ },
+ "ONBOARDING_DIALOG": {
+ "NEXT_BUTTON_TITLE": "次へ",
+ "BACK_BUTTON_TITLE": "戻る",
+ "GET_STARTED_BUTTON_TITLE": "始める",
+ "STEP_1": {
+ "TITLE": "Upscaylへようこそ 🎉",
+ "DESCRIPTION": "いくつかの簡単なステップで始めましょう。"
+ },
+ "STEP_2": {
+ "TITLE": "設定を選択 🎨",
+ "DESCRIPTION": "初期設定を構成します。"
+ },
+ "STEP_3": {
+ "TITLE": "Upscaylの使い方 🚀",
+ "DESCRIPTION": "新機能について学ぶための短いビデオをご覧ください。"
+ },
+ "STEP_4": {
+ "TITLE": "準備完了! 🎉",
+ "DESCRIPTION": "Upscaylで画像のアップスケールを始める準備ができました!"
+ }
}
}
diff --git a/renderer/locales/ru.json b/renderer/locales/ru.json
index 3171369..e01960b 100644
--- a/renderer/locales/ru.json
+++ b/renderer/locales/ru.json
@@ -67,6 +67,14 @@
"TITLE": "СОХРАНИТЬ ПАПКУ ВЫВОДА",
"DESCRIPTION": "Если включено, папка вывода будет запоминаться между сеансами."
},
+ "AUTO_UPDATE": {
+ "TITLE": "АВТОМАТИЧЕСКОЕ ОБНОВЛЕНИЕ UPSCAYL",
+ "DESCRIPTION": "Если включено, приложение будет проверять наличие новых обновлений и уведомлять вас."
+ },
+ "ENABLE_CONTRIBUTION": {
+ "TITLE": "ПОМОГИТЕ УЛУЧШИТЬ UPSCAYL",
+ "DESCRIPTION": "Если включено, Upscayl будет собирать анонимные данные об использовании для улучшения интерфейса и функций приложения."
+ },
"THEME": {
"TITLE": "ТЕМА UPSCAYL"
},
@@ -100,14 +108,36 @@
},
"MODEL_SELECTION": {
"TITLE": "Шаг 2",
- "DESCRIPTION": "Выберите модель",
+ "DESCRIPTION": "Выберите AI модель",
+ "IMPORTED_CUSTOM_MODELS": "Импортированные пользовательские модели",
+ "BEFORE": "До",
+ "AFTER": "После",
+ "ZOOM": "Увеличение",
"MODELS": {
- "upscayl-standard-4x": "Общая Фотография (Real-ESRGAN)",
- "x4fast": "Общая Фотография (Быстрый Real-ESRGAN)",
- "remacri": "Общая Фотография (Remacri)",
- "ultramix": "Общая Фотография (Ultramix Balanced)",
- "ultrasharp": "Общая Фотография (Ultrasharp)",
- "anime": "Цифровое Искусство"
+ "upscayl-standard-4x": {
+ "NAME": "Upscayl Стандарт",
+ "DESCRIPTION": "Подходит для большинства изображений."
+ },
+ "upscayl-lite-4x": {
+ "NAME": "Upscayl Лайт",
+ "DESCRIPTION": "Подходит для большинства изображений. Высокоскоростное увеличение с минимальной потерей качества."
+ },
+ "remacri-4x": {
+ "NAME": "Remacri (Не для коммерческого использования)",
+ "DESCRIPTION": "Для натуральных изображений. Добавлена резкость и детализация. Не для коммерческого использования."
+ },
+ "ultramix-balanced-4x": {
+ "NAME": "Ultramix (Не для коммерческого использования)",
+ "DESCRIPTION": "Для натуральных изображений с балансом резкости и детализации."
+ },
+ "ultrasharp-4x": {
+ "NAME": "Ultrasharp (Не для коммерческого использования)",
+ "DESCRIPTION": "Для натуральных изображений с акцентом на резкость."
+ },
+ "digital-art-4x": {
+ "NAME": "Цифровое искусство",
+ "DESCRIPTION": "Для цифрового искусства и иллюстраций."
+ }
}
},
"DOUBLE_UPSCAYL": {
@@ -219,5 +249,26 @@
"INCORRECT_FIELDS_ALERT": "Пожалуйста, правильно заполните все поля.",
"JOIN_WAITLIST": "Присоединиться к списку ожидания",
"DONT_SHOW_AGAIN": "БОЛЬШЕ НЕ ПОКАЗЫВАТЬ"
+ },
+ "ONBOARDING_DIALOG": {
+ "NEXT_BUTTON_TITLE": "Далее",
+ "BACK_BUTTON_TITLE": "Назад",
+ "GET_STARTED_BUTTON_TITLE": "Начать",
+ "STEP_1": {
+ "TITLE": "Добро пожаловать в Upscayl 🎉",
+ "DESCRIPTION": "Давайте начнем с нескольких быстрых шагов."
+ },
+ "STEP_2": {
+ "TITLE": "Выберите свои предпочтения 🎨",
+ "DESCRIPTION": "Настройте начальные параметры."
+ },
+ "STEP_3": {
+ "TITLE": "Как использовать Upscayl? 🚀",
+ "DESCRIPTION": "Посмотрите это короткое видео, чтобы узнать о новых функциях."
+ },
+ "STEP_4": {
+ "TITLE": "Все готово! 🎉",
+ "DESCRIPTION": "Теперь вы готовы начать увеличивать изображения с помощью Upscayl!"
+ }
}
}
diff --git a/renderer/locales/zh.json b/renderer/locales/zh.json
index 44c4561..41d72d8 100644
--- a/renderer/locales/zh.json
+++ b/renderer/locales/zh.json
@@ -67,6 +67,14 @@
"TITLE": "保存输出文件夹",
"DESCRIPTION": "启用后,输出文件夹将在会话之间被记住。"
},
+ "AUTO_UPDATE": {
+ "TITLE": "自动更新阿普升图",
+ "DESCRIPTION": "启用后,应用程序将检查新更新并通知你。"
+ },
+ "ENABLE_CONTRIBUTION": {
+ "TITLE": "帮助改进阿普升图",
+ "DESCRIPTION": "启用后,阿普升图将收集匿名使用数据以改进应用程序界面和功能。"
+ },
"THEME": {
"TITLE": "阿普升图主题"
},
@@ -100,14 +108,36 @@
},
"MODEL_SELECTION": {
"TITLE": "第二步",
- "DESCRIPTION": "选择模型",
+ "DESCRIPTION": "选择 AI 模型",
+ "IMPORTED_CUSTOM_MODELS": "导入的自定义模型",
+ "BEFORE": "之前",
+ "AFTER": "之后",
+ "ZOOM": "缩放",
"MODELS": {
- "upscayl-standard-4x": "一般照片 (Real-ESRGAN)",
- "x4fast": "一般照片 (快速办 Real-ESRGAN)",
- "remacri": "一般照片 (Remacri)",
- "ultramix": "一般照片 (Ultramix Balanced)",
- "ultrasharp": "一般照片 (Ultrasharp)",
- "anime": "数字艺术"
+ "upscayl-standard-4x": {
+ "NAME": "Upscayl 标准",
+ "DESCRIPTION": "适用于大多数图像。"
+ },
+ "upscayl-lite-4x": {
+ "NAME": "Upscayl 轻量版",
+ "DESCRIPTION": "适用于大多数图像。高速升图,质量损失最小。"
+ },
+ "remacri-4x": {
+ "NAME": "Remacri(非商业用途)",
+ "DESCRIPTION": "适用于自然图像。增加了锐度和细节。不用于商业用途。"
+ },
+ "ultramix-balanced-4x": {
+ "NAME": "Ultramix(非商业用途)",
+ "DESCRIPTION": "适用于自然图像,平衡了锐度和细节。"
+ },
+ "ultrasharp-4x": {
+ "NAME": "Ultrasharp(非商业用途)",
+ "DESCRIPTION": "适用于自然图像,注重锐度。"
+ },
+ "digital-art-4x": {
+ "NAME": "数字艺术",
+ "DESCRIPTION": "适用于数字艺术和插图。"
+ }
}
},
"DOUBLE_UPSCAYL": {
@@ -219,5 +249,26 @@
"INCORRECT_FIELDS_ALERT": "请适当填写。",
"JOIN_WAITLIST": "加入候补名单",
"DONT_SHOW_AGAIN": "不再显示"
+ },
+ "ONBOARDING_DIALOG": {
+ "NEXT_BUTTON_TITLE": "下一步",
+ "BACK_BUTTON_TITLE": "上一步",
+ "GET_STARTED_BUTTON_TITLE": "开始使用",
+ "STEP_1": {
+ "TITLE": "欢迎使用阿普升图 🎉",
+ "DESCRIPTION": "让我们通过几个快速步骤来开始吧。"
+ },
+ "STEP_2": {
+ "TITLE": "选择你的偏好 🎨",
+ "DESCRIPTION": "配置你的初始设置。"
+ },
+ "STEP_3": {
+ "TITLE": "如何使用阿普升图? 🚀",
+ "DESCRIPTION": "观看这个简短的视频,了解新功能。"
+ },
+ "STEP_4": {
+ "TITLE": "一切准备就绪! 🎉",
+ "DESCRIPTION": "你已经准备好使用阿普升图来增强图片了!"
+ }
}
}
diff --git a/renderer/pages/_app.tsx b/renderer/pages/_app.tsx
index d4bb578..426be89 100644
--- a/renderer/pages/_app.tsx
+++ b/renderer/pages/_app.tsx
@@ -4,16 +4,33 @@ import { AppProps } from "next/app";
import { Provider } from "jotai";
import "react-tooltip/dist/react-tooltip.css";
import { Toaster } from "@/components/ui/toaster";
+import posthog from "posthog-js";
+import { useEffect } from "react";
+import { PostHogProvider } from "posthog-js/react";
const MyApp = ({ Component, pageProps }: AppProps) => {
+ useEffect(() => {
+ posthog.init("phc_QMcmlmComdofjfaRPzoN4KV9ziV2KgOwAOVyu4J3dIc", {
+ api_host: "https://us.i.posthog.com",
+ person_profiles: "identified_only",
+ // Enable debug mode in development
+ loaded: (posthog) => {
+ if (process.env.NODE_ENV === "development") posthog.debug();
+ },
+ });
+ }, []);
+
return (
<>
<Head>
<title>Upscayl</title>
</Head>
+
<Provider>
- <Component {...pageProps} data-theme="upscayl" />
- <Toaster />
+ <PostHogProvider client={posthog}>
+ <Component {...pageProps} data-theme="upscayl" />
+ <Toaster />
+ </PostHogProvider>
</Provider>
</>
);