-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core,platform): added missing translations for the dynamic page
- Loading branch information
1 parent
eaa76e7
commit 4ad48cb
Showing
42 changed files
with
281 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
export * from './constants'; | ||
export * from './dynamic-page.component'; | ||
export * from './dynamic-page-wrapper.directive'; | ||
export * from './dynamic-page-header/actions/dynamic-page-title-content.component'; | ||
export * from './directives/dynamic-page-header-subtitle.directive'; | ||
export * from './directives/dynamic-page-header-title.directive'; | ||
export * from './dynamic-page-content/dynamic-page-content.component'; | ||
export * from './dynamic-page-footer/dynamic-page-footer.component'; | ||
export * from './dynamic-page-header/actions/dynamic-page-base-actions'; | ||
export * from './dynamic-page-header/actions/dynamic-page-global-actions.component'; | ||
export * from './dynamic-page-header/actions/dynamic-page-layout-actions.component'; | ||
export * from './dynamic-page-header/subheader/dynamic-page-subheader.component'; | ||
export * from './dynamic-page-header/actions/dynamic-page-title-content.component'; | ||
export * from './dynamic-page-header/header/dynamic-page-header.component'; | ||
export * from './dynamic-page-content/dynamic-page-content.component'; | ||
export * from './dynamic-page-footer/dynamic-page-footer.component'; | ||
export * from './dynamic-page-header/subheader/dynamic-page-subheader.component'; | ||
export * from './dynamic-page-wrapper.directive'; | ||
export * from './dynamic-page.component'; | ||
export * from './dynamic-page.config'; | ||
export * from './dynamic-page.module'; | ||
export * from './dynamic-page.service'; | ||
export * from './utils'; | ||
export * from './models/title-directive-context'; | ||
export * from './directives/dynamic-page-header-subtitle.directive'; | ||
export * from './directives/dynamic-page-header-title.directive'; | ||
export * from './patch-header-i18n-texts'; | ||
export * from './utils'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { inject } from '@angular/core'; | ||
import { FD_LANGUAGE, FdLanguage } from '@fundamental-ngx/i18n'; | ||
import { Observable } from 'rxjs'; | ||
import { map } from 'rxjs/operators'; | ||
import { DynamicPageConfig } from './dynamic-page.config'; | ||
|
||
/** | ||
* Patch header i18n texts | ||
*/ | ||
export function patchHeaderI18nTexts(config?: DynamicPageConfig): Observable<FdLanguage> { | ||
const lang$ = inject(FD_LANGUAGE, { skipSelf: true }); | ||
if (config) { | ||
return lang$.pipe( | ||
map((lang) => ({ | ||
...lang, | ||
coreDynamicPage: { | ||
...config | ||
} | ||
})) | ||
); | ||
} | ||
return lang$; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.