mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-25 23:35:21 +02:00
Fix all res/ files with ESLint rules with 0 errors.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
module.exports = function uploadErrorFilter(gettext) {
|
||||
return function (text) {
|
||||
return function(text) {
|
||||
return {
|
||||
'fail_invalid_app_file': gettext('Uploaded file is not valid'),
|
||||
'fail_download': gettext('Failed to download file'),
|
||||
'fail_invalid_url': gettext('Cannot access specified URL'),
|
||||
'fail': gettext('Upload failed')
|
||||
fail_invalid_app_file: gettext('Uploaded file is not valid'),
|
||||
fail_download: gettext('Failed to download file'),
|
||||
fail_invalid_url: gettext('Cannot access specified URL'),
|
||||
fail: gettext('Upload failed')
|
||||
}[text] || gettext('Upload unknown error')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user