i18nexus-cli 3.8.3 → 4.0.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/README.md CHANGED
@@ -49,17 +49,6 @@ If your i18nexus project is set to **`i18next`**:
49
49
  └── common.json
50
50
  ```
51
51
 
52
- If your i18nexus project is set to **`i18next`** and the CLI detects you're using **Next.js + App Router**:
53
-
54
- ```
55
- .
56
- └── locales
57
- ├── en
58
- | └── common.json
59
- └── de
60
- └── common.json
61
- ```
62
-
63
52
  If your i18nexus project is set to **`next-intl`**:
64
53
 
65
54
  ```
package/commands/pull.js CHANGED
@@ -45,20 +45,7 @@ const pull = async (opt, internalOptions = {}) => {
45
45
  }
46
46
 
47
47
  if (projectLibrary === 'i18next') {
48
- const hasAppDir =
49
- fs.existsSync(`${process.cwd()}/app`) ||
50
- fs.existsSync(`${process.cwd()}/src/app`);
51
- const usingAppRouter =
52
- hasAppDir &&
53
- (fs.existsSync(`${process.cwd()}/.next`) ||
54
- fs.existsSync(`${process.cwd()}/next.config.js`) ||
55
- fs.existsSync(`${process.cwd()}/next.config.ts`));
56
-
57
- if (usingAppRouter) {
58
- path = `${process.cwd()}/locales`;
59
- } else {
60
- path = `${process.cwd()}/public/locales`;
61
- }
48
+ path = `${process.cwd()}/public/locales`;
62
49
  } else if (projectLibrary === 'react-intl') {
63
50
  const hasSrcDir = fs.existsSync(`${process.cwd()}/src`);
64
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18nexus-cli",
3
- "version": "3.8.3",
3
+ "version": "4.0.0",
4
4
  "description": "Command line interface (CLI) for accessing the i18nexus API",
5
5
  "main": "index.js",
6
6
  "bin": {