aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-08-01 20:31:22 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-08-01 20:31:22 +0200
commit8dd60d2b4798c8d534c5d021f493588ab90dfd3e (patch)
treee6c3788b908083daa4bcde288042881f0f3a0971 /main.go
parent57dd14bd7e7b0dfea45439fd700c5a9d08784796 (diff)
Hot reloading for locales in debug mode
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 86e28b0..39c1249 100644
--- a/main.go
+++ b/main.go
@@ -68,7 +68,7 @@ func main() {
go watch.File(Try2(os.Executable()), app.Restart)
}
- i18n.Init()
+ i18n.Init(Try2(os.OpenRoot("po")).FS(), app.Debugp)
dbx.Init(Try2(os.OpenRoot("src/dbx/sql")).FS())
app.BuildTemplates(Try2(os.OpenRoot("src/templates")).FS())
app.Run(*port)