v0.13.7
errors and warnings / stdlib

errors and warnings / stdlib / W8062

W8062 warning

Locale is missing translations (summary per locale)

area
stdlib (x8xxx)
fails the build
with --deny-warnings

A translation file lacks some keys of the base locale. The addon still works: players with that client language see the base locale's string for each missing key. The warning is one summary per locale, with the count and the first few missing keys. Add the translations, or lower the lint's level in check.lints while a translation is in progress.

Example

× failslocales/enUS.jsonjson
{ "TITLE": "Kill Tracker", "SUBTITLE": "Statistics" }
locales/deDE.jsonjson
{ "TITLE": "Kill-Tracker" }
src/main.wowluawowlua
import L from "wowlua:locale"print(L.TITLE, L.SUBTITLE)
✓ 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:

warning[W8062]: `deDE` lacks 1 of 2 translations (`SUBTITLE`); the base strings are used
 = in locales/deDE.json
codemessage
E8061Locale file defines a key unknown to the base locale

Offline

terminal
$ wowlua explain W8062
W8062 (warning): Locale is missing translations (summary per locale)

source on GitHub ↗