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:
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)) {
|
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]
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
Loading…
Reference in a new issue