vscode-nls
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -17,2 +17,2 @@ export interface Options { | ||
export declare function loadMessageBundle(file?: string): LocalizeFunc; | ||
export declare function config(options: Options): LoadFunc; | ||
export declare function config(options?: Options): LoadFunc; |
@@ -8,3 +8,3 @@ /* -------------------------------------------------------------------------------------------- | ||
var fs = require('fs'); | ||
var _options = { locale: 'en-US', cacheLanguageResolution: true }; | ||
var _options = { locale: undefined, cacheLanguageResolution: true }; | ||
var _isPseudo = false; | ||
@@ -137,9 +137,11 @@ var _resolvedLanguage = null; | ||
function config(options) { | ||
if (isString(options.locale)) { | ||
_options.locale = options.locale; | ||
_resolvedLanguage = null; | ||
if (options) { | ||
if (isString(options.locale)) { | ||
_options.locale = options.locale; | ||
_resolvedLanguage = null; | ||
} | ||
if (isBoolean(options.cacheLanguageResolution)) { | ||
_options.cacheLanguageResolution = options.cacheLanguageResolution; | ||
} | ||
} | ||
if (isBoolean(options.cacheLanguageResolution)) { | ||
_options.cacheLanguageResolution = options.cacheLanguageResolution; | ||
} | ||
_isPseudo = _options.locale === 'pseudo'; | ||
@@ -146,0 +148,0 @@ return loadMessageBundle; |
{ | ||
"name": "vscode-nls", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "NPM module to externalize and localize VSCode extensions", | ||
@@ -5,0 +5,0 @@ "author": "Microsoft Corporation", |
@@ -37,2 +37,6 @@ # vscode-nls | ||
* vowels are doubled | ||
* the string is prefixed with '\uFF3B' (Unicode zenkaku representation for [) and postfixed with '\uFF3D' (Unicode zenkaku representation for ]) | ||
* the string is prefixed with '\uFF3B' (Unicode zenkaku representation for [) and postfixed with '\uFF3D' (Unicode zenkaku representation for ]) | ||
* | ||
## LICENSE | ||
[MIT](LICENSE) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11023
6
165
42