summaryrefslogtreecommitdiff
path: root/src/app.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.ts')
-rwxr-xr-xsrc/app.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app.ts b/src/app.ts
index 9301484..a71bf30 100755
--- a/src/app.ts
+++ b/src/app.ts
@@ -31,6 +31,7 @@ import {
activityPubContentType,
alternateActivityPubContentType,
} from "./lib/activitypub.js";
+import moment from "moment";
const app = express();
@@ -125,6 +126,10 @@ async function initializeApp() {
console.error('handlebars-i18next helper is not properly loaded');
}
+ i18next.on('languageChanged', function(lng) {
+ moment.locale(lng);
+ });
+
app.engine("handlebars", hbsInstance.engine);
app.set("view engine", "handlebars");
app.set("hbsInstance", hbsInstance);