Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Avoid non-greppable context APIs for i18n

Manav Rathia43c0baa4610
diff --git a/web/apps/accounts/src/pages/_app.tsx b/web/apps/accounts/src/pages/_app.tsx
index 4b9572cdd2..6b19b530fb 100644
--- a/web/apps/accounts/src/pages/_app.tsx
+++ b/web/apps/accounts/src/pages/_app.tsx
@@ -52,9 +52,7 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
setDialogBoxAttributesV2,
};
- const title = isI18nReady
- ? t("title", { context: "accounts" })
- : staticAppTitle;
+ const title = isI18nReady ? t("title_accounts") : staticAppTitle;
return (
<>
diff --git a/web/apps/auth/src/pages/_app.tsx b/web/apps/auth/src/pages/_app.tsx
index cab009dd17..f369755cad 100644
--- a/web/apps/auth/src/pages/_app.tsx
+++ b/web/apps/auth/src/pages/_app.tsx
@@ -150,9 +150,7 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
somethingWentWrong,
};
- const title = isI18nReady
- ? t("title", { context: "auth" })
- : staticAppTitle;
+ const title = isI18nReady ? t("title_auth") : staticAppTitle;
return (
<>
diff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsx
index 195ab2f8ff..15d2c58eee 100644
--- a/web/apps/photos/src/pages/_app.tsx
+++ b/web/apps/photos/src/pages/_app.tsx
@@ -330,9 +330,7 @@ export default function App({ Component, pageProps }: AppProps) {
logout,
};
- const title = isI18nReady
- ? t("title", { context: "photos" })
- : staticAppTitle;
+ const title = isI18nReady ? t("title_photos") : staticAppTitle;
return (
<>