1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-24 22:14:18 +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)) {
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 {
console.warn("Missing string ", name)
return <i className={Style.MissingString}>MISSING STRING</i>
return <i className={Style.MissingString} title={name}>MISSING STRING</i>
}
},
[lang]

View file

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