From aa32ed30455ec452658b98b9d810952cb1cf79d7 Mon Sep 17 00:00:00 2001 From: renanarosario Date: Wed, 8 Jan 2025 14:29:11 -0300 Subject: [PATCH] ajuste geral --- projects/ui/src/lib/services/po-i18n/po-i18n.module.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/ui/src/lib/services/po-i18n/po-i18n.module.ts b/projects/ui/src/lib/services/po-i18n/po-i18n.module.ts index 10e341d50..c69df861c 100644 --- a/projects/ui/src/lib/services/po-i18n/po-i18n.module.ts +++ b/projects/ui/src/lib/services/po-i18n/po-i18n.module.ts @@ -199,10 +199,10 @@ export function provideI18nConfig(config: PoI18nConfig): Array { export function initializeLanguageDefault(configs: Array, 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; }