@lingui/conf 3.17.2 → 4.0.0-next.1

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.
@@ -0,0 +1,204 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCldrParentLocale = exports.setCldrParentLocales = void 0;
4
+ function setCldrParentLocales(config) {
5
+ if (config.fallbackLocales === false) {
6
+ return {
7
+ ...config,
8
+ fallbackLocales: {},
9
+ };
10
+ }
11
+ if (!config.fallbackLocales.default) {
12
+ config.locales.forEach((locale) => {
13
+ const fl = getCldrParentLocale(locale.toLowerCase());
14
+ if (fl && !config.fallbackLocales[locale]) {
15
+ config.fallbackLocales = {
16
+ ...config.fallbackLocales,
17
+ [locale]: fl,
18
+ };
19
+ }
20
+ });
21
+ }
22
+ return config;
23
+ }
24
+ exports.setCldrParentLocales = setCldrParentLocales;
25
+ function getCldrParentLocale(sourceLocale) {
26
+ return {
27
+ "en-ag": "en",
28
+ "en-ai": "en",
29
+ "en-au": "en",
30
+ "en-bb": "en",
31
+ "en-bm": "en",
32
+ "en-bs": "en",
33
+ "en-bw": "en",
34
+ "en-bz": "en",
35
+ "en-ca": "en",
36
+ "en-cc": "en",
37
+ "en-ck": "en",
38
+ "en-cm": "en",
39
+ "en-cx": "en",
40
+ "en-cy": "en",
41
+ "en-dg": "en",
42
+ "en-dm": "en",
43
+ "en-er": "en",
44
+ "en-fj": "en",
45
+ "en-fk": "en",
46
+ "en-fm": "en",
47
+ "en-gb": "en",
48
+ "en-gd": "en",
49
+ "en-gg": "en",
50
+ "en-gh": "en",
51
+ "en-gi": "en",
52
+ "en-gm": "en",
53
+ "en-gy": "en",
54
+ "en-hk": "en",
55
+ "en-ie": "en",
56
+ "en-il": "en",
57
+ "en-im": "en",
58
+ "en-in": "en",
59
+ "en-io": "en",
60
+ "en-je": "en",
61
+ "en-jm": "en",
62
+ "en-ke": "en",
63
+ "en-ki": "en",
64
+ "en-kn": "en",
65
+ "en-ky": "en",
66
+ "en-lc": "en",
67
+ "en-lr": "en",
68
+ "en-ls": "en",
69
+ "en-mg": "en",
70
+ "en-mo": "en",
71
+ "en-ms": "en",
72
+ "en-mt": "en",
73
+ "en-mu": "en",
74
+ "en-mw": "en",
75
+ "en-my": "en",
76
+ "en-na": "en",
77
+ "en-nf": "en",
78
+ "en-ng": "en",
79
+ "en-nr": "en",
80
+ "en-nu": "en",
81
+ "en-nz": "en",
82
+ "en-pg": "en",
83
+ "en-ph": "en",
84
+ "en-pk": "en",
85
+ "en-pn": "en",
86
+ "en-pw": "en",
87
+ "en-rw": "en",
88
+ "en-sb": "en",
89
+ "en-sc": "en",
90
+ "en-sd": "en",
91
+ "en-sg": "en",
92
+ "en-sh": "en",
93
+ "en-sl": "en",
94
+ "en-ss": "en",
95
+ "en-sx": "en",
96
+ "en-sz": "en",
97
+ "en-tc": "en",
98
+ "en-tk": "en",
99
+ "en-to": "en",
100
+ "en-tt": "en",
101
+ "en-tv": "en",
102
+ "en-tz": "en",
103
+ "en-ug": "en",
104
+ "en-us": "en",
105
+ "en-vc": "en",
106
+ "en-vg": "en",
107
+ "en-vu": "en",
108
+ "en-ws": "en",
109
+ "en-za": "en",
110
+ "en-zm": "en",
111
+ "en-zw": "en",
112
+ "en-at": "en",
113
+ "en-be": "en",
114
+ "en-ch": "en",
115
+ "en-de": "en",
116
+ "en-dk": "en",
117
+ "en-fi": "en",
118
+ "en-nl": "en",
119
+ "en-se": "en",
120
+ "en-si": "en",
121
+ "es-ar": "es",
122
+ "es-bo": "es",
123
+ "es-br": "es",
124
+ "es-bz": "es",
125
+ "es-cl": "es",
126
+ "es-co": "es",
127
+ "es-cr": "es",
128
+ "es-cu": "es",
129
+ "es-do": "es",
130
+ "es-ec": "es",
131
+ "es-es": "es",
132
+ "es-gt": "es",
133
+ "es-hn": "es",
134
+ "es-mx": "es",
135
+ "es-ni": "es",
136
+ "es-pa": "es",
137
+ "es-pe": "es",
138
+ "es-pr": "es",
139
+ "es-py": "es",
140
+ "es-sv": "es",
141
+ "es-us": "es",
142
+ "es-uy": "es",
143
+ "es-ve": "es",
144
+ "pt-ao": "pt",
145
+ "pt-ch": "pt",
146
+ "pt-cv": "pt",
147
+ "pt-fr": "pt",
148
+ "pt-gq": "pt",
149
+ "pt-gw": "pt",
150
+ "pt-lu": "pt",
151
+ "pt-mo": "pt",
152
+ "pt-mz": "pt",
153
+ "pt-pt": "pt",
154
+ "pt-st": "pt",
155
+ "pt-tl": "pt",
156
+ "az-arab": "az",
157
+ "az-cyrl": "az",
158
+ "blt-latn": "blt",
159
+ "bm-nkoo": "bm",
160
+ "bs-cyrl": "bs",
161
+ "byn-latn": "byn",
162
+ "cu-glag": "cu",
163
+ "dje-arab": "dje",
164
+ "dyo-arab": "dyo",
165
+ "en-dsrt": "en",
166
+ "en-shaw": "en",
167
+ "ff-adlm": "ff",
168
+ "ff-arab": "ff",
169
+ "ha-arab": "ha",
170
+ "hi-latn": "hi",
171
+ "iu-latn": "iu",
172
+ "kk-arab": "kk",
173
+ "ks-deva": "ks",
174
+ "ku-arab": "ku",
175
+ "ky-arab": "ky",
176
+ "ky-latn": "ky",
177
+ "ml-arab": "ml",
178
+ "mn-mong": "mn",
179
+ "mni-mtei": "mni",
180
+ "ms-arab": "ms",
181
+ "pa-arab": "pa",
182
+ "sat-deva": "sat",
183
+ "sd-deva": "sd",
184
+ "sd-khoj": "sd",
185
+ "sd-sind": "sd",
186
+ "shi-latn": "shi",
187
+ "so-arab": "so",
188
+ "sr-latn": "sr",
189
+ "sw-arab": "sw",
190
+ "tg-arab": "tg",
191
+ "ug-cyrl": "ug",
192
+ "uz-arab": "uz",
193
+ "uz-cyrl": "uz",
194
+ "vai-latn": "vai",
195
+ "wo-arab": "wo",
196
+ "yo-arab": "yo",
197
+ "yue-hans": "yue",
198
+ "zh-hant": "zh",
199
+ "zh-hant-hk": "zh",
200
+ "zh-hant-mo": "zh-hant-hk",
201
+ }[sourceLocale];
202
+ }
203
+ exports.getCldrParentLocale = getCldrParentLocale;
204
+ //# sourceMappingURL=setCldrParentLocales.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setCldrParentLocales.js","sourceRoot":"","sources":["../../src/migrations/setCldrParentLocales.ts"],"names":[],"mappings":";;;AAEA,SAAgB,oBAAoB,CAClC,MAAoB;IAEpB,IAAI,MAAM,CAAC,eAAe,KAAK,KAAK,EAAE;QACpC,OAAO;YACL,GAAG,MAAM;YACT,eAAe,EAAE,EAAqB;SACF,CAAA;KACvC;IAED,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE;QACnC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;YAChC,MAAM,EAAE,GAAG,mBAAmB,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAA;YACpD,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE;gBACzC,MAAM,CAAC,eAAe,GAAG;oBACvB,GAAG,MAAM,CAAC,eAAe;oBACzB,CAAC,MAAM,CAAC,EAAE,EAAE;iBACM,CAAA;aACrB;QACH,CAAC,CAAC,CAAA;KACH;IAED,OAAO,MAA2C,CAAA;AACpD,CAAC;AAvBD,oDAuBC;AAED,SAAgB,mBAAmB,CAAC,YAAoB;IACtD,OAAO;QACL,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,OAA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el/core";
2
+ export type CatalogFormat = "lingui" | "minimal" | "po" | "csv" | "po-gettext";
3
+ export type ExtractorCtx = {
4
+ /**
5
+ * Raw Sourcemaps object to mapping from.
6
+ * Check the https://github.com/mozilla/source-map#new-sourcemapconsumerrawsourcemap
7
+ */
8
+ sourceMaps?: any;
9
+ linguiConfig: LinguiConfigNormalized;
10
+ };
11
+ export type ExtractorType = {
12
+ match(filename: string): boolean;
13
+ extract(filename: string, code: string, onMessageExtracted: (msg: ExtractedMessage) => void, ctx?: ExtractorCtx): Promise<void> | void;
14
+ };
15
+ export type ExtractedMessage = {
16
+ id: string;
17
+ message?: string;
18
+ context?: string;
19
+ origin?: [filename: string, line: number, column?: number];
20
+ comment?: string;
21
+ };
22
+ export type CatalogFormatOptions = {
23
+ origins?: boolean;
24
+ lineNumbers?: boolean;
25
+ disableSelectWarning?: boolean;
26
+ };
27
+ export type OrderBy = "messageId" | "origin";
28
+ export type CatalogConfig = {
29
+ name?: string;
30
+ path: string;
31
+ include: string[];
32
+ exclude?: string[];
33
+ };
34
+ type LocaleObject = {
35
+ [locale: string]: string[] | string;
36
+ default?: string;
37
+ };
38
+ export type FallbackLocales = LocaleObject;
39
+ type ModuleSource = [string, string?];
40
+ type CatalogService = {
41
+ name: string;
42
+ apiKey: string;
43
+ };
44
+ export type LinguiConfig = {
45
+ catalogs?: CatalogConfig[];
46
+ compileNamespace?: "es" | "ts" | "cjs" | string;
47
+ extractorParserOptions?: {
48
+ /**
49
+ * default true
50
+ */
51
+ decoratorsBeforeExport?: boolean;
52
+ /**
53
+ * Enable if you use flow. This will apply Flow syntax to js files
54
+ */
55
+ flow?: boolean;
56
+ };
57
+ compilerBabelOptions?: GeneratorOptions;
58
+ fallbackLocales?: FallbackLocales | false;
59
+ extractors?: (string | ExtractorType)[];
60
+ prevFormat?: CatalogFormat;
61
+ localeDir?: string;
62
+ format?: CatalogFormat;
63
+ formatOptions?: CatalogFormatOptions;
64
+ locales: string[];
65
+ catalogsMergePath?: string;
66
+ orderBy?: OrderBy;
67
+ pseudoLocale?: string;
68
+ rootDir?: string;
69
+ runtimeConfigModule?: ModuleSource | {
70
+ [symbolName: string]: ModuleSource;
71
+ };
72
+ sourceLocale?: string;
73
+ service?: CatalogService;
74
+ };
75
+ export type LinguiConfigNormalized = Omit<LinguiConfig, "runtimeConfigModule"> & {
76
+ fallbackLocales?: FallbackLocales;
77
+ runtimeConfigModule: {
78
+ i18nImportModule: string;
79
+ i18nImportName: string;
80
+ TransImportModule: string;
81
+ TransImportName: string;
82
+ };
83
+ };
84
+ export {};
package/build/types.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare const pathJoinPosix: (...values: string[]) => string;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.pathJoinPosix = void 0;
7
+ const path_1 = __importDefault(require("path"));
8
+ // Enforce posix path delimiters internally
9
+ const pathJoinPosix = (...values) => path_1.default
10
+ // normalize double slashes
11
+ .join(...values)
12
+ // convert platform specific path.sep to posix
13
+ .split(path_1.default.sep)
14
+ .join("/");
15
+ exports.pathJoinPosix = pathJoinPosix;
16
+ //# sourceMappingURL=pathJoinPosix.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pathJoinPosix.js","sourceRoot":"","sources":["../../src/utils/pathJoinPosix.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAuB;AAEvB,2CAA2C;AACpC,MAAM,aAAa,GAAG,CAAC,GAAG,MAAgB,EAAE,EAAE,CACnD,cAAI;IACF,2BAA2B;KAC1B,IAAI,CAAC,GAAG,MAAM,CAAC;IAChB,8CAA8C;KAC7C,KAAK,CAAC,cAAI,CAAC,GAAG,CAAC;KACf,IAAI,CAAC,GAAG,CAAC,CAAA;AAND,QAAA,aAAa,iBAMZ"}
@@ -0,0 +1,2 @@
1
+ import { LinguiConfig } from "../types";
2
+ export declare function replaceRootDir<T extends Partial<LinguiConfig>>(config: T, rootDir: string): T;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.replaceRootDir = void 0;
4
+ function replaceRootDir(config, rootDir) {
5
+ return (function replaceDeep(value, rootDir) {
6
+ const replace = (s) => s.replace("<rootDir>", rootDir);
7
+ if (value == null) {
8
+ return value;
9
+ }
10
+ else if (typeof value === "string") {
11
+ return replace(value);
12
+ }
13
+ else if (Array.isArray(value)) {
14
+ return value.map((item) => replaceDeep(item, rootDir));
15
+ }
16
+ else if (typeof value === "object") {
17
+ Object.keys(value).forEach((key) => {
18
+ const newKey = replaceDeep(key, rootDir);
19
+ value[newKey] = replaceDeep(value[key], rootDir);
20
+ if (key !== newKey)
21
+ delete value[key];
22
+ });
23
+ }
24
+ return value;
25
+ })(config, rootDir);
26
+ }
27
+ exports.replaceRootDir = replaceRootDir;
28
+ //# sourceMappingURL=replaceRootDir.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replaceRootDir.js","sourceRoot":"","sources":["../../src/utils/replaceRootDir.ts"],"names":[],"mappings":";;;AAEA,SAAgB,cAAc,CAC5B,MAAS,EACT,OAAe;IAEf,OAAO,CAAC,SAAS,WAAW,CAAC,KAAU,EAAE,OAAe;QACtD,MAAM,OAAO,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;QAE9D,IAAI,KAAK,IAAI,IAAI,EAAE;YACjB,OAAO,KAAK,CAAA;SACb;aAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACpC,OAAO,OAAO,CAAC,KAAK,CAAC,CAAA;SACtB;aAAM,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YAC/B,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAA;SACvD;aAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACpC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;gBACjC,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;gBACxC,KAAK,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAA;gBAChD,IAAI,GAAG,KAAK,MAAM;oBAAE,OAAO,KAAK,CAAC,GAAG,CAAC,CAAA;YACvC,CAAC,CAAC,CAAA;SACH;QAED,OAAO,KAAK,CAAA;IACd,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAM,CAAA;AAC1B,CAAC;AAvBD,wCAuBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/conf",
3
- "version": "3.17.2",
3
+ "version": "4.0.0-next.1",
4
4
  "sideEffects": false,
5
5
  "description": "Get lingui configuration from package.json",
6
6
  "keywords": [
@@ -15,37 +15,30 @@
15
15
  "email": "tomas.ehrlich@gmail.com"
16
16
  },
17
17
  "main": "build/index.js",
18
+ "types": "build/index.d.ts",
18
19
  "engines": {
19
- "node": ">=14.0.0"
20
+ "node": ">=16.0.0"
21
+ },
22
+ "scripts": {
23
+ "build": "rimraf ./build && tsc"
20
24
  },
21
25
  "dependencies": {
26
+ "@babel/core": "7.20.12",
22
27
  "@babel/runtime": "^7.20.13",
23
28
  "chalk": "^4.1.0",
24
29
  "cosmiconfig": "^8.0.0",
25
- "cosmiconfig-typescript-loader": "^4.3.0",
26
- "jest-validate": "^26.5.2",
30
+ "jest-validate": "^29.4.3",
31
+ "jiti": "^1.17.1",
27
32
  "lodash.get": "^4.4.2"
28
33
  },
29
34
  "files": [
30
35
  "LICENSE",
31
36
  "README.md",
32
- "index.js",
33
- "index.d.ts"
37
+ "/build"
34
38
  ],
35
39
  "devDependencies": {
36
- "ts-node": "^10.9.1"
37
- },
38
- "peerDependencies": {
39
- "ts-node": ">=10",
40
- "typescript": ">=4"
41
- },
42
- "peerDependenciesMeta": {
43
- "ts-node": {
44
- "optional": true
45
- },
46
- "typescript": {
47
- "optional": true
48
- }
40
+ "@lingui/jest-mocks": "^3.0.3",
41
+ "tsd": "^0.26.1"
49
42
  },
50
- "gitHead": "31dcab5a9a8f88bfa8b3a2c7cd12aa2d908a1d80"
43
+ "gitHead": "27ee8e213ff6d0c7a0cd2b21c573d7f6da43fd85"
51
44
  }