v0.13.7
errors and warnings / stdlib

errors and warnings / stdlib / E8106

E8106 error

Base locale file missing

area
stdlib (x8xxx)
fails the build
yes

The package imports wowlua:locale, but the base locale's file is missing. The base locale (enUS by default) defines the keys, and its strings are used wherever a translation lacks a key. Add locales/enUS.json, or set build.locale-base to the locale your strings are written in.

Example

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

The compiler reports it like this:

error[E8106]: the base locale `locales/enUS.json` is missing
 = in locales
 = help: it defines the keys; `build.locale-base` names another base
codemessage
E8105Invalid locale file name or unknown locale code

Offline

terminal
$ wowlua explain E8106
E8106 (error): Base locale file missing

source on GitHub ↗