Skip to content

A platform for community discussion. Free, open, simple.

FIX: uses i18n for saved text (#18949)

Joffrey JAFFEUX4e6909cc5ae9
diff --git a/plugins/chat/assets/javascripts/discourse/templates/components/chat-channel-settings-view.hbs b/plugins/chat/assets/javascripts/discourse/templates/components/chat-channel-settings-view.hbs
index 08bb1a65aac..26c7cd45152 100644
--- a/plugins/chat/assets/javascripts/discourse/templates/components/chat-channel-settings-view.hbs
+++ b/plugins/chat/assets/javascripts/discourse/templates/components/chat-channel-settings-view.hbs
@@ -6,7 +6,7 @@
<div class="chat-form__control">
<ComboBox @content={{this.mutedOptions}} @value={{this.channel.current_user_membership.muted}} @valueProperty="value" @class="channel-settings-view__muted-selector" @onChange={{action (fn this.saveNotificationSettings "muted")}} />
{{#if this.savedMuted}}
- <span class="channel-settings-view__saved">✓ Saved</span>
+ <span class="channel-settings-view__saved">✓ {{i18n "saved"}}</span>
{{/if}}
</div>
</div>
@@ -19,7 +19,7 @@
<div class="chat-form__control">
<ComboBox @content={{this.notificationLevels}} @value={{this.channel.current_user_membership.desktop_notification_level}} @valueProperty="value" @class="channel-settings-view__desktop-notification-level-selector" @onChange={{action (fn this.saveNotificationSettings "desktop_notification_level")}} />
{{#if this.savedDesktopNotificationLevel}}
- <span class="channel-settings-view__saved">✓ Saved</span>
+ <span class="channel-settings-view__saved">✓ {{i18n "saved"}}</span>
{{/if}}
</div>
</div>
@@ -31,7 +31,7 @@
<div class="chat-form__control">
<ComboBox @content={{this.notificationLevels}} @value={{this.channel.current_user_membership.mobile_notification_level}} @valueProperty="value" @class="channel-settings-view__mobile-notification-level-selector" @onChange={{action (fn this.saveNotificationSettings "mobile_notification_level")}} />
{{#if this.savedMobileNotificationLevel}}
- <span class="channel-settings-view__saved">✓ Saved</span>
+ <span class="channel-settings-view__saved">✓ {{i18n "saved"}}</span>
{{/if}}
</div>
</div>