mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-30 04:01:31 +08:00 
			
		
		
		
	client: Fix flakiness when changing language on desktop
This commit is contained in:
		
							parent
							
								
									ec3066caee
								
							
						
					
					
						commit
						221fc66ca1
					
				| @ -30,7 +30,7 @@ class AppContext extends Component { | ||||
|      */ | ||||
|     async earlyInit() { | ||||
|         await options.initializedPromise; | ||||
|         initLocale(); | ||||
|         await initLocale(); | ||||
|     } | ||||
| 
 | ||||
|     setLayout(layout) {         | ||||
|  | ||||
| @ -10,7 +10,7 @@ import glob from "./services/glob.js"; | ||||
| import { t } from "./services/i18n.js"; | ||||
| 
 | ||||
| bundleService.getWidgetBundlesByParent().then(async widgetBundles => { | ||||
|     appContext.earlyInit(); | ||||
|     await appContext.earlyInit(); | ||||
|      | ||||
|     // A dynamic import is required for layouts since they initialize components which require translations.
 | ||||
|     const DesktopLayout = (await import("./layouts/desktop_layout.js")).default; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran