Skip to content

armgit / ente

Public Imported from GitHub
0

💚 End-to-end encrypted cloud for everything.

Use storage

Manav Rathic2804b33faee
diff --git a/web/apps/photos/src/components/pages/gallery/PlanSelector/plans/index.tsx b/web/apps/photos/src/components/pages/gallery/PlanSelector/plans/index.tsx
index d3c71ce4a2..2225d85c2a 100644
--- a/web/apps/photos/src/components/pages/gallery/PlanSelector/plans/index.tsx
+++ b/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"}>
diff --git a/web/packages/next/locales/bg-BG/translation.json b/web/packages/next/locales/bg-BG/translation.json
index 52ce2c47b3..aa88d9c504 100644
--- a/web/packages/next/locales/bg-BG/translation.json
+++ b/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": "",
diff --git a/web/packages/next/locales/de-DE/translation.json b/web/packages/next/locales/de-DE/translation.json
index c9e479ecbb..8bfddc1cdc 100644
--- a/web/packages/next/locales/de-DE/translation.json
+++ b/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",
diff --git a/web/packages/next/locales/en-US/translation.json b/web/packages/next/locales/en-US/translation.json
index 9a363f3df6..f4d6f61001 100644
--- a/web/packages/next/locales/en-US/translation.json
+++ b/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",
diff --git a/web/packages/next/locales/es-ES/translation.json b/web/packages/next/locales/es-ES/translation.json
index 69b783207a..ffc06ffa3f 100644
--- a/web/packages/next/locales/es-ES/translation.json
+++ b/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",
diff --git a/web/packages/next/locales/fa-IR/translation.json b/web/packages/next/locales/fa-IR/translation.json
index 34977aa3db..2f96050199 100644
--- a/web/packages/next/locales/fa-IR/translation.json
+++ b/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": "",
diff --git a/web/packages/next/locales/fi-FI/translation.json b/web/packages/next/locales/fi-FI/translation.json
index b94891efdf..33306389c9 100644
--- a/web/packages/next/locales/fi-FI/translation.json
+++ b/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": "",
diff --git a/web/packages/next/locales/fr-FR/translation.json b/web/packages/next/locales/fr-FR/translation.json
index 796b40a44c..dd17e54ab0 100644
--- a/web/packages/next/locales/fr-FR/translation.json
+++ b/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",
diff --git a/web/packages/next/locales/it-IT/translation.json b/web/packages/next/locales/it-IT/translation.json
index 0d4298c29e..8c767c0544 100644
--- a/web/packages/next/locales/it-IT/translation.json
+++ b/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": "",
diff --git a/web/packages/next/locales/ko-KR/translation.json b/web/packages/next/locales/ko-KR/translation.json
index b9709ee92e..17fc405881 100644
--- a/web/packages/next/locales/ko-KR/translation.json
+++ b/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": "",
diff --git a/web/packages/next/locales/nl-NL/translation.json b/web/packages/next/locales/nl-NL/translation.json
index a364061a3d..23850582db 100644
--- a/web/packages/next/locales/nl-NL/translation.json
+++ b/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",
diff --git a/web/packages/next/locales/pt-BR/translation.json b/web/packages/next/locales/pt-BR/translation.json
index 3edd83f6b7..6d36812ced 100644
--- a/web/packages/next/locales/pt-BR/translation.json
+++ b/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",
diff --git a/web/packages/next/locales/pt-PT/translation.json b/web/packages/next/locales/pt-PT/translation.json
index d6751f32cd..c89049ec2d 100644
--- a/web/packages/next/locales/pt-PT/translation.json
+++ b/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": "",
diff --git a/web/packages/next/locales/ru-RU/translation.json b/web/packages/next/locales/ru-RU/translation.json
index 68816b47b3..d8c90af17e 100644
--- a/web/packages/next/locales/ru-RU/translation.json
+++ b/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": "Или перетащите в основное окно",
diff --git a/web/packages/next/locales/sv-SE/translation.json b/web/packages/next/locales/sv-SE/translation.json
index 775bb5a605..1ceb6370ca 100644
--- a/web/packages/next/locales/sv-SE/translation.json
+++ b/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": "",
diff --git a/web/packages/next/locales/th-TH/translation.json b/web/packages/next/locales/th-TH/translation.json
index b94891efdf..33306389c9 100644
--- a/web/packages/next/locales/th-TH/translation.json
+++ b/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": "",
diff --git a/web/packages/next/locales/tr-TR/translation.json b/web/packages/next/locales/tr-TR/translation.json
index b94891efdf..33306389c9 100644
--- a/web/packages/next/locales/tr-TR/translation.json
+++ b/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": "",
diff --git a/web/packages/next/locales/zh-CN/translation.json b/web/packages/next/locales/zh-CN/translation.json
index 9e10cdce86..2489bdd43e 100644
--- a/web/packages/next/locales/zh-CN/translation.json
+++ b/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 窗口",