@spinajs/intl 2.0.180 → 2.0.182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/config/locales.d.ts +12 -12
- package/lib/cjs/config/locales.js +16 -16
- package/lib/cjs/index.browser.d.ts +1 -1
- package/lib/cjs/index.browser.js +17 -17
- package/lib/cjs/index.d.ts +115 -115
- package/lib/cjs/index.js +333 -333
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/index.node.d.ts +2 -2
- package/lib/cjs/index.node.js +18 -18
- package/lib/cjs/interfaces.d.ts +7 -7
- package/lib/cjs/interfaces.js +26 -26
- package/lib/cjs/interfaces.js.map +1 -1
- package/lib/cjs/sources.d.ts +7 -7
- package/lib/cjs/sources.js +110 -110
- package/lib/cjs/sources.js.map +1 -1
- package/lib/mjs/config/locales.d.ts +12 -12
- package/lib/mjs/config/locales.js +14 -14
- package/lib/mjs/index.browser.d.ts +1 -1
- package/lib/mjs/index.browser.js +1 -1
- package/lib/mjs/index.d.ts +115 -115
- package/lib/mjs/index.js +294 -294
- package/lib/mjs/index.js.map +1 -1
- package/lib/mjs/index.node.d.ts +2 -2
- package/lib/mjs/index.node.js +2 -2
- package/lib/mjs/interfaces.d.ts +7 -7
- package/lib/mjs/interfaces.js +22 -22
- package/lib/mjs/interfaces.js.map +1 -1
- package/lib/mjs/sources.d.ts +7 -7
- package/lib/mjs/sources.js +81 -81
- package/lib/mjs/sources.js.map +1 -1
- package/lib/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/tsconfig.mjs.tsbuildinfo +1 -1
- package/package.json +5 -5
package/lib/mjs/interfaces.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Log, Logger } from '@spinajs/log-common';
|
|
11
|
-
import { Autoinject } from '@spinajs/di';
|
|
12
|
-
import { Configuration } from "@spinajs/configuration-common";
|
|
13
|
-
export class TranslationSource {
|
|
14
|
-
}
|
|
15
|
-
__decorate([
|
|
16
|
-
Autoinject(),
|
|
17
|
-
__metadata("design:type", Configuration)
|
|
18
|
-
], TranslationSource.prototype, "Configuration", void 0);
|
|
19
|
-
__decorate([
|
|
20
|
-
Logger('intl'),
|
|
21
|
-
__metadata("design:type", Log)
|
|
22
|
-
], TranslationSource.prototype, "Log", void 0);
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Log, Logger } from '@spinajs/log-common';
|
|
11
|
+
import { Autoinject } from '@spinajs/di';
|
|
12
|
+
import { Configuration } from "@spinajs/configuration-common";
|
|
13
|
+
export class TranslationSource {
|
|
14
|
+
}
|
|
15
|
+
__decorate([
|
|
16
|
+
Autoinject(),
|
|
17
|
+
__metadata("design:type", Configuration)
|
|
18
|
+
], TranslationSource.prototype, "Configuration", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
Logger('intl'),
|
|
21
|
+
__metadata("design:type", Log)
|
|
22
|
+
], TranslationSource.prototype, "Log", void 0);
|
|
23
23
|
//# sourceMappingURL=interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/interfaces.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,MAAM,OAAgB,iBAAiB;CAQtC;
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/interfaces.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,MAAM,OAAgB,iBAAiB;CAQtC;AANa;IADT,UAAU,EAAE;8BACY,aAAa;wDAAC;AAG7B;IADT,MAAM,CAAC,MAAM,CAAC;8BACA,GAAG;8CAAC"}
|
package/lib/mjs/sources.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TranslationSource } from "./interfaces.js";
|
|
2
|
-
export declare class JsonTranslationSource extends TranslationSource {
|
|
3
|
-
load(): Promise<{}>;
|
|
4
|
-
}
|
|
5
|
-
export declare class JsTranslationSource extends TranslationSource {
|
|
6
|
-
load(): Promise<{}>;
|
|
7
|
-
}
|
|
1
|
+
import { TranslationSource } from "./interfaces.js";
|
|
2
|
+
export declare class JsonTranslationSource extends TranslationSource {
|
|
3
|
+
load(): Promise<{}>;
|
|
4
|
+
}
|
|
5
|
+
export declare class JsTranslationSource extends TranslationSource {
|
|
6
|
+
load(): Promise<{}>;
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=sources.d.ts.map
|
package/lib/mjs/sources.js
CHANGED
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { DI, Injectable } from '@spinajs/di';
|
|
8
|
-
import glob from 'glob';
|
|
9
|
-
import * as fs from 'fs';
|
|
10
|
-
import _ from 'lodash';
|
|
11
|
-
import { normalize, resolve, basename } from 'path';
|
|
12
|
-
import { TranslationSource } from "./interfaces.js";
|
|
13
|
-
let JsonTranslationSource = class JsonTranslationSource extends TranslationSource {
|
|
14
|
-
async load() {
|
|
15
|
-
const localeDirs = this.Configuration.get('system.dirs.locales', []);
|
|
16
|
-
let translations = {};
|
|
17
|
-
localeDirs
|
|
18
|
-
.filter((d) => fs.existsSync(d))
|
|
19
|
-
.map((d) => glob.sync(`${d}/**/*.json`.replace(/\\/g, '/')))
|
|
20
|
-
.reduce((prev, current) => {
|
|
21
|
-
return prev.concat(_.flattenDeep(current));
|
|
22
|
-
}, [])
|
|
23
|
-
.map((f) => normalize(resolve(f)))
|
|
24
|
-
.map((f) => {
|
|
25
|
-
this.Log.trace(`Found json localisation file at ${f}`);
|
|
26
|
-
return f;
|
|
27
|
-
})
|
|
28
|
-
.forEach((f) => {
|
|
29
|
-
const lang = basename(f, '.json');
|
|
30
|
-
let data;
|
|
31
|
-
try {
|
|
32
|
-
data = JSON.parse(fs.readFileSync(f, 'utf-8'));
|
|
33
|
-
}
|
|
34
|
-
catch (ex) {
|
|
35
|
-
this.Log.warn(ex, `Cannot load localisation data from file ${f} for lang ${lang}`);
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
if (!data) {
|
|
39
|
-
this.Log.warn(`No localisation data at ${f} for lang ${lang}`);
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
translations = _.merge({ [lang]: data[lang] ?? data }, translations);
|
|
43
|
-
});
|
|
44
|
-
return translations;
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
JsonTranslationSource = __decorate([
|
|
48
|
-
Injectable(TranslationSource)
|
|
49
|
-
], JsonTranslationSource);
|
|
50
|
-
export { JsonTranslationSource };
|
|
51
|
-
let JsTranslationSource = class JsTranslationSource extends TranslationSource {
|
|
52
|
-
async load() {
|
|
53
|
-
const localeDirs = this.Configuration.get('system.dirs.locales', []);
|
|
54
|
-
let translations = {};
|
|
55
|
-
const files = localeDirs
|
|
56
|
-
.filter((d) => fs.existsSync(d))
|
|
57
|
-
.map((d) => glob.sync(`${d}/**/*.{js,cjs}`.replace(/\\/g, '/')))
|
|
58
|
-
.reduce((prev, current) => {
|
|
59
|
-
return prev.concat(_.flattenDeep(current));
|
|
60
|
-
}, [])
|
|
61
|
-
.map((f) => normalize(resolve(f)))
|
|
62
|
-
.map((f) => {
|
|
63
|
-
this.Log.trace(`Found json localisation file at ${f}`);
|
|
64
|
-
return f;
|
|
65
|
-
});
|
|
66
|
-
for (const f of files) {
|
|
67
|
-
const lang = basename(basename(f, '.js'), '.cjs');
|
|
68
|
-
let data = await DI.__spinajs_require__(f);
|
|
69
|
-
if (!data) {
|
|
70
|
-
this.Log.warn(`No localisation data at ${f} for lang ${lang}`);
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
translations = _.merge({ [lang]: data[lang] ?? data }, translations);
|
|
74
|
-
}
|
|
75
|
-
return translations;
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
JsTranslationSource = __decorate([
|
|
79
|
-
Injectable(TranslationSource)
|
|
80
|
-
], JsTranslationSource);
|
|
81
|
-
export { JsTranslationSource };
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { DI, Injectable } from '@spinajs/di';
|
|
8
|
+
import glob from 'glob';
|
|
9
|
+
import * as fs from 'fs';
|
|
10
|
+
import _ from 'lodash';
|
|
11
|
+
import { normalize, resolve, basename } from 'path';
|
|
12
|
+
import { TranslationSource } from "./interfaces.js";
|
|
13
|
+
let JsonTranslationSource = class JsonTranslationSource extends TranslationSource {
|
|
14
|
+
async load() {
|
|
15
|
+
const localeDirs = this.Configuration.get('system.dirs.locales', []);
|
|
16
|
+
let translations = {};
|
|
17
|
+
localeDirs
|
|
18
|
+
.filter((d) => fs.existsSync(d))
|
|
19
|
+
.map((d) => glob.sync(`${d}/**/*.json`.replace(/\\/g, '/')))
|
|
20
|
+
.reduce((prev, current) => {
|
|
21
|
+
return prev.concat(_.flattenDeep(current));
|
|
22
|
+
}, [])
|
|
23
|
+
.map((f) => normalize(resolve(f)))
|
|
24
|
+
.map((f) => {
|
|
25
|
+
this.Log.trace(`Found json localisation file at ${f}`);
|
|
26
|
+
return f;
|
|
27
|
+
})
|
|
28
|
+
.forEach((f) => {
|
|
29
|
+
const lang = basename(f, '.json');
|
|
30
|
+
let data;
|
|
31
|
+
try {
|
|
32
|
+
data = JSON.parse(fs.readFileSync(f, 'utf-8'));
|
|
33
|
+
}
|
|
34
|
+
catch (ex) {
|
|
35
|
+
this.Log.warn(ex, `Cannot load localisation data from file ${f} for lang ${lang}`);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
if (!data) {
|
|
39
|
+
this.Log.warn(`No localisation data at ${f} for lang ${lang}`);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
translations = _.merge({ [lang]: data[lang] ?? data }, translations);
|
|
43
|
+
});
|
|
44
|
+
return translations;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
JsonTranslationSource = __decorate([
|
|
48
|
+
Injectable(TranslationSource)
|
|
49
|
+
], JsonTranslationSource);
|
|
50
|
+
export { JsonTranslationSource };
|
|
51
|
+
let JsTranslationSource = class JsTranslationSource extends TranslationSource {
|
|
52
|
+
async load() {
|
|
53
|
+
const localeDirs = this.Configuration.get('system.dirs.locales', []);
|
|
54
|
+
let translations = {};
|
|
55
|
+
const files = localeDirs
|
|
56
|
+
.filter((d) => fs.existsSync(d))
|
|
57
|
+
.map((d) => glob.sync(`${d}/**/*.{js,cjs}`.replace(/\\/g, '/')))
|
|
58
|
+
.reduce((prev, current) => {
|
|
59
|
+
return prev.concat(_.flattenDeep(current));
|
|
60
|
+
}, [])
|
|
61
|
+
.map((f) => normalize(resolve(f)))
|
|
62
|
+
.map((f) => {
|
|
63
|
+
this.Log.trace(`Found json localisation file at ${f}`);
|
|
64
|
+
return f;
|
|
65
|
+
});
|
|
66
|
+
for (const f of files) {
|
|
67
|
+
const lang = basename(basename(f, '.js'), '.cjs');
|
|
68
|
+
let data = await DI.__spinajs_require__(f);
|
|
69
|
+
if (!data) {
|
|
70
|
+
this.Log.warn(`No localisation data at ${f} for lang ${lang}`);
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
translations = _.merge({ [lang]: data[lang] ?? data }, translations);
|
|
74
|
+
}
|
|
75
|
+
return translations;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
JsTranslationSource = __decorate([
|
|
79
|
+
Injectable(TranslationSource)
|
|
80
|
+
], JsTranslationSource);
|
|
81
|
+
export { JsTranslationSource };
|
|
82
82
|
//# sourceMappingURL=sources.js.map
|
package/lib/mjs/sources.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.js","sourceRoot":"","sources":["../../src/sources.ts"],"names":[],"mappings":";;;;;;AAAC,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAI7C,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,iBAAiB;IACnD,KAAK,CAAC,IAAI;QACf,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAAC;QACrE,IAAI,YAAY,GAAG,EAAE,CAAC;QAEtB,UAAU;aACP,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;aAC/B,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,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