mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 19:17:09 +03:00
preload "en", and preload for core too
This commit is contained in:
parent
0e8e791431
commit
694486b216
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user