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:
parent
1520e42070
commit
d395aa92f3
2 changed files with 4 additions and 2 deletions
|
@ -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]
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
.MissingLocalization {
|
||||
background-color: darkorange;
|
||||
color: white;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
.MissingString {
|
||||
background-color: red;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
cursor: help;
|
||||
}
|
Loading…
Reference in a new issue