-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathi18n.js
More file actions
198 lines (194 loc) · 8.11 KB
/
i18n.js
File metadata and controls
198 lines (194 loc) · 8.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
// ==========================================
// Stash - Internationalization (i18n)
// ==========================================
const translations = {
en: {
saveAll: 'Save All',
export: 'Export',
import: 'Import',
settings: 'Settings',
delete: 'Delete',
scanDuplicates: 'Duplicates',
allTabs: 'All Tabs',
favorites: 'Favorites',
trash: 'Trash',
groups: 'Groups',
tabs: 'Tabs',
tabsCount: 'tabs',
searchPlaceholder: 'Search...',
found: 'found',
noTabsYet: 'No tabs yet',
noTabsDescription: 'Save your open tabs with one click',
trashEmpty: 'Trash is empty',
trashEmptyDesc: 'Deleted groups will appear here',
noFavorites: 'No favorites yet',
noFavoritesDesc: 'Mark items as favorite to see them here',
general: 'General',
appearance: 'Appearance',
language: 'Language',
closeAfterSave: 'Close after save',
closeAfterSaveDesc: 'Automatically close tabs after they are stashed',
includePinned: 'Include pinned',
includePinnedDesc: 'Also save your pinned tabs',
themeDark: 'Dark',
themeLight: 'Light',
themeSystem: 'System',
dataManagement: 'Data Management',
clearAllData: 'Reset All',
autoSave: 'Auto Save',
enableAutoSave: 'Enable Auto Save',
autoSaveDesc: 'Backup tabs every 30 minutes',
autoSaveInterval: 'Interval',
autoSaveIntervalDesc: 'How often should we save?',
min: 'min',
hour: 'hour',
hours: 'hours',
tabsSaved: 'tabs saved',
tabsOpened: 'tabs opened',
groupDeleted: 'Group moved to trash',
allDataCleared: 'All data cleared',
emptyTrash: 'Empty Trash',
confirmEmptyTrash: 'Are you sure you want to permanently delete all items in trash?',
confirmPermanentDelete: 'Delete permanently?',
errorOccurred: 'An error occurred',
confirmClearAll: 'Are you sure?',
justNow: 'Just now',
minutesAgo: 'min ago',
hoursAgo: 'hours ago',
daysAgo: 'days ago',
untitled: 'Untitled',
favorite: 'Favorite',
openAll: 'Open All',
noTabsToSave: 'No tabs to save',
fullscreen: 'Open Dashboard',
activeTabs: 'Active Tabs',
about: 'About',
aboutDesc: 'Stash is an open source project designed to help you manage your tabs efficiently.',
openSourceMsg: 'This project is open source.',
craftedBy: 'Crafted by',
sourceCode: 'Source Code',
// Onboarding
stepWelcome: 'Welcome',
stepFeatures: 'Features',
stepCustomize: 'Customize',
stepReady: 'Ready',
welcomeTitle: 'Welcome to Stash',
welcomeSubtitle: "Let's set up your experience.",
featuresTitle: 'What can Stash do?',
featuresSubtitle: 'Discover how Stash helps you stay organized.',
feature1Title: 'One-Click Save',
feature1Desc: 'Instantly save all your open tabs into a clean, organized group.',
feature2Title: 'Organize Groups',
feature2Desc: 'Name your groups, search through them, and restore them anytime.',
feature3Title: 'Auto Save',
feature3Desc: 'Never lose your work with background auto-save capability.',
customizeTitle: 'Make it yours',
customizeSubtitle: 'Customize the look and feel.',
themeLabel: 'THEME',
preferencesLabel: 'PREFERENCES',
allDone: 'All Done!',
allDoneDesc: 'You can always change these settings later from the dashboard.',
readyTitle: "You're all set!",
readySubtitle: 'Your new minimalist tab manager is ready to use.',
back: 'Back',
next: 'Continue',
finish: 'Get Started'
},
tr: {
saveAll: 'Tümünü Kaydet',
export: 'Dışa Aktar',
import: 'İçe Aktar',
settings: 'Ayarlar',
delete: 'Sil',
scanDuplicates: 'Çoğaltmalar',
allTabs: 'Tüm Sekmeler',
favorites: 'Favoriler',
trash: 'Çöp Kutusu',
groups: 'Grup',
tabs: 'Sekme',
tabsCount: 'sekme',
searchPlaceholder: 'Ara...',
found: 'bulundu',
noTabsYet: 'Henüz sekme yok',
noTabsDescription: 'Kaydetmek için butona tıklayın',
trashEmpty: 'Çöp kutusu boş',
trashEmptyDesc: 'Silinen gruplar burada görünecek',
noFavorites: 'Favori yok',
noFavoritesDesc: 'Favorileriniz burada görünür',
general: 'Genel',
appearance: 'Görünüm',
language: 'Dil',
closeAfterSave: 'Kayıttan sonra kapat',
closeAfterSaveDesc: 'Kaydedilen sekmeleri otomatik olarak kapatır',
includePinned: 'Sabitlenenleri dahil et',
includePinnedDesc: 'Sabitlenmiş sekmeleri de kaydeder',
themeDark: 'Koyu',
themeLight: 'Açık',
themeSystem: 'Sistem',
dataManagement: 'Veri Yönetimi',
clearAllData: 'Tümünü Sıfırla',
autoSave: 'Otomatik Kayıt',
enableAutoSave: 'Otomatik Kaydı Aç',
autoSaveDesc: 'Her 30 dakikada bir sekmeleri yedekle',
autoSaveInterval: 'Sıklık',
autoSaveIntervalDesc: 'Ne kadar sürede bir kaydedilsin?',
min: 'dk',
hour: 'saat',
hours: 'saat',
tabsSaved: 'sekme kaydedildi',
tabsOpened: 'sekme açıldı',
groupDeleted: 'Grup çöpe taşındı',
allDataCleared: 'Tüm veriler silindi',
emptyTrash: 'Çöpü Boşalt',
confirmEmptyTrash: 'Çöp kutusundaki tüm öğeleri kalıcı olarak silmek istediğinize emin misiniz?',
confirmPermanentDelete: 'Kalıcı olarak sil?',
errorOccurred: 'Hata oluştu',
confirmClearAll: 'Emin misiniz?',
justNow: 'Az önce',
minutesAgo: 'dk önce',
hoursAgo: 'saat önce',
daysAgo: 'gün önce',
untitled: 'Başlıksız',
favorite: 'Favori',
openAll: 'Tümünü Aç',
noTabsToSave: 'Kaydedilecek sekme yok',
fullscreen: 'Paneli Aç',
activeTabs: 'Aktif Sekmeler',
about: 'Hakkında',
aboutDesc: 'Stash, sekmelerinizi verimli bir şekilde yönetmenize yardımcı olmak için tasarlanmış açık kaynaklı bir projedir.',
openSourceMsg: 'Bu proje açık kaynaktır.',
craftedBy: 'Geliştirici',
sourceCode: 'Kaynak Kodu',
// Onboarding
stepWelcome: 'Hoşgeldin',
stepFeatures: 'Özellikler',
stepCustomize: 'Özelleştir',
stepReady: 'Hazır',
welcomeTitle: 'Stash\'e Hoşgeldiniz',
welcomeSubtitle: 'Deneyiminizi ayarlayalım.',
featuresTitle: 'Stash neler yapabilir?',
featuresSubtitle: 'Stash\'in düzenli kalmanıza nasıl yardımcı olduğunu keşfedin.',
feature1Title: 'Tek Tıkla Kaydet',
feature1Desc: 'Tüm açık sekmelerinizi anında temiz, düzenli bir gruba kaydedin.',
feature2Title: 'Grupları Düzenle',
feature2Desc: 'Gruplarınızı isimlendirin, aralarında arama yapın ve istediğiniz zaman geri yükleyin.',
feature3Title: 'Otomatik Kayıt',
feature3Desc: 'Arka plan otomatik kayıt özelliği ile çalışmalarınızı asla kaybetmeyin.',
customizeTitle: 'Kişiselleştirin',
customizeSubtitle: 'Görünüm ve hissi özelleştirin.',
themeLabel: 'TEMA',
preferencesLabel: 'TERCİHLER',
allDone: 'Her Şey Tamam',
allDoneDesc: 'Bu ayarları daha sonra kontrol panelinden değiştirebilirsiniz.',
readyTitle: 'Hazırsınız!',
readySubtitle: 'Yeni minimalist sekme yöneticiniz kullanıma hazır.',
back: 'Geri',
next: 'Devam Et',
finish: 'Başla'
}
};
let currentLang = 'en';
function t(key) { return translations[currentLang]?.[key] || translations['en'][key] || key; }
function setLanguage(lang) { if (translations[lang]) { currentLang = lang; return true; } return false; }
function getLanguage() { return currentLang; }
if (typeof module !== 'undefined' && module.exports) { module.exports = { translations, t, setLanguage, getLanguage }; }