| 219 | * @returns {boolean} `true` if `error` has translation ids, `false` otherwise. |
| 220 | */ |
| 221 | export const isTranslated = error => |
| 222 | isBackend(error) || |
| 223 | isFrontend(error) || |
| 224 | (isPlainObject(error) && typeof error.id === 'string' && typeof error.defaultMessage === 'string') |
| 225 | |
| 226 | /** |
| 227 | * Returns whether `error` is a 'network error' as JavaScript TypeError. |
no test coverage detected