File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
projects/ngneat/transloco/src/lib Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -311,10 +311,10 @@ export class TranslocoService implements OnDestroy {
311
311
...flattenScopeOrTranslation
312
312
} ;
313
313
314
- const withHook = this . interceptor . preSaveTranslation ( mergedTranslation , currentLang ) ;
315
- const flattenTranslation = this . mergedConfig . flatten . aot ? withHook : flatten ( withHook ) ;
314
+ const flattenTranslation = this . mergedConfig . flatten . aot ? mergedTranslation : flatten ( mergedTranslation ) ;
315
+ const withHook = this . interceptor . preSaveTranslation ( flattenTranslation , currentLang ) ;
316
316
317
- this . translations . set ( currentLang , flattenTranslation ) ;
317
+ this . translations . set ( currentLang , withHook ) ;
318
318
mergedOptions . emitChange && this . setActiveLang ( this . getActiveLang ( ) ) ;
319
319
}
320
320
You can’t perform that action at this time.
0 commit comments