@lingui/vite-plugin 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.
- package/build/index.js +4 -8
- package/build/index.js.map +1 -1
- package/package.json +5 -5
- package/CHANGELOG.md +0 -32
package/build/index.js
CHANGED
|
@@ -22,14 +22,10 @@ function lingui(linguiConfig = {}) {
|
|
|
22
22
|
const catalogRelativePath = path_1.default.relative(config.rootDir, id);
|
|
23
23
|
const fileCatalog = (0, api_1.getCatalogForFile)(catalogRelativePath, (0, api_1.getCatalogs)(config));
|
|
24
24
|
const { locale, catalog } = fileCatalog;
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
sourceLocale: config.sourceLocale,
|
|
30
|
-
});
|
|
31
|
-
return acc;
|
|
32
|
-
}, {});
|
|
25
|
+
const messages = catalog.getTranslations(locale, {
|
|
26
|
+
fallbackLocales: config.fallbackLocales,
|
|
27
|
+
sourceLocale: config.sourceLocale,
|
|
28
|
+
});
|
|
33
29
|
const compiled = (0, api_1.createCompiledCatalog)(locale, messages, {
|
|
34
30
|
strict: false,
|
|
35
31
|
namespace: "es",
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAwC;AACxC,yCAIwB;AACxB,gDAAuB;AAGvB,MAAM,SAAS,GAAG,SAAS,CAAA;AAQ3B,SAAgB,MAAM,CAAC,eAAiC,EAAE;IACxD,MAAM,MAAM,GAAG,IAAA,gBAAS,EAAC,YAAY,CAAC,CAAA;IAEtC,OAAO;QACL,IAAI,EAAE,oBAAoB;QAE1B,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE;YACjB,kDAAkD;YAClD,MAAM,CAAC,YAAY,CAAC,OAAO,GAAG,MAAM,CAAC,YAAY,CAAC,OAAO,IAAI,EAAE,CAAA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M,CAAC,CACpB,CAAA;gBAED,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,WAAW,CAAA;gBAEvC,MAAM,QAAQ,GAAG,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE;oBAC/C,eAAe,EAAE,MAAM,CAAC,eAAe;oBACvC,YAAY,EAAE,MAAM,CAAC,YAAY;iBAClC,CAAC,CAAA;gBAEF,MAAM,QAAQ,GAAG,IAAA,2BAAqB,EAAC,MAAM,EAAE,QAAQ,EAAE;oBACvD,MAAM,EAAE,KAAK;oBACb,SAAS,EAAE,IAAI;oBACf,YAAY,EAAE,MAAM,CAAC,YAAY;iBAClC,CAAC,CAAA;gBAEF,OAAO;oBACL,IAAI,EAAE,QAAQ;oBACd,GAAG,EAAE,IAAI,EAAE,kCAAkC;iBAC9C,CAAA;aACF;QACH,CAAC;KACF,CAAA;AACH,CAAC;AAzCD,wBAyCC;AAED,kBAAe,MAAM,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingui/vite-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-next.1",
|
|
4
4
|
"description": "Vite plugin for Lingui message catalogs",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"url": "https://github.com/lingui/js-lingui/issues"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
|
-
"node": ">=
|
|
30
|
+
"node": ">=16.0.0"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
33
|
"LICENSE",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"build/"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@lingui/cli": "
|
|
39
|
-
"@lingui/conf": "
|
|
38
|
+
"@lingui/cli": "^4.0.0-next.1",
|
|
39
|
+
"@lingui/conf": "^4.0.0-next.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"vite": "3.2.4"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "27ee8e213ff6d0c7a0cd2b21c573d7f6da43fd85"
|
|
45
45
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [3.17.2](https://github.com/lingui/js-lingui/compare/v3.17.1...v3.17.2) (2023-02-24)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Bug Fixes
|
|
10
|
-
|
|
11
|
-
* **vite:** externalize macro imports ([#1466](https://github.com/lingui/js-lingui/issues/1466)) ([1719430](https://github.com/lingui/js-lingui/commit/1719430498cc7dc5071b883cd301e6618ca41cbf))
|
|
12
|
-
* **vite-plugin:** change default export to named export ([#1465](https://github.com/lingui/js-lingui/issues/1465)) ([15510c1](https://github.com/lingui/js-lingui/commit/15510c1a30020669989a78ae6677679cd7562a87)), closes [#1450](https://github.com/lingui/js-lingui/issues/1450)
|
|
13
|
-
* **vite-plugin:** ship in dual package format for compatibility with Vite ([#1450](https://github.com/lingui/js-lingui/issues/1450)) ([e3a2b39](https://github.com/lingui/js-lingui/commit/e3a2b3936e9f2d74c1357c493537c3c291b4875f))
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
## [3.17.1](https://github.com/lingui/js-lingui/compare/v3.17.0...v3.17.1) (2023-02-07)
|
|
20
|
-
|
|
21
|
-
**Note:** Version bump only for package @lingui/vite-plugin
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
# [3.17.0](https://github.com/lingui/js-lingui/compare/v3.16.1...v3.17.0) (2023-02-01)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
### Features
|
|
31
|
-
|
|
32
|
-
* implement @lingui/vite-plugin ([#1306](https://github.com/lingui/js-lingui/issues/1306)) ([db5d3c3](https://github.com/lingui/js-lingui/commit/db5d3c309041202014d98b71894b473c587f643d))
|