mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	client: Remove flags from language selection to avoid potential political issues
This commit is contained in:
		
							parent
							
								
									18515111ff
								
							
						
					
					
						commit
						307c6ebb73
					
				@ -32,7 +32,7 @@ export default class LocalizationOptions extends OptionsWidget {
 | 
			
		||||
        for (const locale of availableLocales) {
 | 
			
		||||
            this.$localeSelect.append($("<option>")
 | 
			
		||||
                .attr("value", locale.id)
 | 
			
		||||
                .text(`${locale.flag} ${locale.name}`));
 | 
			
		||||
                .text(locale.name));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this.$localeSelect.val(options.locale);
 | 
			
		||||
 | 
			
		||||
@ -135,13 +135,11 @@ function getSupportedLocales() {
 | 
			
		||||
    return [
 | 
			
		||||
        {
 | 
			
		||||
            "id": "en",
 | 
			
		||||
            "flag": "🇺🇸",
 | 
			
		||||
            "name": "English (United States)"
 | 
			
		||||
            "name": "English"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "id": "cn",
 | 
			
		||||
            "flag": "🇨🇳",
 | 
			
		||||
            "name": "Chinese (China)"
 | 
			
		||||
            "name": "Chinese"
 | 
			
		||||
        }
 | 
			
		||||
    ];
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user