Skip to content

Commit

Permalink
ajuste geral
Browse files Browse the repository at this point in the history
  • Loading branch information
renanarosario committed Jan 8, 2025
1 parent 1dbaa55 commit aa32ed3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/ui/src/lib/services/po-i18n/po-i18n.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ export function provideI18nConfig(config: PoI18nConfig): Array<Provider> {

export function initializeLanguageDefault(configs: Array<PoI18nConfig>, languageService: PoLanguageService) {
const config = configs.find(c => c.default); // Busca a configuração com `default`
const setDefaultLanguage = () => {

return () => {
if (config?.default.language) {
languageService.setLanguageDefault(config.default.language);
}
};
return setDefaultLanguage;
}

0 comments on commit aa32ed3

Please sign in to comment.