diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 4f5d5e5..7c01f00 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,11 +4,11 @@
-
+
+
-
@@ -326,7 +326,7 @@
-
+
@@ -400,10 +400,10 @@
-
-
+
+
@@ -517,15 +517,7 @@
-
-
-
-
- 1743644703041
-
-
-
- 1743644703042
+
@@ -911,7 +903,15 @@
1752514466233
-
+
+
+ 1752515675314
+
+
+
+ 1752515675314
+
+
@@ -958,7 +958,6 @@
-
@@ -983,7 +982,8 @@
-
+
+
false
diff --git a/README.md b/README.md
index 1f13c2c..f6f01a9 100644
--- a/README.md
+++ b/README.md
@@ -154,14 +154,13 @@ We use **[Locize](https://locize.com)** for managing translations.
### 🔁 Workflow
-1. **Join the Locize project** via the [invitation link](https://www.locize.app/register?invitation=Uk9mvOCKkB7sjuUqI5jDBjZROveZIvdBQqzrpmB4oQtT1LNB4BnzzT0S0o1gx79N).
-
-2. **Pull latest translations** before editing:
+1. Join the Locize project** via the [invitation link](https://www.locize.app/register?invitation=Uk9mvOCKkB7sjuUqI5jDBjZROveZIvdBQqzrpmB4oQtT1LNB4BnzzT0S0o1gx79N).
+2. Make sure `LOCIZE_API_KEY` is available in your environment (e.g., in `.env`). You can get it from API, CDN, NOTIFICATIONS
+3. Pull latest translations** before editing:
```bash
npm run i18n:pull
```
-3. **Edit translation files** in `public/locales/{lang}/{namespace}.json`.
-4. Make sure `LOCIZE_API_KEY` is available in your environment (e.g., in `.env`).
+4. **Edit translation files** in `public/locales/{lang}/{namespace}.json`.
5. **Push your changes** after editing:
```bash
npm run i18n:sync
diff --git a/package.json b/package.json
index 28984c7..32edb2d 100644
--- a/package.json
+++ b/package.json
@@ -24,7 +24,7 @@
"lint": "eslint src --max-warnings=0 --fix",
"typecheck": "tsc --project tsconfig.json --noEmit",
"prepare": "husky install",
- "i18n:pull": "locize download --project-id e7156a3e-66fb-4035-a0f0-cebf1c63a3ba --api-key $LOCIZE_API_KEY --path ./public/locales",
+ "i18n:pull": "locize download --project-id e7156a3e-66fb-4035-a0f0-cebf1c63a3ba --path ./public/locales",
"i18n:sync": "locize sync --project-id e7156a3e-66fb-4035-a0f0-cebf1c63a3ba --path ./public/locales --update-values true"
},
"dependencies": {
diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx
index fe46a2e..6677266 100644
--- a/src/components/Navbar/index.tsx
+++ b/src/components/Navbar/index.tsx
@@ -28,6 +28,18 @@ interface NavbarProps {
mode: Mode;
onChangeMode: () => void;
}
+const languages = [
+ { code: 'en', label: 'English' },
+ { code: 'de', label: 'Deutsch' },
+ { code: 'es', label: 'Español' },
+ { code: 'fr', label: 'Français' },
+ { code: 'pt', label: 'Português' },
+ { code: 'ja', label: '日本語' },
+ { code: 'hi', label: 'हिंदी' },
+ { code: 'nl', label: 'Nederlands' },
+ { code: 'ru', label: 'Русский' },
+ { code: 'zh', label: '中文' }
+];
const Navbar: React.FC = ({
mode,
@@ -75,8 +87,11 @@ const Navbar: React.FC = ({
}
}}
>
-
-
+ {languages.map((lang) => (
+
+ ))}
);