next-auth-mfelfelani72 0.0.50 → 0.0.52

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
File without changes
@@ -1,2 +1,10 @@
1
- import { useTranslation as useTranslationOriginal } from "forma-li";
2
- export declare const useTranslation: typeof useTranslationOriginal;
1
+ /**
2
+ * @Author: Mohammad Felfelani
3
+ * @Email: mfelfelani72@gmail.com
4
+ * @Date: 2025-10-04 14:27:32
5
+ * @Description: Translation hook wrapper - re-export from forma-li
6
+ */
7
+ export declare function useTranslation(): {
8
+ t: (key: string, fallback?: string) => string;
9
+ lang: "en" | "fa" | "ar" | "zh" | "fr" | "ru" | "es" | "de" | "it" | "pt" | "hi" | "ja" | "ko" | "tr" | "ur" | "id" | "ms" | "pl" | "uk" | "ro" | "nl" | "sv" | "no" | "da" | "fi" | "el" | "hu" | "cs" | "he" | "th" | "vi";
10
+ };
@@ -5,8 +5,9 @@
5
5
  * @Description: Translation hook wrapper - re-export from forma-li
6
6
  */
7
7
  "use client";
8
- // Functions
9
- import { setGetDictionary, useTranslation as useTranslationOriginal, } from "forma-li";
8
+ import { createTranslationInstance, useTranslation as useTranslationOriginal, } from "forma-li";
10
9
  import { getDictionary } from "../locale";
11
- setGetDictionary(getDictionary);
12
- export const useTranslation = useTranslationOriginal;
10
+ const translation = createTranslationInstance(getDictionary);
11
+ export function useTranslation() {
12
+ return useTranslationOriginal(translation);
13
+ }
package/package.json CHANGED
@@ -1,25 +1,17 @@
1
1
  {
2
2
  "name": "next-auth-mfelfelani72",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
9
  "private": false,
10
- "scripts": {
11
- "dev": "next dev --port 3000 --turbopack",
12
- "build": "npm run build:dist",
13
- "build:dist": "tsc -p tsconfig.build.json",
14
- "build:server": "tsc -p tsconfig.server.json",
15
- "start": "next start",
16
- "lint": "eslint"
17
- },
18
10
  "dependencies": {
19
11
  "axios": "^1.19.0",
20
12
  "clsx": "^2.1.1",
21
13
  "cookie": "^2.0.1",
22
- "forma-li": "1.0.30",
14
+ "forma-li": "1.0.32",
23
15
  "forma-ui": "^0.0.27",
24
16
  "js-cookie": "^3.0.8",
25
17
  "lucide-react": "^1.31.0",
@@ -42,5 +34,13 @@
42
34
  "eslint-config-next": "16.3.0",
43
35
  "tailwindcss": "^4.3.3",
44
36
  "typescript": "^7.0.2"
37
+ },
38
+ "scripts": {
39
+ "dev": "next dev --port 3000 --turbopack",
40
+ "build": "npm run build:dist",
41
+ "build:dist": "tsc -p tsconfig.build.json",
42
+ "build:server": "tsc -p tsconfig.server.json",
43
+ "start": "next start",
44
+ "lint": "eslint"
45
45
  }
46
- }
46
+ }