@lingui/cli 6.0.0-next.3 → 6.0.0-next.4

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.
@@ -78,7 +78,7 @@ export function getCatalogForFile(file, catalogs) {
78
78
  for (const catalog of catalogs) {
79
79
  const catalogFile = `${catalog.path}${catalog.format.getCatalogExtension()}`;
80
80
  const catalogGlob = replacePlaceholders(catalogFile, { locale: "*" });
81
- const matchPattern = normalizeRelativePath(path.relative(catalog.config.rootDir, catalogGlob)).replace(/(\(|\)|\[|\])/g, "\\$1");
81
+ const matchPattern = normalizeRelativePath(path.relative(catalog.config.rootDir, catalogGlob)).replace(/(\(|\)|\[|\]|\{|\})/g, "\\$1");
82
82
  const match = micromatch.capture(matchPattern, normalizeRelativePath(file));
83
83
  if (match) {
84
84
  return {
@@ -100,7 +100,7 @@ export async function extractFromFileWithBabel(filename, code, onMessageExtracte
100
100
  [
101
101
  linguiMacroPlugin,
102
102
  {
103
- extract: true,
103
+ descriptorFields: "all",
104
104
  linguiConfig: ctx.linguiConfig,
105
105
  },
106
106
  ],
@@ -26,7 +26,7 @@ export const pluginLinguiMacro = (options) => ({
26
26
  [
27
27
  linguiMacroPlugin,
28
28
  {
29
- extract: true,
29
+ descriptorFields: "all",
30
30
  linguiConfig: options.linguiConfig,
31
31
  },
32
32
  ],
package/package.json CHANGED
@@ -1,17 +1,19 @@
1
1
  {
2
2
  "name": "@lingui/cli",
3
- "version": "6.0.0-next.3",
4
- "description": "CLI for working wit message catalogs",
3
+ "version": "6.0.0-next.4",
4
+ "description": "Lingui CLI to extract messages, compile catalogs, and manage translation workflows",
5
5
  "type": "module",
6
6
  "keywords": [
7
+ "lingui",
8
+ "linguijs",
7
9
  "cli",
8
10
  "i18n",
9
- "internationalization",
10
- "i10n",
11
- "localization",
12
- "i9n",
11
+ "extract",
12
+ "compile",
13
+ "catalog",
14
+ "gettext",
13
15
  "translation",
14
- "multilingual"
16
+ "localization"
15
17
  ],
16
18
  "homepage": "https://lingui.dev",
17
19
  "repository": {
@@ -50,12 +52,12 @@
50
52
  "@babel/generator": "^7.28.5",
51
53
  "@babel/parser": "^7.22.0",
52
54
  "@babel/types": "^7.21.2",
53
- "@lingui/babel-plugin-extract-messages": "6.0.0-next.3",
54
- "@lingui/babel-plugin-lingui-macro": "6.0.0-next.3",
55
- "@lingui/conf": "6.0.0-next.3",
56
- "@lingui/core": "6.0.0-next.3",
57
- "@lingui/format-po": "6.0.0-next.3",
58
- "@lingui/message-utils": "6.0.0-next.3",
55
+ "@lingui/babel-plugin-extract-messages": "6.0.0-next.4",
56
+ "@lingui/babel-plugin-lingui-macro": "6.0.0-next.4",
57
+ "@lingui/conf": "6.0.0-next.4",
58
+ "@lingui/core": "6.0.0-next.4",
59
+ "@lingui/format-po": "6.0.0-next.4",
60
+ "@lingui/message-utils": "6.0.0-next.4",
59
61
  "chokidar": "5.0.0",
60
62
  "cli-table3": "^0.6.5",
61
63
  "commander": "^14.0.2",
@@ -79,5 +81,5 @@
79
81
  "msw": "^2.12.7",
80
82
  "vitest": "4.0.18"
81
83
  },
82
- "gitHead": "ebcb6dc8e8d327ae5775cadee931942ef309480f"
84
+ "gitHead": "e8ab674fdc9d6373c8a20bb6061ac836661ea22e"
83
85
  }