mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 18:38:26 +00:00
Externalize error messages
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
module Messages.Comp.ScanMailboxManage exposing (Texts, gb)
|
||||
|
||||
import Http
|
||||
import Messages.Basics
|
||||
import Messages.Comp.HttpError
|
||||
import Messages.Comp.ScanMailboxForm
|
||||
import Messages.Comp.ScanMailboxTable
|
||||
|
||||
@ -9,8 +11,13 @@ type alias Texts =
|
||||
{ basics : Messages.Basics.Texts
|
||||
, form : Messages.Comp.ScanMailboxForm.Texts
|
||||
, table : Messages.Comp.ScanMailboxTable.Texts
|
||||
, httpError : Http.Error -> String
|
||||
, newTask : String
|
||||
, createNewTask : String
|
||||
, taskCreated : String
|
||||
, taskUpdated : String
|
||||
, taskStarted : String
|
||||
, taskDeleted : String
|
||||
}
|
||||
|
||||
|
||||
@ -19,6 +26,11 @@ gb =
|
||||
{ basics = Messages.Basics.gb
|
||||
, form = Messages.Comp.ScanMailboxForm.gb
|
||||
, table = Messages.Comp.ScanMailboxTable.gb
|
||||
, httpError = Messages.Comp.HttpError.gb
|
||||
, newTask = "New Task"
|
||||
, createNewTask = "Create a new scan mailbox task"
|
||||
, taskCreated = "Task created."
|
||||
, taskUpdated = "Task updated."
|
||||
, taskStarted = "Task started."
|
||||
, taskDeleted = "Task deleted."
|
||||
}
|
||||
|
Reference in New Issue
Block a user