Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
eslint: Fix unicorn/no-incorrect-template-string-interpolation.
Anders Kaseorg1759cfd01d77
diff --git a/web/src/compose_tooltips.ts b/web/src/compose_tooltips.tsindex d616e2fab15..98acc62b794 100644--- a/web/src/compose_tooltips.ts+++ b/web/src/compose_tooltips.ts@@ -291,7 +291,7 @@ export function initialize(): void {onShow(instance) {instance.setContent($t(- {defaultMessage: `Maximum message length: {max_length} characters`},+ {defaultMessage: "Maximum message length: {max_length} characters"},{max_length: realm.max_message_length},),);diff --git a/web/src/compose_validate.ts b/web/src/compose_validate.tsindex 7f765859332..542f117d8f7 100644--- a/web/src/compose_validate.ts+++ b/web/src/compose_validate.ts@@ -69,7 +69,7 @@ export const get_topics_required_error_tooltip_message_html = (): string => {};export const get_message_too_long_for_compose_error = (): string =>$t(- {defaultMessage: `Message length shouldn't be greater than {max_length} characters.`},+ {defaultMessage: "Message length shouldn't be greater than {max_length} characters."},{max_length: realm.max_message_length},);export const NO_MESSAGE_CONTENT_ERROR_MESSAGE = $t({defaultMessage: "Compose a message."});diff --git a/web/src/settings_org.ts b/web/src/settings_org.tsindex 56462cb06d8..bd80a2c3b4f 100644--- a/web/src/settings_org.ts+++ b/web/src/settings_org.ts@@ -1121,10 +1121,10 @@ export function deactivate_organization(e: JQuery.Event): void {// that string elsewhere.return $t({defaultMessage: "Custom time"});}- return $t({defaultMessage: `Custom time ({min}+ days)`}, {min: minimum_allowed_days});+ return $t({defaultMessage: "Custom time ({min}+ days)"}, {min: minimum_allowed_days});}return $t(- {defaultMessage: `Custom time ({min}-{max} days)`},+ {defaultMessage: "Custom time ({min}-{max} days)"},{min: minimum_allowed_days, max: maximum_allowed_days},);}