diff options
author | INOUE Daisuke <inoue.daisuke@gmail.com> | 2025-03-22 22:55:46 +0900 |
---|---|---|
committer | INOUE Daisuke <inoue.daisuke@gmail.com> | 2025-04-08 22:20:58 +0900 |
commit | 73e8b168c3ffc4e3ffe30e50dd3e46ed70d909d8 (patch) | |
tree | e5a747906b5fda7c2b64210b9d9531a082dee14d /src/app.ts | |
parent | 2449234e28aab435ffe28d567ece8c651d45d2b3 (diff) |
some fix, moment.locale setting
Diffstat (limited to 'src/app.ts')
-rwxr-xr-x | src/app.ts | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |