@lingui/loader 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 CHANGED
@@ -15,6 +15,9 @@ const loader = async function(source) {
15
15
  catalogRelativePath,
16
16
  await api.getCatalogs(config)
17
17
  );
18
+ api.getCatalogDependentFiles(catalog, locale).forEach((locale2) => {
19
+ this.addDependency(catalog.getFilename(locale2));
20
+ });
18
21
  const messages = await catalog.getTranslations(locale, {
19
22
  fallbackLocales: config.fallbackLocales,
20
23
  sourceLocale: config.sourceLocale
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import path from 'path';
2
2
  import { getConfig } from '@lingui/conf';
3
- import { getCatalogForFile, getCatalogs, createCompiledCatalog } from '@lingui/cli/api';
3
+ import { getCatalogForFile, getCatalogs, getCatalogDependentFiles, createCompiledCatalog } from '@lingui/cli/api';
4
4
 
5
5
  const loader = async function(source) {
6
6
  const options = this.getOptions() || {};
@@ -13,6 +13,9 @@ const loader = async function(source) {
13
13
  catalogRelativePath,
14
14
  await getCatalogs(config)
15
15
  );
16
+ getCatalogDependentFiles(catalog, locale).forEach((locale2) => {
17
+ this.addDependency(catalog.getFilename(locale2));
18
+ });
16
19
  const messages = await catalog.getTranslations(locale, {
17
20
  fallbackLocales: config.fallbackLocales,
18
21
  sourceLocale: config.sourceLocale
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/loader",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "webpack loader for lingui message catalogs",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.cjs",
@@ -19,7 +19,8 @@
19
19
  "i10n",
20
20
  "localization",
21
21
  "i9n",
22
- "translation"
22
+ "translation",
23
+ "multilingual"
23
24
  ],
24
25
  "scripts": {
25
26
  "build": "rimraf ./dist && unbuild",
@@ -42,16 +43,16 @@
42
43
  ],
43
44
  "dependencies": {
44
45
  "@babel/runtime": "^7.20.13",
45
- "@lingui/cli": "4.1.0",
46
- "@lingui/conf": "4.1.0"
46
+ "@lingui/cli": "4.1.1",
47
+ "@lingui/conf": "4.1.1"
47
48
  },
48
49
  "devDependencies": {
49
- "@lingui/format-json": "4.1.0",
50
+ "@lingui/format-json": "4.1.1",
50
51
  "unbuild": "^1.1.2",
51
52
  "webpack": "^5.76.1"
52
53
  },
53
54
  "peerDependencies": {
54
55
  "webpack": "^5.0.0"
55
56
  },
56
- "gitHead": "471813c5de9ade3acccf647e18922b570a804577"
57
+ "gitHead": "dad2c065901a9574bc117a8ef7ed75465ad713d0"
57
58
  }