mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	client: Add country flags to language selection
This commit is contained in:
		
							parent
							
								
									e086ba5eb4
								
							
						
					
					
						commit
						aa5a7294df
					
				| @ -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.name)); | ||||
|                 .text(`${locale.flag} ${locale.name}`)); | ||||
|         } | ||||
| 
 | ||||
|         this.$localeSelect.val(options.locale); | ||||
|  | ||||
| @ -135,11 +135,13 @@ function getSupportedLocales() { | ||||
|     return [ | ||||
|         { | ||||
|             "id": "en", | ||||
|             "name": "English" | ||||
|             "flag": "🇺🇸", | ||||
|             "name": "English (United States)" | ||||
|         }, | ||||
|         { | ||||
|             "id": "cn", | ||||
|             "name": "Chinese" | ||||
|             "flag": "🇨🇳", | ||||
|             "name": "Chinese (China)" | ||||
|         } | ||||
|     ]; | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran