@inst/vscode-bin-darwin
Version:
BINARY ONLY - VSCode binary deployment for macOS
70 lines (69 loc) • 4.09 kB
JSON
{
"_args": [
[
{
"raw": "vscode-nls@https://registry.npmjs.org/vscode-nls/-/vscode-nls-1.0.7.tgz",
"scope": null,
"escapedName": "vscode-nls",
"name": "vscode-nls",
"rawSpec": "https://registry.npmjs.org/vscode-nls/-/vscode-nls-1.0.7.tgz",
"spec": "https://registry.npmjs.org/vscode-nls/-/vscode-nls-1.0.7.tgz",
"type": "remote"
},
"/Users/code/tfs/agent3/_work/2/s/extensions/php"
]
],
"_from": "vscode-nls@>=1.0.4 <2.0.0",
"_id": "vscode-nls@1.0.7",
"_inCache": true,
"_location": "/vscode-nls",
"_phantomChildren": {},
"_requested": {
"raw": "vscode-nls@https://registry.npmjs.org/vscode-nls/-/vscode-nls-1.0.7.tgz",
"scope": null,
"escapedName": "vscode-nls",
"name": "vscode-nls",
"rawSpec": "https://registry.npmjs.org/vscode-nls/-/vscode-nls-1.0.7.tgz",
"spec": "https://registry.npmjs.org/vscode-nls/-/vscode-nls-1.0.7.tgz",
"type": "remote"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/vscode-nls/-/vscode-nls-1.0.7.tgz",
"_shasum": "298c01fce87802c644c0a15ef526a33c62c0d58e",
"_shrinkwrap": null,
"_spec": "vscode-nls@https://registry.npmjs.org/vscode-nls/-/vscode-nls-1.0.7.tgz",
"_where": "/Users/code/tfs/agent3/_work/2/s/extensions/php",
"author": {
"name": "Microsoft Corporation"
},
"bugs": {
"url": "https://github.com/Microsoft/vscode-nls/issues"
},
"dependencies": {},
"description": "NPM module to externalize and localize VSCode extensions",
"devDependencies": {
"mocha": "^2.3.2",
"typescript": "^1.7.5"
},
"homepage": "https://github.com/Microsoft/vscode-nls#readme",
"license": "MIT",
"main": "./lib/main.js",
"name": "vscode-nls",
"optionalDependencies": {},
"readme": "# vscode-nls\n\n\nCommonJS module to support externalization and localization. The module only depends on Node.js however its\nprimary use case is for VSCode extensions.\n\n[](https://travis-ci.org/Microsoft/vscode-nls)\n[](https://npmjs.org/package/vscode-nls)\n[](https://npmjs.org/package/vscode-nls)\n\n## Usage\n\n```typescript\nimport * as nls from 'vscode-nls';\n\nlet localize = nls.config({ locale: 'de-DE' })();\n\nconsole.log(localize('keyOne', \"Hello World\"));\nconsole.log(localize('keyTwo', \"Current Date {0}\", Date.now()));\n```\n\nThe `config` call configures the nls module and should only be called once in the applications entry point. You pass in the locale you want to use and whether the resolved locale should be cached for all further calls. The config call returns a function which is used to load a message bundle. During development time the argument should stay empty. There is another tool that helps extracting the message from you sources and create the message bundles autmatically for you. The tools is available [here]().\n\nIn secondary modules loaded from the 'main' module no configuration is necessary. However you still need to load the nls module and load the message bundle. This looks like this:\n\n```typescript\nimport * as nls from 'vscode-nls';\n\nlet localize = nls.loadMessageBundle();\n\nconsole.log(localize('keyOne', \"Hello World\"));\n```\n\nDuring development time the strings in the code are presented to the user. If the locale is set to 'pseudo' the messages are modified in the following form:\n\n* vowels are doubled\n* the string is prefixed with '\\uFF3B' (Unicode zenkaku representation for [) and postfixed with '\\uFF3D' (Unicode zenkaku representation for ])\n* \n\n## LICENSE\n[MIT](LICENSE)\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/Microsoft/vscode-nls.git"
},
"scripts": {
"compile": "tsc -p ./src",
"prepublish": "tsc -p ./src",
"test": "mocha",
"watch": "tsc -w -p ./src"
},
"typings": "./lib/main",
"version": "1.0.7"
}