aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/platform.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/platform.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/platform.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/platform.js b/packages/meshbay-hub/src/meshbay_hub/static/platform.js
index fa2065d..cf2acf3 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/platform.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/platform.js
@@ -65,6 +65,17 @@ export function legalUrl() {
return `${hubBase().replace(/\/$/, '')}/legal/`;
}
+/**
+ * The hub's privacy statement, linked where an account is created: the
+ * information GDPR art. 13 owes a person when their data is collected. Same
+ * hub as `legalUrl()`, for the same reason. French has its own text; every
+ * other language gets the English one.
+ */
+export function privacyUrl(locale) {
+ const doc = locale === 'fr' ? 'confidentialite.fr.txt' : 'privacy-statement.en.txt';
+ return `${legalUrl()}${doc}`;
+}
+
/** Native-only capabilities. A browser renders none of what these gate. */
export const capabilities = {
// Install, configure and drive a node running on this machine.