diff --git a/app/app/src/components/RenderDocument.astro b/app/app/src/components/RenderDocument.astro index 7cf9e5a..eab9c18 100644 --- a/app/app/src/components/RenderDocument.astro +++ b/app/app/src/components/RenderDocument.astro @@ -1,6 +1,6 @@ --- +import { i18n as i18nConfig } from '~/config' import LocalesPicker from '~/components/LocalesPicker/LocalesPicker.astro' - import logosrc from '~/assets/logo.png?url' function splitHash(hash: string) @@ -21,11 +21,11 @@ function splitHash(hash: string) const data = Astro.props.data || {} const version = data.version || import.meta.env.GITHUB_SHA || 'dev' - +const supportedLocales: string[] = data.supportedLocales || [i18nConfig.defaultLocale] const footerText = data.footer || null --- -
+
@@ -55,6 +55,19 @@ const footerText = data.footer || null
+
+ + {!supportedLocales.includes(Astro.currentLocale ?? '') && ( +
+ +

+ Sorry, this document is not available in your language yet. +

+
+ )} + +
+
@@ -114,7 +127,7 @@ const footerText = data.footer || null