preload "en", and preload for core too

This commit is contained in:
Meadowsys 2023-04-04 15:19:37 -07:00
parent 0e8e791431
commit 694486b216
No known key found for this signature in database
GPG Key ID: 9E9BB6D25186E719

View File

@ -68,9 +68,13 @@ class I18n {
this.updateConfigs();
// Preload languages (getting an obj would place it in the cache)
// TODO reassess preloading the "en" fallback when we have more progress on translations
this.getCoreLanguage(this.primaryLanguage);
this.getCoreLanguage("en");
this.packages.onDidActivatePackage(pkg => {
// getting an obj would place it in the cache
this.getPkgLanguage(pkg.name, this.primaryLanguage);
this.getPkgLanguage(pkg.name, "en");
});
this.packages.onDidDeactivatePackage(pkg => {