v0.13.7
errors and warnings / stdlib

errors and warnings / stdlib / E8061

E8061 error

Locale file defines a key unknown to the base locale

area
stdlib (x8xxx)
fails the build
yes

A translation file has a key that the base locale (enUS.json by default, build.locale-base names another) does not have. The base locale defines the keys, so a key that exists only in a translation is a typo or a string that was renamed or removed. Fix the key, or add it to the base locale too.

Example

× failslocales/enUS.jsonjson
{ "TITLE": "Kill Tracker" }
locales/deDE.jsonjson
{ "TITLE": "Kill-Tracker", "SUBTITLE": "Statistik" }
src/main.wowluawowlua
import L from "wowlua:locale"print(L.TITLE)
✓ compileslocales/enUS.jsonjson
{ "TITLE": "Kill Tracker", "SUBTITLE": "Statistics" }
locales/deDE.jsonjson
{ "TITLE": "Kill-Tracker", "SUBTITLE": "Statistik" }
src/main.wowluawowlua
import L from "wowlua:locale"print(L.TITLE, L.SUBTITLE)

The compiler reports it like this:

error[E8061]: `SUBTITLE` in `locales/deDE.json` is not a key of the base locale `enUS`
 = in locales/deDE.json
codemessage
W8062Locale is missing translations (summary per locale)
E8060Invalid locale key

Offline

terminal
$ wowlua explain E8061
E8061 (error): Locale file defines a key unknown to the base locale

source on GitHub ↗