-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(i18n): corrigido conflito de literais entre app e lib no PO UI
- Resolvido problema onde os literais da lib não eram carregados corretamente quando a lib era adicionada em um app que também utiliza i18n, devido ao comportamento de sobrescrição da configuração do app principal. - Ajustado o comportamento do carregamento dos literais para garantir que cada configuração do i18n (do app e da lib) seja aplicada separadamente, evitando conflitos entre as configurações de ambos. Fixes DTHFUI-10440
- Loading branch information
1 parent
bcdf9e3
commit f3e3c68
Showing
11 changed files
with
186 additions
and
124 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
12 changes: 12 additions & 0 deletions
12
projects/ui/src/lib/services/po-i18n/interfaces/po-i18n-config-context.interface.ts
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,12 @@ | ||
/** | ||
* @description | ||
* | ||
* <a id="poI18nConfigContext"></a> | ||
* | ||
* Interface para a configuração dos contextos do módulo `PoI18nModule`. | ||
* | ||
* @usedBy PoI18nModule | ||
*/ | ||
export interface PoI18nConfigContext { | ||
[name: string]: { [language: string]: { [literal: string]: string } } | { url: string }; | ||
} |
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.