Revamping to matrix style
This commit is contained in:
70
node_modules/vscode-nls/lib/common/common.d.ts
generated
vendored
Normal file
70
node_modules/vscode-nls/lib/common/common.d.ts
generated
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
export declare enum MessageFormat {
|
||||
file = "file",
|
||||
bundle = "bundle",
|
||||
both = "both"
|
||||
}
|
||||
export declare enum BundleFormat {
|
||||
standalone = "standalone",
|
||||
languagePack = "languagePack"
|
||||
}
|
||||
export interface Options {
|
||||
locale?: string;
|
||||
cacheLanguageResolution?: boolean;
|
||||
messageFormat?: MessageFormat;
|
||||
bundleFormat?: BundleFormat;
|
||||
}
|
||||
export interface LocalizeInfo {
|
||||
key: string;
|
||||
comment: string[];
|
||||
}
|
||||
export interface LocalizeFunc {
|
||||
(info: LocalizeInfo, message: string, ...args: (string | number | boolean | undefined | null)[]): string;
|
||||
(key: string, message: string, ...args: (string | number | boolean | undefined | null)[]): string;
|
||||
}
|
||||
export interface LoadFunc {
|
||||
(file?: string): LocalizeFunc;
|
||||
}
|
||||
export declare type SingleFileJsonFormat = string[] | {
|
||||
messages: string[];
|
||||
keys: string[];
|
||||
};
|
||||
export interface NlsBundle {
|
||||
[key: string]: string[];
|
||||
}
|
||||
export declare type KeyInfo = string | LocalizeInfo;
|
||||
export interface MetaDataEntry {
|
||||
messages: string[];
|
||||
keys: KeyInfo[];
|
||||
}
|
||||
export interface MetadataHeader {
|
||||
id: string;
|
||||
type: string;
|
||||
hash: string;
|
||||
outDir: string;
|
||||
}
|
||||
export interface MetaDataFile {
|
||||
[key: string]: MetaDataEntry;
|
||||
}
|
||||
export interface TranslationConfig {
|
||||
[extension: string]: string;
|
||||
}
|
||||
export interface I18nBundle {
|
||||
version: string;
|
||||
contents: {
|
||||
[module: string]: {
|
||||
[messageKey: string]: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
export interface LanguageBundle {
|
||||
header: MetadataHeader;
|
||||
nlsBundle: NlsBundle;
|
||||
}
|
||||
export declare function isDefined(value: any): boolean;
|
||||
export declare let isPseudo: boolean;
|
||||
export declare function setPseudo(pseudo: boolean): void;
|
||||
export declare function format(message: string, args: any[]): string;
|
||||
export declare function localize(_key: string | LocalizeInfo, message: string, ...args: any[]): string;
|
||||
export declare function loadMessageBundle(file?: string): LocalizeFunc;
|
||||
export declare function config(opts?: Options): LoadFunc;
|
||||
//# sourceMappingURL=common.d.ts.map
|
||||
1
node_modules/vscode-nls/lib/common/common.d.ts.map
generated
vendored
Normal file
1
node_modules/vscode-nls/lib/common/common.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/common/common.ts"],"names":[],"mappings":"AAOA,oBAAY,aAAa;IACxB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;CACb;AAED,oBAAY,YAAY;IAEvB,UAAU,eAAe;IACzB,YAAY,iBAAiB;CAC7B;AAED,MAAM,WAAW,OAAO;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,YAAY,CAAC,EAAE,YAAY,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,EAAE,CAAC;CAClB;AASD,MAAM,WAAW,YAAY;IAC5B,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC;IACzG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC;CAClG;AAED,MAAM,WAAW,QAAQ;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AAE,GAAG,MAAM,CAwB3D;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,MAAM,CAE7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,YAAY,CAE7D;AAED,wBAAgB,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAE/C"}
|
||||
80
node_modules/vscode-nls/lib/common/common.js
generated
vendored
Normal file
80
node_modules/vscode-nls/lib/common/common.js
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
"use strict";
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
* ------------------------------------------------------------------------------------------ */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.config = exports.loadMessageBundle = exports.localize = exports.format = exports.setPseudo = exports.isPseudo = exports.isDefined = exports.BundleFormat = exports.MessageFormat = void 0;
|
||||
var ral_1 = require("./ral");
|
||||
var MessageFormat;
|
||||
(function (MessageFormat) {
|
||||
MessageFormat["file"] = "file";
|
||||
MessageFormat["bundle"] = "bundle";
|
||||
MessageFormat["both"] = "both";
|
||||
})(MessageFormat = exports.MessageFormat || (exports.MessageFormat = {}));
|
||||
var BundleFormat;
|
||||
(function (BundleFormat) {
|
||||
// the nls.bundle format
|
||||
BundleFormat["standalone"] = "standalone";
|
||||
BundleFormat["languagePack"] = "languagePack";
|
||||
})(BundleFormat = exports.BundleFormat || (exports.BundleFormat = {}));
|
||||
var LocalizeInfo;
|
||||
(function (LocalizeInfo) {
|
||||
function is(value) {
|
||||
var candidate = value;
|
||||
return candidate && isDefined(candidate.key) && isDefined(candidate.comment);
|
||||
}
|
||||
LocalizeInfo.is = is;
|
||||
})(LocalizeInfo || (LocalizeInfo = {}));
|
||||
function isDefined(value) {
|
||||
return typeof value !== 'undefined';
|
||||
}
|
||||
exports.isDefined = isDefined;
|
||||
exports.isPseudo = false;
|
||||
function setPseudo(pseudo) {
|
||||
exports.isPseudo = pseudo;
|
||||
}
|
||||
exports.setPseudo = setPseudo;
|
||||
function format(message, args) {
|
||||
var result;
|
||||
if (exports.isPseudo) {
|
||||
// FF3B and FF3D is the Unicode zenkaku representation for [ and ]
|
||||
message = '\uFF3B' + message.replace(/[aouei]/g, '$&$&') + '\uFF3D';
|
||||
}
|
||||
if (args.length === 0) {
|
||||
result = message;
|
||||
}
|
||||
else {
|
||||
result = message.replace(/\{(\d+)\}/g, function (match, rest) {
|
||||
var index = rest[0];
|
||||
var arg = args[index];
|
||||
var replacement = match;
|
||||
if (typeof arg === 'string') {
|
||||
replacement = arg;
|
||||
}
|
||||
else if (typeof arg === 'number' || typeof arg === 'boolean' || arg === void 0 || arg === null) {
|
||||
replacement = String(arg);
|
||||
}
|
||||
return replacement;
|
||||
});
|
||||
}
|
||||
return result;
|
||||
}
|
||||
exports.format = format;
|
||||
function localize(_key, message) {
|
||||
var args = [];
|
||||
for (var _i = 2; _i < arguments.length; _i++) {
|
||||
args[_i - 2] = arguments[_i];
|
||||
}
|
||||
return format(message, args);
|
||||
}
|
||||
exports.localize = localize;
|
||||
function loadMessageBundle(file) {
|
||||
return (0, ral_1.default)().loadMessageBundle(file);
|
||||
}
|
||||
exports.loadMessageBundle = loadMessageBundle;
|
||||
function config(opts) {
|
||||
return (0, ral_1.default)().config(opts);
|
||||
}
|
||||
exports.config = config;
|
||||
//# sourceMappingURL=common.js.map
|
||||
1
node_modules/vscode-nls/lib/common/common.js.map
generated
vendored
Normal file
1
node_modules/vscode-nls/lib/common/common.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/common/common.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;;;AAEhG,6BAAwB;AAExB,IAAY,aAIX;AAJD,WA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C;YACpB,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;YACtB,IAAI,WAAW,GAAG,KAAK,CAAC;YACxB,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;gBAC5B,WAAW,GAAG,GAAG,CAAC;aAClB;iBACI,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,KAAK,CAAC,IAAI,GAAG,KAAK,IAAI,EAAE;gBAC/F,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;aAC1B;YACD,OAAO,WAAW,CAAC;QACpB,CAAC,CAAC,CAAC;KACH;IACD,OAAO,MAAM,CAAC;AACf,CAAC;AAxBD,wBAwBC;AAED,SAAgB,QAAQ,CAAC,IAA2B,EAAE,OAAe;IAAE,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,6BAAc;;IACpF,OAAO,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAC9B,CAAC;AAFD,4BAEC;AAED,SAAgB,iBAAiB,CAAC,IAAa;IAC9C,OAAO,IAAA,aAAG,GAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;AACtC,CAAC;AAFD,8CAEC;AAED,SAAgB,MAAM,CAAC,IAAc;IACpC,OAAO,IAAA,aAAG,GAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC3B,CAAC;AAFD,wBAEC"}
|
||||
11
node_modules/vscode-nls/lib/common/ral.d.ts
generated
vendored
Normal file
11
node_modules/vscode-nls/lib/common/ral.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { LocalizeFunc, LoadFunc, Options } from './common';
|
||||
interface RAL {
|
||||
loadMessageBundle(file?: string): LocalizeFunc;
|
||||
config(opts?: Options): LoadFunc;
|
||||
}
|
||||
declare function RAL(): RAL;
|
||||
declare namespace RAL {
|
||||
function install(ral: RAL): void;
|
||||
}
|
||||
export default RAL;
|
||||
//# sourceMappingURL=ral.d.ts.map
|
||||
1
node_modules/vscode-nls/lib/common/ral.d.ts.map
generated
vendored
Normal file
1
node_modules/vscode-nls/lib/common/ral.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ral.d.ts","sourceRoot":"","sources":["../../src/common/ral.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE3D,UAAU,GAAG;IACZ,iBAAiB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IAC/C,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CACjC;AAID,iBAAS,GAAG,IAAI,GAAG,CAKlB;AAED,kBAAU,GAAG,CAAC;IACb,SAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAKtC;CACD;AAED,eAAe,GAAG,CAAC"}
|
||||
20
node_modules/vscode-nls/lib/common/ral.js
generated
vendored
Normal file
20
node_modules/vscode-nls/lib/common/ral.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var _ral;
|
||||
function RAL() {
|
||||
if (_ral === undefined) {
|
||||
throw new Error("No runtime abstraction layer installed");
|
||||
}
|
||||
return _ral;
|
||||
}
|
||||
(function (RAL) {
|
||||
function install(ral) {
|
||||
if (ral === undefined) {
|
||||
throw new Error("No runtime abstraction layer provided");
|
||||
}
|
||||
_ral = ral;
|
||||
}
|
||||
RAL.install = install;
|
||||
})(RAL || (RAL = {}));
|
||||
exports.default = RAL;
|
||||
//# sourceMappingURL=ral.js.map
|
||||
1
node_modules/vscode-nls/lib/common/ral.js.map
generated
vendored
Normal file
1
node_modules/vscode-nls/lib/common/ral.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ral.js","sourceRoot":"","sources":["../../src/common/ral.ts"],"names":[],"mappings":";;AAWA,IAAI,IAAqB,CAAC;AAE1B,SAAS,GAAG;IACX,IAAI,IAAI,KAAK,SAAS,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;KAC1D;IACD,OAAO,IAAI,CAAC;AACb,CAAC;AAED,WAAU,GAAG;IACZ,SAAgB,OAAO,CAAC,GAAQ;QAC/B,IAAI,GAAG,KAAK,SAAS,EAAE;YACtB,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;SACzD;QACD,IAAI,GAAG,GAAG,CAAC;IACZ,CAAC;IALe,WAAO,UAKtB,CAAA;AACF,CAAC,EAPS,GAAG,KAAH,GAAG,QAOZ;AAED,kBAAe,GAAG,CAAC"}
|
||||
1
node_modules/vscode-nls/lib/common/tsconfig.tsbuildinfo
generated
vendored
Normal file
1
node_modules/vscode-nls/lib/common/tsconfig.tsbuildinfo
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../src/common/ral.ts","../../src/common/common.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"6cf01409ba00e33f25d7e86de81e95441262ff1df750cbc4492f716fe8145f4d","a8b1279efd328bbedb3585152830e425b0be1b41be9b0e12844f0a0104c32636"],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":1,"outDir":"./","sourceMap":true,"stripInternal":true,"target":1},"fileIdsList":[[2],[3]],"referencedMap":[[3,1],[2,2]],"exportedModulesMap":[[3,1],[2,2]],"semanticDiagnosticsPerFile":[1,3,2]},"version":"4.5.5"}
|
||||
Reference in New Issue
Block a user