Archived
1
0

feat: apply patch after setting up subtree

This commit is contained in:
Joe Previte
2020-12-15 15:53:52 -07:00
parent 41bee49d07
commit 51a2a2ad2d
84 changed files with 3360 additions and 191 deletions

View File

@ -71,6 +71,18 @@ if (typeof navigator === 'object' && !isElectronRenderer) {
_isWeb = true;
_locale = navigator.language;
_language = _locale;
// NOTE@coder: Make languages work.
const el = typeof document !== 'undefined' && document.getElementById('vscode-remote-nls-configuration');
const rawNlsConfig = el && el.getAttribute('data-settings');
if (rawNlsConfig) {
try {
const nlsConfig: NLSConfig = JSON.parse(rawNlsConfig);
_locale = nlsConfig.locale;
_translationsConfigFile = nlsConfig._translationsConfigFile;
_language = nlsConfig.availableLanguages['*'] || LANGUAGE_DEFAULT;
} catch (error) { /* Oh well. */ }
}
}
// Native environment