upload_widget: Fix units in maximum file size message.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-04-12 23:39:44 -07:00 committed by Tim Abbott
parent 768f54c3f9
commit 5bff97e7d9
1 changed files with 2 additions and 2 deletions

View File

@ -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},
),
);