Manav Rathi 1 سال پیش
والد
کامیت
c2804b33fa

+ 5 - 2
web/apps/photos/src/components/pages/gallery/PlanSelector/plans/index.tsx

@@ -12,6 +12,7 @@ import {
     isPopularPlan,
     isUserSubscribedPlan,
 } from "utils/billing";
+import { formattedStorageByteSize } from "utils/units";
 import { PlanRow } from "./planRow";
 
 interface Iprops {
@@ -64,13 +65,15 @@ interface FreePlanRowProps {
     closeModal: () => void;
 }
 
-const FreePlanRow: React.FC<FreePlanRowProps> = ({ closeModal }) => {
+const FreePlanRow: React.FC<FreePlanRowProps> = ({ closeModal, storage }) => {
     return (
         <FreePlanRow_ onClick={closeModal}>
             <Box>
                 <Typography> {t("FREE_PLAN_OPTION_LABEL")}</Typography>
                 <Typography variant="small" color="text.muted">
-                    {t("FREE_PLAN_DESCRIPTION")}
+                    {t("free_plan_description", {
+                        storage: formattedStorageByteSize(storage),
+                    })}
                 </Typography>
             </Box>
             <IconButton className={"endIcon"}>

+ 1 - 1
web/packages/next/locales/bg-BG/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "",
     "POPULAR": "",
     "FREE_PLAN_OPTION_LABEL": "",
-    "FREE_PLAN_DESCRIPTION": "",
+    "free_plan_description": "",
     "CURRENT_USAGE": "",
     "WEAK_DEVICE": "",
     "DRAG_AND_DROP_HINT": "",

+ 1 - 1
web/packages/next/locales/de-DE/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "Erhalte 2 Monate kostenlos bei Jahresabonnements",
     "POPULAR": "Beliebt",
     "FREE_PLAN_OPTION_LABEL": "Mit kostenloser Testversion fortfahren",
-    "FREE_PLAN_DESCRIPTION": "1 GB für 1 Jahr",
+    "free_plan_description": "{{storage}} für 1 Jahr",
     "CURRENT_USAGE": "Aktuelle Nutzung ist <strong>{{usage}}</strong>",
     "WEAK_DEVICE": "Dein Browser ist nicht leistungsstark genug, um deine Bilder zu verschlüsseln. Versuche, dich an einem Computer bei Ente anzumelden, oder lade dir die Ente-App für dein Gerät (Handy oder Desktop) herunter.",
     "DRAG_AND_DROP_HINT": "Oder ziehe Dateien per Drag-and-Drop in das Ente-Fenster",

+ 1 - 1
web/packages/next/locales/en-US/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "Get 2 months free on yearly plans",
     "POPULAR": "Popular",
     "FREE_PLAN_OPTION_LABEL": "Continue with free trial",
-    "FREE_PLAN_DESCRIPTION": "1 GB for 1 year",
+    "free_plan_description": "{{storage}} for 1 year",
     "CURRENT_USAGE": "Current usage is <strong>{{usage}}</strong>",
     "WEAK_DEVICE": "The web browser you're using is not powerful enough to encrypt your photos. Please try to log in to Ente on your computer, or download the Ente mobile/desktop app.",
     "DRAG_AND_DROP_HINT": "Or drag and drop into the Ente window",

+ 1 - 1
web/packages/next/locales/es-ES/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "Obtén 2 meses gratis en planes anuales",
     "POPULAR": "Popular",
     "FREE_PLAN_OPTION_LABEL": "Continuar con el plan gratuito",
-    "FREE_PLAN_DESCRIPTION": "1 GB por 1 año",
+    "free_plan_description": "{{storage}} por 1 año",
     "CURRENT_USAGE": "El uso actual es <strong>{{usage}}</strong>",
     "WEAK_DEVICE": "El navegador web que está utilizando no es lo suficientemente poderoso para cifrar sus fotos. Por favor, intente iniciar sesión en ente en su computadora, o descargue la aplicación ente para móvil/escritorio.",
     "DRAG_AND_DROP_HINT": "O arrastre y suelte en la ventana ente",

+ 1 - 1
web/packages/next/locales/fa-IR/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "",
     "POPULAR": "",
     "FREE_PLAN_OPTION_LABEL": "",
-    "FREE_PLAN_DESCRIPTION": "",
+    "free_plan_description": "",
     "CURRENT_USAGE": "",
     "WEAK_DEVICE": "",
     "DRAG_AND_DROP_HINT": "",

+ 1 - 1
web/packages/next/locales/fi-FI/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "",
     "POPULAR": "",
     "FREE_PLAN_OPTION_LABEL": "",
-    "FREE_PLAN_DESCRIPTION": "",
+    "free_plan_description": "",
     "CURRENT_USAGE": "",
     "WEAK_DEVICE": "",
     "DRAG_AND_DROP_HINT": "",

+ 1 - 1
web/packages/next/locales/fr-FR/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "Obtenir 2 mois gratuits sur les plans annuels",
     "POPULAR": "Populaire",
     "FREE_PLAN_OPTION_LABEL": "Poursuivre avec la version d'essai gratuite",
-    "FREE_PLAN_DESCRIPTION": "1 Go pour 1 an",
+    "free_plan_description": "{{storage}} pour 1 an",
     "CURRENT_USAGE": "L'utilisation actuelle est de <strong>{{usage}}</strong>",
     "WEAK_DEVICE": "Le navigateur que vous utilisez n'est pas assez puissant pour chiffrer vos photos. Veuillez essayer de vous connecter à Ente sur votre ordinateur, ou télécharger l'appli Ente mobile/ordinateur.",
     "DRAG_AND_DROP_HINT": "Sinon glissez déposez dans la fenêtre Ente",

+ 1 - 1
web/packages/next/locales/it-IT/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "Ottieni 2 mesi gratis sui piani annuali",
     "POPULAR": "",
     "FREE_PLAN_OPTION_LABEL": "",
-    "FREE_PLAN_DESCRIPTION": "1 GB per 1 anno",
+    "free_plan_description": "{{storage}} per 1 anno",
     "CURRENT_USAGE": "",
     "WEAK_DEVICE": "",
     "DRAG_AND_DROP_HINT": "",

+ 1 - 1
web/packages/next/locales/ko-KR/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "",
     "POPULAR": "",
     "FREE_PLAN_OPTION_LABEL": "",
-    "FREE_PLAN_DESCRIPTION": "",
+    "free_plan_description": "",
     "CURRENT_USAGE": "",
     "WEAK_DEVICE": "",
     "DRAG_AND_DROP_HINT": "",

+ 1 - 1
web/packages/next/locales/nl-NL/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "Krijg 2 maanden gratis op jaarlijkse abonnementen",
     "POPULAR": "Populair",
     "FREE_PLAN_OPTION_LABEL": "Doorgaan met gratis account",
-    "FREE_PLAN_DESCRIPTION": "1 GB voor 1 jaar",
+    "free_plan_description": "{{storage}} voor 1 jaar",
     "CURRENT_USAGE": "Huidig gebruik is <strong>{{usage}}</strong>",
     "WEAK_DEVICE": "De webbrowser die u gebruikt is niet krachtig genoeg om uw foto's te versleutelen. Probeer in te loggen op uw computer, of download de Ente mobiel/desktop app.",
     "DRAG_AND_DROP_HINT": "Of sleep en plaats in het Ente venster",

+ 1 - 1
web/packages/next/locales/pt-BR/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "Obtenha 2 meses gratuitos em planos anuais",
     "POPULAR": "Popular",
     "FREE_PLAN_OPTION_LABEL": "Continuar com teste gratuito",
-    "FREE_PLAN_DESCRIPTION": "1 GB por 1 ano",
+    "free_plan_description": "{{storage}} por 1 ano",
     "CURRENT_USAGE": "O uso atual é <strong>{{usage}}</strong>",
     "WEAK_DEVICE": "O navegador da web que você está usando não é poderoso o suficiente para criptografar suas fotos. Por favor, tente entrar para o ente no computador ou baixe o aplicativo móvel.",
     "DRAG_AND_DROP_HINT": "Ou arraste e solte na janela ente",

+ 1 - 1
web/packages/next/locales/pt-PT/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "",
     "POPULAR": "",
     "FREE_PLAN_OPTION_LABEL": "",
-    "FREE_PLAN_DESCRIPTION": "",
+    "free_plan_description": "",
     "CURRENT_USAGE": "",
     "WEAK_DEVICE": "",
     "DRAG_AND_DROP_HINT": "",

+ 1 - 1
web/packages/next/locales/ru-RU/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "Получите 2 месяца бесплатно по годовым планам",
     "POPULAR": "Популярный",
     "FREE_PLAN_OPTION_LABEL": "Продолжайте пользоваться бесплатной пробной версией",
-    "FREE_PLAN_DESCRIPTION": "1 ГБ на 1 год",
+    "free_plan_description": "{{storage}} на 1 год",
     "CURRENT_USAGE": "Текущее использование составляет <strong>{{usage}}</strong>",
     "WEAK_DEVICE": "Используемый вами веб-браузер недостаточно мощный, чтобы зашифровать ваши фотографии. Пожалуйста, попробуйте войти в Ente на своем компьютере или загрузить мобильное/настольное приложение Ente.",
     "DRAG_AND_DROP_HINT": "Или перетащите в основное окно",

+ 1 - 1
web/packages/next/locales/sv-SE/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "",
     "POPULAR": "",
     "FREE_PLAN_OPTION_LABEL": "",
-    "FREE_PLAN_DESCRIPTION": "",
+    "free_plan_description": "",
     "CURRENT_USAGE": "",
     "WEAK_DEVICE": "",
     "DRAG_AND_DROP_HINT": "",

+ 1 - 1
web/packages/next/locales/th-TH/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "",
     "POPULAR": "",
     "FREE_PLAN_OPTION_LABEL": "",
-    "FREE_PLAN_DESCRIPTION": "",
+    "free_plan_description": "",
     "CURRENT_USAGE": "",
     "WEAK_DEVICE": "",
     "DRAG_AND_DROP_HINT": "",

+ 1 - 1
web/packages/next/locales/tr-TR/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "",
     "POPULAR": "",
     "FREE_PLAN_OPTION_LABEL": "",
-    "FREE_PLAN_DESCRIPTION": "",
+    "free_plan_description": "",
     "CURRENT_USAGE": "",
     "WEAK_DEVICE": "",
     "DRAG_AND_DROP_HINT": "",

+ 1 - 1
web/packages/next/locales/zh-CN/translation.json

@@ -449,7 +449,7 @@
     "TWO_MONTHS_FREE": "在年度计划上免费获得 2 个月",
     "POPULAR": "流行的",
     "FREE_PLAN_OPTION_LABEL": "继续免费试用",
-    "FREE_PLAN_DESCRIPTION": "1 GB 1年",
+    "free_plan_description": "{{storage}} 1年",
     "CURRENT_USAGE": "当前使用量是 <strong>{{usage}}</strong>",
     "WEAK_DEVICE": "您使用的网络浏览器功能不够强大,无法加密您的照片。 请尝试在电脑上登录Ente,或下载Ente移动/桌面应用程序。",
     "DRAG_AND_DROP_HINT": "或者拖动并拖动到 Ente 窗口",