-
-
Notifications
You must be signed in to change notification settings - Fork 513
/
MarkdownErrorMessages.cs
31 lines (28 loc) · 1.35 KB
/
MarkdownErrorMessages.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
namespace Blazorise.Markdown
{
/// <summary>
/// Errors displayed to the user, using the errorCallback option, where #image_name#, #image_size# and
/// #image_max_size# will replaced by their respective values, that can be used for customization or internationalization.
/// </summary>
public class MarkdownErrorMessages
{
/// <summary>
/// The server did not receive any file from the user. Defaults to You must select a file.
/// </summary>
public string NoFileGiven { get; set; }
/// <summary>
/// The user send a file type which doesn't match the imageAccept list, or the server returned this error code.
/// Defaults to This image type is not allowed.
/// </summary>
public string TypeNotAllowed { get; set; }
/// <summary>
/// The size of the image being imported is bigger than the imageMaxSize, or if the server returned this error code.
/// Defaults to Image #image_name# is too big (#image_size#).\nMaximum file size is #image_max_size#.
/// </summary>
public string FileTooLarge { get; set; }
/// <summary>
/// An unexpected error occurred when uploading the image. Defaults to Something went wrong when uploading the image #image_name#.
/// </summary>
public string ImportError { get; set; }
}
}