Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
streams: Format subscriber count according to browser locale.
Gittenburg20bf8f41d932
diff --git a/static/js/templates.js b/static/js/templates.jsindex 2e596283f0e..a41f2b72fbe 100644--- a/static/js/templates.js+++ b/static/js/templates.js@@ -92,4 +92,6 @@ Handlebars.registerHelper((content) => new Handlebars.SafeString(util.clean_user_content_links(content)),);+Handlebars.registerHelper('numberFormat', (number) => number.toLocaleString());+window.templates = exports;diff --git a/static/templates/subscription_count.hbs b/static/templates/subscription_count.hbsindex a249fd23c09..d5a4c0b432d 100644--- a/static/templates/subscription_count.hbs+++ b/static/templates/subscription_count.hbs@@ -1,6 +1,6 @@<i class="fa fa-user-o" aria-hidden="true"></i>{{#if can_access_subscribers}}-<span class="subscriber-count-text">{{subscriber_count}}</span>+<span class="subscriber-count-text">{{numberFormat subscriber_count}}</span>{{else}}<i class="subscriber-count-lock fa fa-lock" aria-hidden="true"></i>{{/if}}