Has anyone seen LuCi falling over like this? (Error: _(…).format is not a function)

The OpenWrt box is working fine otherwise. Didn't notice this.

Has this error on all LuCI pages. I can login to LuCI.

I do have SSH access. Just upgraded to latest version via "owut upgrade" today, so packages are fresh. Config prob not fresh. I do have a config backup.

( I'm just looking for suggestions before I try anything further. Often on this forum, users try stuff without first getting forum feedback ).

Brave Search gave these results --

(I've already cleared browser cache & Cntl+F5 on Win11).

This TypeError: _(…).format is not a function error in OpenWrt LuCI usually indicates a mismatch between the LuCI version and the underlying luci-base package, or a corrupted translation file. The i18n library (which provides the _(...) function for translations) is failing to attach the .format() method, often due to a failed update or a conflict in the luci-i18n-* packages.

1. Update All Packages (already done upgrade today [owut upgrade])

The most common cause is that the LuCI frontend was updated but the luci-base or translation packages weren't synced. Run this via SSH:

2. Reinstall LuCI Core and Translations

If updating doesn't work, force a reinstallation of the core LuCI components and the specific language pack you are using (e.g., en for English, zh-cn for Chinese).

I'm wondering if this LuCi failure has anything to do with an older microSD card, which OpenWrt is installed onto? (hardware is a NanoPi R4S).

This box & SD card have been active for a few years already.

OK, I've found that if I hit browser (normal) refresh button... several times.... that the LuCi page will display. LuCi data seems to be a problem mostly on the pages I view the most.

On "fav pages", the page will display 1/5 of the attempts. I can even refresh a correctly displaying page, & I could get an error.

Could this be microSD card failing?

Not likely.
Looks like problem with translation functions in LuCI.

From which version you upgraded to what?
Possibly some LuCI package versions have got missing.

And does the problem materialize, if you use English in LuCI?

25.12.2 -> 25.12.4

OK, I found what you meant by "use English in LuCI" --
Doesn't make any diff.

How would that happen suddenly, except for some corruption? I have same setup for years now, & all equipment of mine is on UPS, no power failures.

Here's the LuCI related apks that are installed --

(I mean if there was actually an apk missing, I wouldn't be able to get pages displaying by refreshing).

root@OpenWrt:~# apk info | grep luci
liblucihttp-ucode
liblucihttp0
luci
luci-app-attendedsysupgrade
luci-app-firewall
luci-app-keepalived
luci-app-nut
luci-app-package-manager
luci-base
luci-lib-uqr
luci-light
luci-mod-admin-full
luci-mod-network
luci-mod-status
luci-mod-system
luci-proto-ipv6
luci-proto-ppp
luci-proto-wireguard
luci-ssl
luci-theme-bootstrap
rpcd-mod-luci

If you had e.g. upgraded from some old 23.05 version, or so, then there might have been incompatibilities. But you have done just 25 to 25 upgrade.

With English I just meant that without translation, as your quoted advice talked about Chinese...

Try also with another browser and/or private mode, so that browser cache things can be eliminated.

I appreciate your suggestions here.... I would prob not be as patient.

I did try a Brave Private Tab: OpenWrt worked smooth & fast, zero errors.

I have (attempted to) delete any cache wrt OpenWrt (192.168.1.1). Apparently that not good enough.

At least I know that private tabs work flawlessly.

It also seems my install of Brave is developing problems. I do have a few tabs perm pinned. Most tabs are in tab groups, & closed/hidden. Are the hidden tab groups still functional?

However I should only have ONE tab with the router address. I have 2x OpenWrt routers, different addresses obv.

Good to hear that it works ok with a pristine browser session. Then the problem is more likely on client side in browser than on your LuCI installation in the router.

Most of LuCI is now javascript run on client-side in your browser.
So, any faults in brower regarding coherency of the content may cause trouble.