@graphcommerce/lingui-next 2.2.0 → 4.30.0-canary.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.30.0-canary.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1613](https://github.com/graphcommerce-org/graphcommerce/pull/1613) [`d95ec2ae6`](https://github.com/graphcommerce-org/graphcommerce/commit/d95ec2ae6d8da574995c2b110425c4445b30351b) Thanks [@paales](https://github.com/paales)! - Removed the usage of a separate env variables for the monorepo for lingui, creating command parity with non monorepo setups.
8
+
9
+ ## 2.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#1600](https://github.com/graphcommerce-org/graphcommerce/pull/1600) [`127593b65`](https://github.com/graphcommerce-org/graphcommerce/commit/127593b65b0cc367dcb38ba88b589a2abcca75c2) Thanks [@paales](https://github.com/paales)! - Make sure \*.ts files are also scanned when extracting lingui files
14
+
3
15
  ## 2.2.0
4
16
 
5
17
  ### Minor Changes
package/config.js CHANGED
@@ -1,3 +1,5 @@
1
+ const { isMonorepo } = require('@graphcommerce/next-config')
2
+
1
3
  /**
2
4
  * Augmenting the locale config to be compatible with GraphCommerce.
3
5
  *
@@ -11,15 +13,18 @@
11
13
  function linguiNextConfig(config) {
12
14
  const { locales, ...otherConfig } = config
13
15
  return {
14
- locales: config.locales.map((l) => l?.split('-')[0]),
16
+ locales: isMonorepo()
17
+ ? ['en', 'nl', 'fr', 'de', 'es', 'it']
18
+ : config.locales.map((l) => l?.split('-')[0]),
15
19
  formatOptions: { lineNumbers: false, origins: false },
16
20
  catalogs: [
17
21
  {
18
22
  path: 'locales/{locale}',
19
23
  include: [
20
24
  '<rootDir>/**/*.tsx',
25
+ '<rootDir>/**/!(*.d).ts',
21
26
  '<rootDir>/../../packages/**/*.tsx',
22
- '<rootDir>/../../packages/**/*.ts',
27
+ '<rootDir>/../../packages/**/!(*.d).ts',
23
28
  ],
24
29
  exclude: ['**/node_modules/!(@graphcommerce)/**'],
25
30
  },
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/lingui-next",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "2.2.0",
5
+ "version": "4.30.0-canary.0",
6
6
  "sideEffects": false,
7
7
  "scripts": {
8
8
  "dev": "tsc -W"
@@ -15,12 +15,15 @@
15
15
  }
16
16
  },
17
17
  "devDependencies": {
18
- "@graphcommerce/eslint-config-pwa": "^4.1.8",
18
+ "@graphcommerce/eslint-config-pwa": "^4.1.10",
19
19
  "@graphcommerce/prettier-config-pwa": "^4.0.6",
20
20
  "@graphcommerce/typescript-config-pwa": "^4.0.3",
21
21
  "@lingui/conf": "^3.14.0",
22
22
  "@playwright/test": "^1.21.1"
23
23
  },
24
+ "dependencies": {
25
+ "@graphcommerce/next-config": "4.30.0-canary.0"
26
+ },
24
27
  "peerDependencies": {
25
28
  "@lingui/core": "^3.13.2",
26
29
  "@lingui/react": "^3.13.2",