Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Introduce LocalizationUtils.languages, .userLanguages #9104

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

marcelgerber
Copy link
Contributor

Introduces the methods suggested in #8987 (comment).

localVersionInfoUrl = localVersionInfoUrl || _getVersionInfoUrl(lang);
$.ajax({
url: localVersionInfoUrl,
async: false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was the async: false added here? We shouldn't use that because it freezes the UI.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see, because of the loop. We should use Async.doSequentially() instead and remove the async: false.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@peterflynn I'd rather go with a recursive approach like we do with the about dialog avatars (HelpCommandHandlers).

@marcelgerber
Copy link
Contributor Author

@peterflynn I'm now using a recursive function.

Conflicts:
	src/extensibility/ExtensionManagerView.js
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants