File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
eform-client/src/app/plugins/modules/greate-belt-pn/layouts Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ import {filter} from 'rxjs/operators';
1717export class GreateBeltPnLayoutComponent
1818 implements AfterContentInit , OnInit , OnDestroy {
1919 currentUserLocaleAsyncSub$ : Subscription ;
20- getTranslationsSub$ : Subscription ;
2120 private selectCurrentUserLocale$ = this . store . select ( selectCurrentUserLocale ) ;
2221 constructor (
2322 private store : Store ,
@@ -32,18 +31,12 @@ export class GreateBeltPnLayoutComponent
3231
3332 ngAfterContentInit ( ) {
3433 this . currentUserLocaleAsyncSub$ = this . selectCurrentUserLocale$ . subscribe ( ( locale ) => {
35- this . getTranslationsSub$ = this . translateService . getTranslation ( locale ) . pipe (
36- filter ( x => ! ! x ) ,
37- tap ( ( ) => {
38- const i18n = translates [ locale ] ;
39- this . translateService . setTranslation ( locale , i18n , true ) ;
40- } )
41- ) . subscribe ( )
34+ const i18n = translates [ locale ] ;
35+ this . translateService . setTranslation ( locale , i18n , true ) ;
4236 } ) ;
4337 }
4438
4539 ngOnDestroy ( ) : void {
46- this . getTranslationsSub$ . unsubscribe ( ) ;
4740 this . currentUserLocaleAsyncSub$ . unsubscribe ( ) ;
4841 }
4942}
You can’t perform that action at this time.
0 commit comments