mirror of https://github.com/zulip/zulip.git
upload_widget: Fix units in maximum file size message.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
768f54c3f9
commit
5bff97e7d9
|
@ -77,7 +77,7 @@ export function build_widget(
|
|||
if (file.size > max_file_upload_size * 1024 * 1024) {
|
||||
input_error.text(
|
||||
$t(
|
||||
{defaultMessage: "File size must be < {max_file_size}Mb."},
|
||||
{defaultMessage: "File size must be at most {max_file_size} MiB."},
|
||||
{max_file_size: max_file_upload_size},
|
||||
),
|
||||
);
|
||||
|
@ -166,7 +166,7 @@ export function build_direct_upload_widget(
|
|||
if (file.size > max_file_upload_size * 1024 * 1024) {
|
||||
input_error.text(
|
||||
$t(
|
||||
{defaultMessage: "File size must be < {max_file_size}Mb."},
|
||||
{defaultMessage: "File size must be at most {max_file_size} MiB."},
|
||||
{max_file_size: max_file_upload_size},
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue