修复土耳其语言异常问题

This commit is contained in:
dragon
2024-12-30 18:14:45 +08:00
parent c9f1a9911e
commit f455500f57
3 changed files with 28 additions and 22 deletions

View File

@@ -177,5 +177,6 @@
<script src="./local/en.js"></script>
<script src="./local/zh.js"></script>
<script src="./local/ar.js"></script>
<script src="./local/tr.js"></script>
<script src="./js/index.js"></script>
<script src="../../common/local/langHandler.js"></script>

View File

@@ -1,26 +1,31 @@
langTr = {
demoModule: {
layerIndex1: `Yükleniyor...`,
layerIndex2: `Başarı`,
layerIndex3: `Ağ hatası`,
text1: 'رأس السنة الجديدة',
text2: 'وقت الحدث:',
text22: '31 ديسمبر - 7 يناير',
text3: 'القواعد',
text4: 'هدايا رأس السنة الجديدة',
text5: 'عام جديد على وشك البدء، لنرسل هدايا رأس السنة معًا للاحتفال بها! دعونا نرحب بقدوم العام الجديد معًا!',
text6: 'الأيام',
text7: 'الساعات',
text8: 'الدقائق',
text9: 'الثواني',
text10: 'التصنيف',
text11: 'المكافآت',
text12: 'الحدث ليس له علاقة بشركة Apple.',
text122: 'الحدث ليس له علاقة بشركة Google.',
text133: 'القواعد',
text13: '<p>1. أرسل هدايا رأس السنة الجديدة المخصصة خلال فترة الحدث للمشاركة في التصنيف.</p><p>2. بعد انتهاء الحدث، سيتم احتساب أعلى 3 مستخدمين في التصنيف.</p><p>3. سيحصل أعلى 3 مستخدمين على مكافآت، وسيتم إصدار المكافآت في اليوم الثاني بعد الحدث.</p><p>4. جميع حقوق تفسير هذا الحدث تخص المنصة وليس لها علاقة بشركتي Google وApple.</p>',
more: 'Daha',
layerIndex1: 'Yükleniyor...',
layerIndex2: 'Başarılı',
layerIndex3: 'Ağ hatası',
text1: 'Yeni Yıl',
text2: 'Etkinlik Süresi:',
text22: '31 Aralık - 7 Ocak',
text3: 'Kural',
text4: 'Yeni Yıl Hediyeleri',
text5: 'Yeni bir yıl başlamak üzere, Yeni Yıl hediyeleri göndererek Yeni Yılı birlikte kutlayalım! Yeni Yılı birlikte karşılayalım!',
text6: 'Günler',
text7: 'Saatler',
text8: 'Dakikalar',
text9: 'Saniyeler',
text10: 'Sıralama',
text11: 'Ödüller',
text12: 'Etkinlik Apple ile ilgili değildir.',
text122: 'Etkinlik Google ile ilgili değildir.',
text133: 'Kurallar',
text13: `
<p>1. Etkinlik süresince belirlenen Yeni Yıl Hediyelerini göndererek sıralamaya katılabilirsiniz.</p>
<p>2. Etkinlikten sonra, sıralamadaki ilk 3 kullanıcı sayılacaktır.</p>
<p>3. İlk 3 kullanıcı ödüllerini alacak ve ödüller etkinlikten sonraki gün verilecektir.</p>
<p>4. Bu etkinliğin tüm yorum hakları platforma aittir ve Google ve Apple ile ilgisi yoktur.</p>`,
more: 'Daha Fazla',
month: 'Ay',
day: 'Gün',
}
},
}

View File

@@ -34,7 +34,7 @@ function initLocalLang() {
window.lang.code = 'id'
window.lang.defaults = false
} else if (lang === 'tr' || window.location.href.match('=tr')) {
if (window.location.href.match('guild-ar') || window.location.href.match('2024-invitationFission') || window.location.href.match('inform') || window.location.href.match('superId') || window.location.href.match('newWeekStar') || window.location.href.match('home') || window.location.href.match('pay')) {
if (window.location.href.match('2024-newYear') || window.location.href.match('guild-ar') || window.location.href.match('2024-invitationFission') || window.location.href.match('inform') || window.location.href.match('superId') || window.location.href.match('newWeekStar') || window.location.href.match('home') || window.location.href.match('pay')) {
// 土耳其
console.log("langHandler" + '土耳其')
window.lang = langTr