1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 06:24:19 +00:00

🔧 Improve missing localization rendering

This commit is contained in:
Steffo 2021-05-23 15:57:38 +02:00
parent 1520e42070
commit d395aa92f3
Signed by: steffo
GPG key ID: 6965406171929D01
2 changed files with 4 additions and 2 deletions

View file

@ -27,12 +27,12 @@ export default function GlobalLanguage({ children }) {
} }
else if(defaultStrings.hasOwnProperty(name)) { else if(defaultStrings.hasOwnProperty(name)) {
console.warn("Missing ", lang, " localization for string ", name) console.warn("Missing ", lang, " localization for string ", name)
return <i className={Style.MissingLocalization}>{defaultStrings[name]}</i> return <i className={Style.MissingLocalization} title={name}>{defaultStrings[name]}</i>
} }
else { else {
console.warn("Missing string ", name) console.warn("Missing string ", name)
return <i className={Style.MissingString}>MISSING STRING</i> return <i className={Style.MissingString} title={name}>MISSING STRING</i>
} }
}, },
[lang] [lang]

View file

@ -1,10 +1,12 @@
.MissingLocalization { .MissingLocalization {
background-color: darkorange; background-color: darkorange;
color: white; color: white;
cursor: help;
} }
.MissingString { .MissingString {
background-color: red; background-color: red;
color: white; color: white;
font-weight: bold; font-weight: bold;
cursor: help;
} }