File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/java/org/maxgamer/quickshop/localization/text Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,10 @@ private JsonConfiguration loadBundled(String file) {
9797 * Loading Crowdin OTA module and i18n system
9898 */
9999 public void load () {
100- plugin .getLogger ().info ("Checking for translation updates..." );
100+ plugin .getLogger ().info ("Checking for translation updates, this may need a while ..." );
101101 this .reset ();
102+ distribution .getAvailableLanguages (); // Make a request that loading the manifest to create manifest cache for
103+ // parallel threads
102104 List <String > enabledLanguagesRegex = plugin .getConfig ().getStringList ("enabled-languages" );
103105 // Multi File and Multi-Language loader
104106 distribution .getAvailableLanguages ().parallelStream ().forEach (crowdinCode -> distribution .getAvailableFiles ().parallelStream ().forEach (crowdinFile -> {
Original file line number Diff line number Diff line change 3131public class CrowdinOTA implements Distribution {
3232 protected static final String CROWDIN_OTA_HOST = "https://distributions.crowdin.net/daf1a8db40f132ce157c457xrm4/" ;
3333 protected final Cache <String , String > requestCachePool = CacheBuilder .newBuilder ()
34- .initialCapacity (1 )
3534 .expireAfterWrite (7 , TimeUnit .DAYS )
36- .recordStats ()
3735 .build ();
3836 private final QuickShop plugin ;
3937
You can’t perform that action at this time.
0 commit comments