kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Add translated messega to empty input
rodzic
e70bc53f9c
commit
5f189aee49
|
@ -43,6 +43,7 @@ const messages = defineMessages({
|
|||
none: { id: 'column.explorer.media_filters.none', defaultMessage: 'No media' },
|
||||
clearSearch: { id: 'column.explorer.filters.clear_input', defaultMessage: 'Clear filter input' },
|
||||
removeFilter: { id: 'column.explorer.filters.remove_filter', defaultMessage: 'Remove filter: {name}' },
|
||||
empty: { id: 'column.explorer.filters.empty', defaultMessage: 'Hey there... You forget to write the filter!' },
|
||||
});
|
||||
|
||||
const languages = {
|
||||
|
@ -189,7 +190,7 @@ const CreateFilter = () => {
|
|||
dispatch(createFilter({ name: inputValue, status: include }));
|
||||
handleClearValue();
|
||||
} else {
|
||||
toast.error('Hey there... you forget to write the filter!');
|
||||
toast.error(intl.formatMessage(messages.empty));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -376,6 +376,7 @@
|
|||
"column.explorer.filters.cancel": "Cancel",
|
||||
"column.explorer.filters.clear_input": "Clear filter input",
|
||||
"column.explorer.filters.create_your_filter": "Create your filter",
|
||||
"column.explorer.filters.empty": "Hey there... You forget to write the filter!",
|
||||
"column.explorer.filters.exclude": "Exclude",
|
||||
"column.explorer.filters.fediverse": "Fediverse",
|
||||
"column.explorer.filters.filter_by_words": "Filter by this/these words",
|
||||
|
|
Ładowanie…
Reference in New Issue