waibu 2.1.1 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extend/bajo/intl/en-US.json +1 -0
- package/extend/bajo/intl/id.json +1 -0
- package/lib/build-locals.js +2 -6
- package/package.json +1 -1
- package/wiki/CHANGES.md +11 -0
package/extend/bajo/intl/id.json
CHANGED
package/lib/build-locals.js
CHANGED
|
@@ -56,8 +56,7 @@ async function buildLocals ({ tpl, params = {}, opts = {} } = {}) {
|
|
|
56
56
|
const { runHook } = this.app.bajo
|
|
57
57
|
const { set, merge, pick, get, isEmpty, find, pullAt } = this.app.lib._
|
|
58
58
|
const { req, reply } = opts
|
|
59
|
-
|
|
60
|
-
params.page = merge(params.page ?? {}, { ns: req.ns, appTitle })
|
|
59
|
+
params.page = merge(params.page ?? {}, { ns: req.ns })
|
|
61
60
|
params.sidebar = params.sidebar ?? []
|
|
62
61
|
|
|
63
62
|
const { site, user, lang, darkMode } = req
|
|
@@ -83,10 +82,7 @@ async function buildLocals ({ tpl, params = {}, opts = {} } = {}) {
|
|
|
83
82
|
if (params.error) {
|
|
84
83
|
if (params.error.statusCode) _meta.statusCode = params.error.statusCode
|
|
85
84
|
_meta.errorMessage = params.error.message
|
|
86
|
-
if (params.error.ns)
|
|
87
|
-
params.page.ns = params.error.ns
|
|
88
|
-
params.page.appTitle = this.app.waibuMpa.getAppTitle(params.error.ns)
|
|
89
|
-
}
|
|
85
|
+
if (params.error.ns) params.page.ns = params.error.ns
|
|
90
86
|
if (!errs[req.id]) {
|
|
91
87
|
this.log.error('error%s', params.error.message)
|
|
92
88
|
if (this.app.bajo.config.env === 'dev') console.log(params.error)
|
package/package.json
CHANGED
package/wiki/CHANGES.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 2026-01-21
|
|
4
|
+
|
|
5
|
+
- [2.1.3] Add ```getPluginTitle()```
|
|
6
|
+
- [2.1.3] Bug fix on ```getAppTitle()```
|
|
7
|
+
- [2.1.3] Rework on all title handlers
|
|
8
|
+
|
|
9
|
+
## 2026-01-19
|
|
10
|
+
|
|
11
|
+
- [2.1.2] Bug fix on ```getAppTitle()```
|
|
12
|
+
- [2.1.2] Add missing some translation
|
|
13
|
+
|
|
3
14
|
## 2025-12-28
|
|
4
15
|
|
|
5
16
|
- [2.1.0] Ported to ```bajo@2.2.x``` specs
|