next-translate-plugin 2.5.0-canary.3 → 2.5.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/lib/cjs/loader.js CHANGED
@@ -21,8 +21,8 @@ function loader(rawCode) {
21
21
  var shouldUseTemplateAppDir = isClientComponent ||
22
22
  (0, utils_1.isInsideAppDir)(normalizedResourcePath, appFolder, pagesFolder);
23
23
  var pagesPath = (shouldUseTemplateAppDir ? appFolder : pagesFolder);
24
- if (normalizedResourcePath.includes('node_modules/next/dist/pages/_app') &&
25
- !hasAppJs) {
24
+ if (!hasAppJs &&
25
+ normalizedResourcePath.includes('node_modules/next/dist/pages/_app')) {
26
26
  return (0, utils_1.getDefaultAppJs)(existLocalesFolder);
27
27
  }
28
28
  if (normalizedResourcePath.includes('node_modules/'))
package/lib/esm/loader.js CHANGED
@@ -16,8 +16,8 @@ export default function loader(rawCode) {
16
16
  var shouldUseTemplateAppDir = isClientComponent ||
17
17
  isInsideAppDir(normalizedResourcePath, appFolder, pagesFolder);
18
18
  var pagesPath = (shouldUseTemplateAppDir ? appFolder : pagesFolder);
19
- if (normalizedResourcePath.includes('node_modules/next/dist/pages/_app') &&
20
- !hasAppJs) {
19
+ if (!hasAppJs &&
20
+ normalizedResourcePath.includes('node_modules/next/dist/pages/_app')) {
21
21
  return getDefaultAppJs(existLocalesFolder);
22
22
  }
23
23
  if (normalizedResourcePath.includes('node_modules/'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-translate-plugin",
3
- "version": "2.5.0-canary.3",
3
+ "version": "2.5.0",
4
4
  "description": "Tiny and powerful i18n plugin to translate your Next.js pages.",
5
5
  "license": "MIT",
6
6
  "keywords": [