@lingui/vite-plugin 4.1.0 → 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 CHANGED
@@ -36,6 +36,8 @@ Please check that catalogs.path is filled properly.
36
36
  );
37
37
  }
38
38
  const { locale, catalog } = fileCatalog;
39
+ const dependency = await api.getCatalogDependentFiles(catalog, locale);
40
+ dependency.forEach((file) => this.addWatchFile(file));
39
41
  const messages = await catalog.getTranslations(locale, {
40
42
  fallbackLocales: config.fallbackLocales,
41
43
  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,8 @@ Please check that catalogs.path is filled properly.
32
32
  );
33
33
  }
34
34
  const { locale, catalog } = fileCatalog;
35
+ const dependency = await getCatalogDependentFiles(catalog, locale);
36
+ dependency.forEach((file) => this.addWatchFile(file));
35
37
  const messages = await catalog.getTranslations(locale, {
36
38
  fallbackLocales: config.fallbackLocales,
37
39
  sourceLocale: config.sourceLocale
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/vite-plugin",
3
- "version": "4.1.0",
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",
@@ -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.0",
42
- "@lingui/conf": "4.1.0"
42
+ "@lingui/cli": "4.1.2",
43
+ "@lingui/conf": "4.1.2"
43
44
  },
44
45
  "peerDependencies": {
45
46
  "vite": "3 - 4"
46
47
  },
47
48
  "devDependencies": {
48
- "@lingui/format-json": "^4.1.0",
49
+ "@lingui/format-json": "^4.1.2",
49
50
  "unbuild": "^1.1.2",
50
51
  "vite": "4.1.4"
51
52
  },
52
- "gitHead": "471813c5de9ade3acccf647e18922b570a804577"
53
+ "gitHead": "0cec936f2cbc190fdf8fe0581fe808e6c8fe3d20"
53
54
  }