File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed
Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -4,21 +4,20 @@ package.path = package.path .. ";app/models/?.lua;/zip/app/models/?.lua"
44package.path = package.path .. " ;app/cronjobs/?.lua;/zip/app/cronjobs/?.lua"
55package.path = package.path .. " ;config/?.lua;/zip/config/?.lua"
66
7+
78-- OTP = require("otp") -- OTP functions
89require (" utilities" )
910require (" routes" )
1011
11- ProgramMaxPayloadSize (10485760 ) -- 10 MB
12+ local I18nClass = require (" i18n" )
13+ I18n = I18nClass .new (" en" )
1214
13- -- ArangoDB connection
15+ ProgramMaxPayloadSize ( 10485760 ) -- 10 MB
1416
17+ -- DB connection
1518local db_config = DecodeJson (LoadAsset (" config/database.json" ))
1619InitDB (db_config )
1720
18- local I18nClass = require (" i18n" )
19- I18n = I18nClass .new (" en" )
20-
21- print (EncodeJson (I18n ))
2221Views = {}
2322isApi = false
2423
Original file line number Diff line number Diff line change @@ -44,3 +44,4 @@ function Logger(message)
4444 end
4545 Log (kLogError , message )
4646end
47+
Original file line number Diff line number Diff line change 1- <div class="col-span-12"><h1>Welcome aboard </h1></div>
1+ <div class="col-span-12"><h1><%= I18n:t("controllers.welcome.default_message") %> </h1></div>
Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ return {
2020 exclusion = " must not be part of the defined list"
2121 }
2222 },
23+ controllers = {
24+ welcome = {
25+ default_message = " Welcome aboard"
26+ }
27+ },
2328 demo = {
2429 items = {
2530 zero = " no items" ,
You can’t perform that action at this time.
0 commit comments