mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2026-01-07 22:11:13 +00:00
Create initial language support
Create support for languages, then reformat user, home, and post pages to use it, and create en and en-us language files.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const {Pinski} = require("pinski")
|
||||
const {subdirs} = require("node-dir")
|
||||
const constants = require("../lib/constants")
|
||||
const lang = require("../lang")
|
||||
|
||||
const passthrough = require("./passthrough")
|
||||
|
||||
@@ -64,7 +65,7 @@ subdirs("pug", async (err, dirs) => {
|
||||
|
||||
const plugins = require("pinski/plugins")
|
||||
plugins.setInstance(pinski)
|
||||
Object.assign(pinski.pugDefaultLocals, {constants})
|
||||
Object.assign(pinski.pugDefaultLocals, {constants, lang})
|
||||
Object.assign(passthrough, pinski.getExports())
|
||||
|
||||
console.log("[.] Server started")
|
||||
|
||||
Reference in New Issue
Block a user