mirror of
https://github.com/status-im/consul.git
synced 2025-02-01 08:27:20 +00:00
bb95738321
Adds a 'status' for the filtering/searching in the UI, without this its not super clear that you are filtering a recordset due to the menu selections being hidden once closed. You can also use the pills in this status view to delete individual filters.
10 lines
300 B
JavaScript
10 lines
300 B
JavaScript
// if we can't find the message, take the last part of the identifier and
|
|
// ucfirst it so it looks human
|
|
export default function missingMessage(key, locales) {
|
|
const last = key
|
|
.split('.')
|
|
.pop()
|
|
.replaceAll('-', ' ');
|
|
return `${last.substr(0, 1).toUpperCase()}${last.substr(1)}`;
|
|
}
|