diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-04 16:21:17 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-05 08:43:01 +0200 |
commit | b1d40cff89f7cff565a98cdbcea9a624196a169a (patch) | |
tree | d24746c1cc69f50471a9eba0dfb1c1bae06a1870 /client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts | |
parent | 989e526abf0c0dd7958deb630df009608561bb67 (diff) | |
download | PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.tar.gz PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.tar.zst PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.zip |
Add i18n attributes
Diffstat (limited to 'client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts')
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts | 8 |
1 files changed, 5 insertions, 3 deletions
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' | |||
4 | import { UserUpdateMe } from '../../../../../../shared' | 4 | import { UserUpdateMe } from '../../../../../../shared' |
5 | import { AuthService } from '../../../core' | 5 | import { AuthService } from '../../../core' |
6 | import { FormReactive, User, UserService } from '../../../shared' | 6 | import { FormReactive, User, UserService } from '../../../shared' |
7 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
7 | 8 | ||
8 | @Component({ | 9 | @Component({ |
9 | selector: 'my-account-video-settings', | 10 | selector: 'my-account-video-settings', |
@@ -21,7 +22,8 @@ export class MyAccountVideoSettingsComponent extends FormReactive implements OnI | |||
21 | private authService: AuthService, | 22 | private authService: AuthService, |
22 | private formBuilder: FormBuilder, | 23 | private formBuilder: FormBuilder, |
23 | private notificationsService: NotificationsService, | 24 | private notificationsService: NotificationsService, |
24 | private userService: UserService | 25 | private userService: UserService, |
26 | private i18n: I18n | ||
25 | ) { | 27 | ) { |
26 | super() | 28 | super() |
27 | } | 29 | } |
@@ -49,12 +51,12 @@ export class MyAccountVideoSettingsComponent extends FormReactive implements OnI | |||
49 | 51 | ||
50 | this.userService.updateMyProfile(details).subscribe( | 52 | this.userService.updateMyProfile(details).subscribe( |
51 | () => { | 53 | () => { |
52 | this.notificationsService.success('Success', 'Information updated.') | 54 | this.notificationsService.success(this.i18n('Success'), this.i18n('Information updated.')) |
53 | 55 | ||
54 | this.authService.refreshUserInformation() | 56 | this.authService.refreshUserInformation() |
55 | }, | 57 | }, |
56 | 58 | ||
57 | err => this.notificationsService.error('Error', err.message) | 59 | err => this.notificationsService.error(this.i18n('Error'), err.message) |
58 | ) | 60 | ) |
59 | } | 61 | } |
60 | } | 62 | } |