errors and warnings / stdlib / E8105
E8105 error
Invalid locale file name or unknown locale code
- area
- stdlib (x8xxx)
- fails the build
- yes
A file in the locales folder (locales/ by default, build.locales-dir names
another) is not named by a locale code. Only *.json files are read, and each
one must be called after the client locale it translates: enUS, enGB,
deDE, esES, esMX, frFR, itIT, koKR, ptBR, ruRU, zhCN or
zhTW, plus .json. Rename the file.
Example
{ "TITLE": "Kill Tracker" }{ "TITLE": "Kill-Tracker" }import L from "wowlua:locale"print(L.TITLE){ "TITLE": "Kill Tracker" }{ "TITLE": "Kill-Tracker" }import L from "wowlua:locale"print(L.TITLE)The compiler reports it like this:
error[E8105]: `german.json`: `german` is no locale code = in locales/german.json = help: locale files are named by locale: enUS, enGB, deDE, esES, esMX, frFR, itIT, koKR, ptBR, ruRU, zhCN, zhTW
Related codes
| code | message |
|---|---|
| E8106 | Base locale file missing |
Offline
$ wowlua explain E8105 E8105 (error): Invalid locale file name or unknown locale code