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
{ "TITLE": "Kill Tracker", "SUBTITLE": "Statistics" }{ "TITLE": "Kill-Tracker" }import L from "wowlua:locale"print(L.TITLE, L.SUBTITLE){ "TITLE": "Kill Tracker", "SUBTITLE": "Statistics" }{ "TITLE": "Kill-Tracker", "SUBTITLE": "Statistik" }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
Related codes
| code | message |
|---|---|
| E8061 | Locale file defines a key unknown to the base locale |
Offline
$ wowlua explain W8062 W8062 (warning): Locale is missing translations (summary per locale)