settings: use i18n.t on profile picture upload message.

This fixes a small bug where the text previously was not being looked
up for translation.
This commit is contained in:
Ben Muschol 2019-03-15 15:27:11 -04:00 committed by Tim Abbott
parent d526ff00f2
commit 243be91a9b
1 changed files with 1 additions and 1 deletions

View File

@ -533,7 +533,7 @@ exports.set_up = function () {
$("#user-avatar-source").hide(); $("#user-avatar-source").hide();
var spinner = $("#upload_avatar_spinner").expectOne(); var spinner = $("#upload_avatar_spinner").expectOne();
loading.make_indicator(spinner, {text: 'Uploading profile picture.'}); loading.make_indicator(spinner, {text: i18n.t('Uploading profile picture.')});
channel.post({ channel.post({
url: '/json/users/me/avatar', url: '/json/users/me/avatar',