Skip to content

armgit / ente

Public Imported from GitHub
0

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

ut

Manav Rathia170acb28bc4
diff --git a/web/packages/next/i18n.ts b/web/packages/next/i18n.ts
index cdc60e27ca..da63bc8c51 100644
--- a/web/packages/next/i18n.ts
+++ b/web/packages/next/i18n.ts
@@ -261,3 +261,15 @@ export const setLocaleInUse = async (locale: SupportedLocale) => {
localStorage.setItem("locale", locale);
return i18n.changeLanguage(locale);
};
+
+/**
+ * A no-op marker for strings that, for various reasons, are not translated.
+ *
+ * This function does nothing, it just returns back the passed it string
+ * verbatim. It is only kept as a way for us to keep track of strings that are
+ * not translated (and for some reason, are currently not meant to be), but
+ * still are user visible.
+ *
+ * It is the sibling of the {@link t} function provided by i18next.
+ */
+export const ut = (s: string) => s;