diff --git a/server/routes/app.ts b/server/routes/app.ts index 6731dcc6d..3c0266fb5 100644 --- a/server/routes/app.ts +++ b/server/routes/app.ts @@ -6,6 +6,7 @@ import escape from "lodash/escape"; import { Sequelize } from "sequelize"; import isUUID from "validator/lib/isUUID"; import { IntegrationType, TeamPreference } from "@shared/types"; +import { unicodeCLDRtoISO639 } from "@shared/utils/date"; import documentLoader from "@server/commands/documentLoader"; import env from "@server/env"; import { Integration } from "@server/models"; @@ -91,6 +92,7 @@ export const renderApp = async ( ctx.body = page .toString() .replace(/\{env\}/g, environment) + .replace(/\{lang\}/g, unicodeCLDRtoISO639(env.DEFAULT_LANGUAGE)) .replace(/\{title\}/g, escape(title)) .replace(/\{description\}/g, escape(description)) .replace(/\{canonical-url\}/g, canonical) diff --git a/server/static/index.html b/server/static/index.html index 73cf7c9c5..2b6ec8dc0 100644 --- a/server/static/index.html +++ b/server/static/index.html @@ -1,5 +1,5 @@ - +