From 052c8e87f29ad9dbd7754f562cb63f7b83663ffd Mon Sep 17 00:00:00 2001
From: Nec0ti <140799408+Nec0ti@users.noreply.github.com>
Date: Sat, 18 Jan 2025 14:59:39 +0300
Subject: [PATCH] language change support
---
change.html | 100 ------
index.html | 253 ++++++++++++++-
locales/en.json | 18 ++
locales/tr.json | 17 +
main.js | 68 ++--
package-lock.json | 789 +++++++++++++++++++++++-----------------------
package.json | 31 +-
renderer.js | 9 +
setting.js | 8 +
settings.html | 149 +++++++++
10 files changed, 910 insertions(+), 532 deletions(-)
delete mode 100644 change.html
create mode 100644 locales/en.json
create mode 100644 locales/tr.json
create mode 100644 renderer.js
create mode 100644 setting.js
create mode 100644 settings.html
diff --git a/change.html b/change.html
deleted file mode 100644
index f6842d9..0000000
--- a/change.html
+++ /dev/null
@@ -1,100 +0,0 @@
-
-
-
-
-
- API Anahtarı Değiştir
-
-
-
-
-
-
-
- API Anahtarını Değiştir
-
-
-
-
-
-
diff --git a/index.html b/index.html
index 9397f6a..611c23e 100644
--- a/index.html
+++ b/index.html
@@ -12,7 +12,7 @@
display: flex;
justify-content: space-between;
align-items: center;
- background-color: #333;
+ background-color: #181818;
padding: 10px 20px;
}
@@ -92,6 +92,53 @@
input:checked + .slider:before {
transform: translateX(26px);
}
+
+ /* Theme Styles */
+ body.light-theme {
+ background-color: #f4f4f4;
+ color: #333;
+ }
+
+ body.dark-theme {
+ background-color: #333;
+ color: #f4f4f4;
+ }
+
+ /* Language Select */
+ .language-select {
+ font-size: 1rem;
+ padding: 5px;
+ background-color: #333;
+ color: white;
+ border: none;
+ border-radius: 5px;
+ cursor: pointer;
+ }
+
+ .language-select:focus {
+ outline: none;
+ }
+
+ .action-buttons {
+ display: flex;
+ gap: 10px;
+ align-items: center;
+ }
+
+ .action-buttons button {
+ padding: 5px 10px;
+ font-size: 1rem;
+ background-color: #4CAF50;
+ color: white;
+ border: none;
+ border-radius: 5px;
+ cursor: pointer;
+ }
+
+ .action-buttons button:hover {
+ background-color: #45a049;
+ }
+
@@ -99,29 +146,207 @@
- Fatrocu
+ Fatrocu
- Faturaları buraya sürükleyin veya tıklayarak seçin
+ Drag invoices here or click to select
-
+
+
+