astro-react-i18next 0.3.1 → 0.3.3

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +21 -20
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/index.ts
2
- import path from "node:path";
2
+ import path from "pathe";
3
3
  var INTEGRATION_NAME = "astro-react-i18next";
4
4
  var DEFAULT_OPTIONS = {
5
5
  defaultLocale: "en-US",
@@ -62,7 +62,7 @@ function buildI18nextInitScript({
62
62
  escapeValue: false,
63
63
  },
64
64
  backend: {
65
- loadPath: "${path.join(basePath, mergedOptions.localesDir || "")}/{{lng}}/{{ns}}.json",
65
+ loadPath: "${path.resolve(path.join(basePath, mergedOptions.localesDir || ""))}/{{lng}}/{{ns}}.json",
66
66
  },
67
67
  astroReactI18next: ${JSON.stringify({
68
68
  defaultLocale: mergedOptions.defaultLocale,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-react-i18next",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Integrates i18next and react-i18next seamlessly into your Astro website to provide robust i18n support for React components.",
5
5
  "keywords": [
6
6
  "astro-integration",
@@ -41,33 +41,34 @@
41
41
  "*.{js,jsx,ts,tsx,mjs,astro}": "eslint --fix --max-warnings 0"
42
42
  },
43
43
  "dependencies": {
44
- "i18next": "^24.2.2",
45
- "i18next-browser-languagedetector": "^8.0.4",
44
+ "i18next": "^25.6.0",
45
+ "i18next-browser-languagedetector": "^8.2.0",
46
46
  "i18next-fs-backend": "^2.6.0",
47
47
  "i18next-http-backend": "^3.0.2",
48
- "react-i18next": "^15.4.1"
48
+ "pathe": "^2.0.3",
49
+ "react-i18next": "^16.0.0"
49
50
  },
50
51
  "devDependencies": {
51
- "@eslint/js": "^9.22.0",
52
- "@types/node": "^22.13.10",
53
- "@types/react": "^19.0.10",
54
- "@types/react-dom": "^19.0.4",
55
- "astro": "^5.4.2",
56
- "esbuild": "^0.25.0",
57
- "eslint": "^9.22.0",
52
+ "@eslint/js": "^9.37.0",
53
+ "@types/node": "^24.7.2",
54
+ "@types/react": "^19.2.2",
55
+ "@types/react-dom": "^19.2.1",
56
+ "astro": "^5.14.4",
57
+ "esbuild": "^0.25.10",
58
+ "eslint": "^9.37.0",
58
59
  "eslint-config-flat-gitignore": "^2.1.0",
59
- "eslint-config-prettier": "^10.1.1",
60
+ "eslint-config-prettier": "^10.1.8",
60
61
  "eslint-plugin-astro": "^1.3.1",
61
- "eslint-plugin-import": "^2.31.0",
62
- "eslint-plugin-perfectionist": "^4.10.0",
63
- "eslint-plugin-react": "^7.37.4",
64
- "globals": "^16.0.0",
62
+ "eslint-plugin-import": "^2.32.0",
63
+ "eslint-plugin-perfectionist": "^4.15.1",
64
+ "eslint-plugin-react": "^7.37.5",
65
+ "globals": "^16.4.0",
65
66
  "husky": "^9.1.7",
66
- "lint-staged": "^15.4.3",
67
- "prettier": "^3.5.3",
67
+ "lint-staged": "^16.2.4",
68
+ "prettier": "^3.6.2",
68
69
  "prettier-plugin-astro": "^0.14.1",
69
- "typescript": "^5.8.2",
70
- "typescript-eslint": "^8.26.0"
70
+ "typescript": "^5.9.3",
71
+ "typescript-eslint": "^8.46.0"
71
72
  },
72
73
  "engines": {
73
74
  "node": "^18.17.1 || ^20.3.0 || >=21.0.0"