@lingui/vite-plugin 4.1.0 → 4.1.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/dist/index.cjs +3 -0
- package/dist/index.mjs +4 -1
- package/package.json +7 -6
package/dist/index.cjs
CHANGED
|
@@ -36,6 +36,9 @@ Please check that catalogs.path is filled properly.
|
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
const { locale, catalog } = fileCatalog;
|
|
39
|
+
api.getCatalogDependentFiles(catalog, locale).forEach((locale2) => {
|
|
40
|
+
this.addWatchFile(catalog.getFilename(locale2));
|
|
41
|
+
});
|
|
39
42
|
const messages = await catalog.getTranslations(locale, {
|
|
40
43
|
fallbackLocales: config.fallbackLocales,
|
|
41
44
|
sourceLocale: config.sourceLocale
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getConfig } from '@lingui/conf';
|
|
2
|
-
import { getCatalogForFile, getCatalogs, createCompiledCatalog } from '@lingui/cli/api';
|
|
2
|
+
import { getCatalogForFile, getCatalogs, getCatalogDependentFiles, createCompiledCatalog } from '@lingui/cli/api';
|
|
3
3
|
import path from 'path';
|
|
4
4
|
|
|
5
5
|
const fileRegex = /(\.po|\?lingui)$/;
|
|
@@ -32,6 +32,9 @@ Please check that catalogs.path is filled properly.
|
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
34
|
const { locale, catalog } = fileCatalog;
|
|
35
|
+
getCatalogDependentFiles(catalog, locale).forEach((locale2) => {
|
|
36
|
+
this.addWatchFile(catalog.getFilename(locale2));
|
|
37
|
+
});
|
|
35
38
|
const messages = await catalog.getTranslations(locale, {
|
|
36
39
|
fallbackLocales: config.fallbackLocales,
|
|
37
40
|
sourceLocale: config.sourceLocale
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingui/vite-plugin",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Vite plugin for Lingui message catalogs",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"i10n",
|
|
17
17
|
"localization",
|
|
18
18
|
"i9n",
|
|
19
|
-
"translation"
|
|
19
|
+
"translation",
|
|
20
|
+
"multilingual"
|
|
20
21
|
],
|
|
21
22
|
"scripts": {
|
|
22
23
|
"build": "rimraf ./dist && unbuild",
|
|
@@ -38,16 +39,16 @@
|
|
|
38
39
|
"dist/"
|
|
39
40
|
],
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"@lingui/cli": "4.1.
|
|
42
|
-
"@lingui/conf": "4.1.
|
|
42
|
+
"@lingui/cli": "4.1.1",
|
|
43
|
+
"@lingui/conf": "4.1.1"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
45
46
|
"vite": "3 - 4"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
|
-
"@lingui/format-json": "^4.1.
|
|
49
|
+
"@lingui/format-json": "^4.1.1",
|
|
49
50
|
"unbuild": "^1.1.2",
|
|
50
51
|
"vite": "4.1.4"
|
|
51
52
|
},
|
|
52
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "dad2c065901a9574bc117a8ef7ed75465ad713d0"
|
|
53
54
|
}
|