File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
projects/igniteui-angular-elements/src/app Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -529,7 +529,8 @@ class IgxCustomNgElementStrategy extends ComponentNgElementStrategy {
529529 if ( localeStringsInput ) {
530530 const closestElement = componentRef . location . nativeElement . closest ( '[lang]' ) as HTMLElement ;
531531 if ( closestElement ) {
532- const lang = closestElement ? closestElement . lang . toUpperCase ( ) : 'EN' ;
532+ // Do not assign anything if no tag found. By default all grids have assigned EN resource strings.
533+ const lang = closestElement . lang . toUpperCase ( ) ;
533534 const resourceStrings = GridLocaleConfig . has ( lang ) ? GridLocaleConfig . get ( lang ) : componentRef . instance [ localeStringsInput . propName ] ;
534535 componentRef . instance [ localeStringsInput . propName ] = resourceStrings ;
535536 }
You can’t perform that action at this time.
0 commit comments