@lingui/vite-plugin 4.1.1 → 4.1.2
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 +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -36,9 +36,8 @@ Please check that catalogs.path is filled properly.
|
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
const { locale, catalog } = fileCatalog;
|
|
39
|
-
api.getCatalogDependentFiles(catalog, locale)
|
|
40
|
-
|
|
41
|
-
});
|
|
39
|
+
const dependency = await api.getCatalogDependentFiles(catalog, locale);
|
|
40
|
+
dependency.forEach((file) => this.addWatchFile(file));
|
|
42
41
|
const messages = await catalog.getTranslations(locale, {
|
|
43
42
|
fallbackLocales: config.fallbackLocales,
|
|
44
43
|
sourceLocale: config.sourceLocale
|
package/dist/index.mjs
CHANGED
|
@@ -32,9 +32,8 @@ Please check that catalogs.path is filled properly.
|
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
34
|
const { locale, catalog } = fileCatalog;
|
|
35
|
-
getCatalogDependentFiles(catalog, locale)
|
|
36
|
-
|
|
37
|
-
});
|
|
35
|
+
const dependency = await getCatalogDependentFiles(catalog, locale);
|
|
36
|
+
dependency.forEach((file) => this.addWatchFile(file));
|
|
38
37
|
const messages = await catalog.getTranslations(locale, {
|
|
39
38
|
fallbackLocales: config.fallbackLocales,
|
|
40
39
|
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.2",
|
|
4
4
|
"description": "Vite plugin for Lingui message catalogs",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
"dist/"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@lingui/cli": "4.1.
|
|
43
|
-
"@lingui/conf": "4.1.
|
|
42
|
+
"@lingui/cli": "4.1.2",
|
|
43
|
+
"@lingui/conf": "4.1.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"vite": "3 - 4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@lingui/format-json": "^4.1.
|
|
49
|
+
"@lingui/format-json": "^4.1.2",
|
|
50
50
|
"unbuild": "^1.1.2",
|
|
51
51
|
"vite": "4.1.4"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "0cec936f2cbc190fdf8fe0581fe808e6c8fe3d20"
|
|
54
54
|
}
|