X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bmy-account%2Fmy-account-settings%2Fmy-account-video-settings%2Fmy-account-video-settings.component.ts;h=4588f73db46ff5069b930790ad008fcde572f781;hb=b1d40cff89f7cff565a98cdbcea9a624196a169a;hp=acc70c14d7f833c02d2ba32d96cece1cbe77ec9a;hpb=989e526abf0c0dd7958deb630df009608561bb67;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts index acc70c14d..4588f73db 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts +++ b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts @@ -4,6 +4,7 @@ import { NotificationsService } from 'angular2-notifications' import { UserUpdateMe } from '../../../../../../shared' import { AuthService } from '../../../core' import { FormReactive, User, UserService } from '../../../shared' +import { I18n } from '@ngx-translate/i18n-polyfill' @Component({ selector: 'my-account-video-settings', @@ -21,7 +22,8 @@ export class MyAccountVideoSettingsComponent extends FormReactive implements OnI private authService: AuthService, private formBuilder: FormBuilder, private notificationsService: NotificationsService, - private userService: UserService + private userService: UserService, + private i18n: I18n ) { super() } @@ -49,12 +51,12 @@ export class MyAccountVideoSettingsComponent extends FormReactive implements OnI this.userService.updateMyProfile(details).subscribe( () => { - this.notificationsService.success('Success', 'Information updated.') + this.notificationsService.success(this.i18n('Success'), this.i18n('Information updated.')) this.authService.refreshUserInformation() }, - err => this.notificationsService.error('Error', err.message) + err => this.notificationsService.error(this.i18n('Error'), err.message) ) } }