mirror of
				https://github.com/strapi/strapi.git
				synced 2025-11-04 03:43:34 +00:00 
			
		
		
		
	Display locale code instead of name when name is not defined (#9888)
This commit is contained in:
		
							parent
							
								
									a19fbdc972
								
							
						
					
					
						commit
						1efc84a37e
					
				@ -93,7 +93,9 @@ const LocalePicker = () => {
 | 
			
		||||
                return (
 | 
			
		||||
                  <ListItem key={locale.id}>
 | 
			
		||||
                    <button onClick={() => handleClick(locale)} type="button">
 | 
			
		||||
                      <EllipsisParagraph width="200px">{locale.name}</EllipsisParagraph>
 | 
			
		||||
                      <EllipsisParagraph width="200px">
 | 
			
		||||
                        {locale.name || locale.code}
 | 
			
		||||
                      </EllipsisParagraph>
 | 
			
		||||
                    </button>
 | 
			
		||||
                  </ListItem>
 | 
			
		||||
                );
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user