mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
Wait for i18n loaded before accessing messages
This commit is contained in:
parent
650a078fd7
commit
69193e374c
@ -140,7 +140,7 @@ export default function App({ Component, pageProps }: AppProps) {
|
||||
<CssBaseline enableColorScheme />
|
||||
{showNavbar && <AppNavbar isMobile={isMobile} />}
|
||||
<MessageContainer>
|
||||
{offline && t("OFFLINE_MSG")}
|
||||
{isI18nReady && offline && t("OFFLINE_MSG")}
|
||||
</MessageContainer>
|
||||
|
||||
<LoadingBar color="#51cd7c" ref={loadingBar} />
|
||||
|
@ -352,7 +352,7 @@ export default function App({ Component, pageProps }: AppProps) {
|
||||
<CssBaseline enableColorScheme />
|
||||
{showNavbar && <AppNavbar isMobile={isMobile} />}
|
||||
<MessageContainer>
|
||||
{offline && t("OFFLINE_MSG")}
|
||||
{isI18nReady && offline && t("OFFLINE_MSG")}
|
||||
</MessageContainer>
|
||||
{sharedFiles &&
|
||||
(router.pathname === "/gallery" ? (
|
||||
|
Loading…
x
Reference in New Issue
Block a user