Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

upload_widget: Fix units in maximum file size message.

Anders Kaseorg5bff97e7d9db
diff --git a/static/js/upload_widget.js b/static/js/upload_widget.js
index ef1b2bc6ab7..769c88b0e9c 100644
--- a/static/js/upload_widget.js
+++ b/static/js/upload_widget.js
@@ -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},
),
);