Skip to content

Commit

Permalink
Bug fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gerceker committed Aug 8, 2023
1 parent 1c9c0fe commit 42657fb
Show file tree
Hide file tree
Showing 27 changed files with 490 additions and 20 deletions.
2 changes: 1 addition & 1 deletion bin/functions/watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function watch_file(config) {
var file_names = Object.keys(files);
file_names.syncForEach(function (name, next_name) {
langs.syncForEach(function (lang, next_lang) {
var file_name = process.cwd() + '/' + config['input-dir'] + '/' + name + '/' + lang + '.json';
var file_name = process.cwd() + '/' + config['input-dir'] + '/' + files[name] + '/' + lang + '.json';
if (watched_files.indexOf(file_name) == -1) {
watched_files.push(file_name);
try {
Expand Down
17 changes: 17 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"langs": [
"en-us",
"tr-tr"
],
"input-dir": "i18n",
"output-file": "output.json",
"files": {
"static_texts":"static-texts",
"site_texts":"site-texts",
"link_texts":"link-texts",
"alt_text":"alt-texts",
"component_texts":"component-texts",
"image_sources":"image-sources"
},
"global": true
}
1 change: 1 addition & 0 deletions i18n/alt-texts/en-us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions i18n/alt-texts/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions i18n/alt-texts/tr-tr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions i18n/component-texts/en-us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions i18n/component-texts/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
79 changes: 79 additions & 0 deletions i18n/component-texts/tr-tr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"main_footer": {
"fo_1": "Hakkımızda",
"fo_2": "Misyonumuz",
"fo_3": "Projelerimiz",
"fo_4": "Araçlarımız",
"fo_5": "Sıkça Sorulan Sorular",
"fo_6": "Ekibimiz",
"fo_7": "Projelerimiz",
"fo_8": "Geliştiriciler",
"fo_9": "Geliştirici Profili",
"fo_10": "Geliştirici Merkezi",
"fo_11": "Sıkça Sorulan Sorular",
"fo_12": "Açık Kaynak",
"fo_13": "API & Araçlar",
"fo_14": "Topluluk",
"fo_15": "Site Çeviri Programı",
"fo_16": "Beta Test Programı",
"fo_17": "Hata Avcılığı Programı",
"fo_18": "Organizasyon",
"fo_19": "İlkelerimiz",
"fo_20": "Tarihçemiz",
"fo_21": "Markalama",
"fo_22": "Destek Merkezi",
"fo_23": "Gönüllülük Merkezi",
"fo_24": "Maddi Destekçi Ol",
"fo_25": "Yasal",
"fo_26": "Gizlilik Politikası",
"fo_27": "Çerez Politikası",
"fo_28": "Kullanım Şartları",
"fo_29": "Güvenlik",
"fo_30": "Kullandığımız Kaynaklar",
"fo_32": "Bölge:",
"fo_33": "Dil:",
"fo_34": "Daha fazla dili desteklememize yardım edin"
},
"main_header": {
"he_1": "Anasayfa",
"he_2": "Projeler",
"he_3": "Araçlar",
"he_4": "Misyonumuz",
"he_5": "Akademi",
"he_6": "Geliştirici",
"he_7": "Ekibimiz",
"he_8": "Site Teması",
"he_9": "Destek Ol"
},
"amc_header": {
"he_1": "Hesap değiştir",
"he_2": "Organizasyonlar",
"he_3": "Aile Yönetimi",
"he_4": "Yardım makaleleri",
"he_5": "Yardım Merkezi",
"he_6": "Geri bildirim",
"he_7": "Anasayfaya dön",
"he_8": "Çıkış yap",
"he_9": "Site Teması",
"he_10": "Destek Ol"
},
"amc_sidebar": {
"si_1": "Anasayfa",
"si_2": "Hesap ayarları",
"si_3": "Gizlilik ve güvenlik",
"si_4": "Hesap istatistikleri",
"si_5": "Görünüm ayarları",
"si_6": "Bildirim ayarları",
"si_7": "Organizasyon Yönetimi",
"si_8": "Aile Hesap Yönetimi",
"si_9": "Gizlilik & Güvenlik Merkezi",
"si_10": "Geliştirici Merkezi",
"si_11": "Gönüllülük Merkezi",
"si_12": "Yardım Merkezi",
"si_13": "Anasayfaya dön",
"si_14": "Geri bildirim"
},
"copyright_texts": {
"main": "&copy; 2023-<script>document.write(new Date().getFullYear())</script> Sci-Hook Org. Bütün hakları saklıdır."
}
}
1 change: 1 addition & 0 deletions i18n/image-sources/en-us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
18 changes: 18 additions & 0 deletions i18n/image-sources/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"org_logos": {
"main_logo_120": "/static/images/branding/logos/plain-logos/main-text-logo-120px.png"
},
"brand_logos": {
"github_logo": "/static/images/branding/logos/social-medias/github-mark.png",
"x_logo": "/static/images/branding/logos/social-medias/x.png",
"threads_logo": "/static/images/branding/logos/social-medias/threads.png",
"youtube_logo": "/static/images/branding/logos/social-medias/youtube.png"
},
"image_1": "/static/images/icons/flasks.png",
"image_2": "/static/images/icons/tools.png",
"image_3": "/static/images/icons/academy.png",
"image_4": "/static/images/illustrations/learn.png",
"image_5": "/static/images/illustrations/projects.png",
"image_6": "/static/images/illustrations/academy-student.png",
"image_7": "/static/images/branding/logos/bilimetri/main-logo.png"
}
1 change: 1 addition & 0 deletions i18n/image-sources/tr-tr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions i18n/link-texts/en-us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
5 changes: 5 additions & 0 deletions i18n/link-texts/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"global_social_media_links": {
"scihook_github": "https://github.com/Sci-Hook"
}
}
7 changes: 7 additions & 0 deletions i18n/link-texts/tr-tr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"social_media_links": {
"scihook_main_twitter": "https://twitter.com/SciHookTR",
"scihook_main_youtube": "https://twitter.com/Sci-HookTR",
"scihook_main_instagram": "https://www.instagram.com/SciHookTR"
}
}
7 changes: 0 additions & 7 deletions i18n/messages/en.json

This file was deleted.

3 changes: 0 additions & 3 deletions i18n/messages/tr.json

This file was deleted.

1 change: 1 addition & 0 deletions i18n/site-texts/en-us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
3 changes: 3 additions & 0 deletions i18n/site-texts/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"org_name": "Sci-Hook"
}
Loading

0 comments on commit 42657fb

Please sign in to comment.