diff --git a/src/lang/hi-IN.ts b/src/lang/hi-IN.ts index 1dcc987..54cf5a0 100644 --- a/src/lang/hi-IN.ts +++ b/src/lang/hi-IN.ts @@ -1,144 +1,167 @@ // zh_cn.js 文件 export default { app: { - home: 'होम', - serveList: 'वॉलेट', - message: 'सेवा', - my: 'मी', - yuan: 'रुपया', + home: 'मुख्य पृष्ठ', + serveList: 'सेवा सूची', + message: 'ग्राहक सहायता', + my: 'मेरा', + yuan: 'युआन', second: 'सेकंड', month: 'माह', - prompt: 'गुनाह', - tips: 'आशा चाहिए', - enterLogout: 'आप वादा लौट गाई जानाचा है?', - enterWithdrawal: 'आप वादा वितरण करनाचा है?', - withdrawal: 'वितरण', + prompt: 'प्रोम्प्ट', + tips: 'टिप्स', + enterLogout: 'आप निश्चित हैं कि आप लॉग आउट करना चाहते हैं?', + enterWithdrawal: 'आप निश्चित हैं कि आप निकासी करना चाहते हैं?', + withdrawal: 'निकासी', info: 'जानकारी', success: 'सफल', - withdrawalAmount: 'वितरण की राशि', - pleaseWithdrawalAmount: 'वितरण की राशि', - submit: 'भेजा', - submittedSuccessfully: 'सफल भेजा', - submitApplication: 'इंटरनेट प्राप्त करना', - bankCardAbnormality: 'बैंक कार्ड अनुद्वर्य', - receivedSuccessfully: 'सफल प्राप्त हो गए', + withdrawalAmount: 'निकासी राशि', + pleaseWithdrawalAmount: 'कृपया निकासी राशि दर्ज करें', + submit: 'सबमिट', + submittedSuccessfully: 'सफलतापूर्वक सबमिट', + submitApplication: 'आवेदन सबमिट', + bankCardAbnormality: 'बैंक कार्ड असमान', + receivedSuccessfully: 'निकासी सफल', phoneNumber: 'फोन नंबर', - verificationCode: 'वेर्फिकेशन कोड', - confirm: 'पुष्ता करें', - enter: 'उपलब्ध करें', - select: 'चूना', - send: 'भेजा', - login: 'लौट गई', - account: 'कांト', - logout: 'बाजार', + verificationCode: 'सत्यापन कोड', + confirm: 'पुष्टि', + enter: 'कृपया दर्ज करें', + select: 'चयन करें', + send: 'भेजें', + login: 'लॉग इन', + account: 'खाता', + logout: 'लॉग आउट', register: 'रजिस्टर', password: 'पासवर्ड', - forgotPassword: 'पासवर्ड और सिखाया नहीं आया?', - passwordPlaceholder: '6-16 दिगित पासवर्ड बनाना', - passwordPlaceholder1: 'पहले बार पासवर्ड दर्ज करें', - next: 'अगले', - update: 'सुनिश्चित करें', - noData: 'कुछ प्राप्त नहीं है', - none: 'कुछ नहीं है', - contract: 'संगठन', + forgotPassword: 'पासवर्ड भूल गए', + passwordPlaceholder: 'कृपया 6-16 अक्षर का पासवर्ड दर्ज करें', + passwordPlaceholder1: 'कृपया पासवर्ड पुनः दर्ज करें', + next: 'आगे', + update: 'अद्यतन', + noData: 'कोई डेटा नहीं', + none: 'कोई नहीं', + contract: 'ठेका', loan: 'लोन', - totalLoan: 'संकल्प की लोन', - complete: 'सुनिश्चित', - noComplete: 'सुनिश्चित नहीं है', - signature: 'सिग्नेटूर', - identityInformation: 'आदारित जानकारी', + totalLoan: 'लोन का कुल', + complete: 'पूर्ण', + noComplete: 'अपूर्ण', + signature: 'हस्ताक्षर', + identityInformation: 'पहचान जानकारी', information: 'जानकारी', - signatureInformation: 'सिग्नेटूर जानकारी', - receivingBank: 'प्राप्त करेंगे बैंक', - rwmljndzlxx: 'हमें आपकी जानकारी पता होंगे', - upPNGOrJPG: 'कई jpg या png टाइम आईए।', + signatureInformation: 'हस्ताक्षर जानकारी', + receivingBank: 'प्राप्तकर्ता बैंक', + rwmljndzlxx: 'हमसे संपर्क करें', + upPNGOrJPG: 'कृपया JPG या PNG फ़ॉर्मेट की तस्वीर अपलोड करें', }, home: { - productDetails: 'संग्रह विवरण', - minimumDailyInterestRate: 'सडर दिन के लिए Nischit Raatā', - borrowingLimit: 'लोन की लिミट', - installmentPeriod: 'ईमेंट समय', - optional: 'सेटा', - applicationAmount: 'इंटरनेट की राशि', - loanTerm: 'लोन की समय', - repaymentPerInstallment: 'ईमेंट के लिए पुनर्णाम', - dailyInterestRate: 'दिन की raatā', - totalInterest: 'सामान्य लियENT', - successfulBorrowing: 'सफल लोन', - enterAgreement: 'मैंने पढ़या है और स्वीकार किया है', - authAgreement: 'संग्राहक प्राप्त पत्र', - serviceAgreement: 'सेवा प्रामाण', - lawAgreement: 'अधिकारी प्रामाण', - loansAgreement: 'लोन के लिए प्रामाण', - immediateBorrowing: 'बिहारी लोन', - pleaseFillInYourPersonalInformationFirst: 'पहले आपकी प्रोफेशनल जानकारी ओपन करें।', - pleaseEnterAgreement: 'प्रामाणों को प्राप्त करें।', + productDetails: 'उत्पाद विवरण', + minimumDailyInterestRate: 'न्यूनतम दैनिक ब्याज दर', + borrowingLimit: 'ऋण सीमा', + installmentPeriod: '분할 भुगतान अवधि', + optional: 'वैकल्ਪिक', + applicationAmount: 'आवेदन राशि', + loanTerm: 'ऋण अवधि', + repaymentPerInstallment: 'प्रत्येक अंश के लिए ऋण चुकौती', + dailyInterestRate: 'दैनिक ब्याज दर', + totalInterest: 'कुल ब्याज', + successfulBorrowing: 'ऋण सफल', + enterAgreement: 'मैंने पढ़ा और सहमति दी है', + authAgreement: 'सहायता प्राधिकरण समझौता', + serviceAgreement: 'प्लेटफॉर्म सेवा समझौता', + lawAgreement: 'कानून समझौता', + loansAgreement: 'ऋण समझौता', + immediateBorrowing: 'तुरंत ऋण लेना', + pleaseFillInYourPersonalInformationFirst: 'कृपया पहले अपनी व्यक्तिगत जानकारी भरें', + pleaseEnterAgreement: 'कृपया संबंधित समझौते पढ़ें और सहमत करें' }, my: { - userInfo: 'मी की जानकारी', - loan: 'मी की लोन', - repayment: 'मी की पुनर्णाम', - legalLiability: 'अधिकारी प्रावृत्ति', - uploadPassword: 'पासवर्ड संगेत', - logout: 'बाजार', - language: 'भेजिए', + userInfo: 'मेरी जानकारी', + loan: 'मेरी ऋण', + repayment: 'मेरी ऋण चुकौती', + legalLiability: 'कानूनी दायित्व', + uploadPassword: 'पासवर्ड परिवर्तन', + logout: 'लॉग आउट', + language: 'भाषा बदलें', }, serveList: { - loan: 'मी की लोन', - balance: 'बाラंस', - amountToBeRepaid: 'पुनर्णाया जरूरी की राशि', - immediateWithdrawal: 'बिहारी वितरण', - financialSecurity: 'बैंक की तरह की फिंसीफेक्शि' + loan: 'मेरी ऋण', + balance: 'खाता शेष', + amountToBeRepaid: 'प्रतिपूर्ति के लिए राशि', + immediateWithdrawal: 'तुरंत ऋण लेना', + financialSecurity: 'खाता धन सुरक्षा बैंक द्वारा सुरक्षित', }, borrowInfo: { - applicationTime: 'इंटरनेट की समय', - loanDetails: 'लोन की विवरण', - loanInfo: 'लोन की जानकारी', - loanNo: 'लोन की क्रEDIT नंबर', - loanAmount: 'लोन की राशि', - loanCycle: 'लोन की समय', - withdrawalBank: 'वितरण करनेवाला बैंक', - repaymentPerInstallment: 'ईमेंट के लिए पुनर्णाम', + applicationTime: 'आवेदन समय', + loanDetails: 'ऋण विवरण', + loanInfo: 'ऋण जानकारी', + loanNo: 'ऋण संख्या', + loanAmount: 'ऋण राशि', + loanCycle: 'ऋण चक्र', + withdrawalBank: 'निकासी बैंक', + repaymentPerInstallment: 'प्रत्येक अंश के लिए ऋण चुकौती', describe: 'विवरण', - receivingAccount: 'प्राप्त करेंगी अカウント', - usageOfLoan: 'लोन की प्यारी', - loans: 'इंटरनेट करनेवाले लोन', - enterSubmitApplication: 'आप वादा इंटरनेट करनाचा है?', + receivingAccount: 'प्राप्त खाता', + usageOfLoan: 'ऋण उपयोग', + }, + loans: { + enterSubmitApplication: 'आप ऋण आवेदन करना सुनिश्चित हैं?' }, userInfo: { - realPrompt: 'सच और मुख्य जानकारी, आपको वैसे पसंद आएगी।', - idCardPrompt: 'आपकी आदारीत पत्र की जानकारी आवश्यक है, और उन्होंने सुनिश्चित होना चاहिए।', - photographPrompt: 'आपकी फोटोग्राफी की प्रमानित होते हैं।', - name: 'नम', - idCard: 'आदारीत पत्र', - idCardUp1: 'क्लɪक करें, आपकी आदारीत पत्र को दौरे दें।', - idCardUp2: 'क्लɪk करें, आपकी आदारीत पत्र को दौरे दें।', - idCardUp3: 'क्लिक करें, आपकी आदारीत пत्र को दौरे दें।', - shootingRequirements: 'टैयरिंग के में requirements', - standardShooting: 'सेंडर्ड टैयरिंग', - missingBorder: 'संगर्ष मिस्सिंग', - outOfFocus: 'बहुत सुनिश्चित', - flashStrongly: 'फ्लASH बहुत सुनिश्चित', - unitName: 'यूनिट नाम', - position: 'पोष्ट', - workTelephone: 'कम करेंगी टेलेфोн', - workingAge: 'कार्य कयार', - monthlyPay: 'महिनावारी आज्ञा', - unitAddress: 'एकाइ पता', + realPrompt: 'वास्तविक और प्रभावी जानकारी भरें, ऐसा करने पर ही सत्यापन पਾਸ होगा', + idCardPrompt: 'आपका स्वयं का आधार कार्ड, और सामग्री स्पष्ट और पठनीय होनी चाहिए', + photographPrompt: 'कृपया पुष्टि करें कि कैमरा ऑपरेशन की अनुमति सक्रिय है', + name: 'नाम', + idCard: 'आधार कार्ड नंबर', + idCardUp1: 'आधार कार्ड फটো साइड अपलोड करें', + idCardUp2: 'आधार कार्ड राष्ट्रीय प्रतीक साइड अपलोड करें', + idCardUp3: 'हाथ में आधार कार्ड फोटो अपलोड करें', + shootingRequirements: 'चित्रण आवश्यकता', + standardShooting: 'मानक शूटिंग', + missingBorder: 'बॉर्डर गायब', + outOfFocus: 'छवि धुंधला', + flashStrongly: 'फ्लैश बहुत तेज', + unitName: 'संस्था का नाम', + position: 'पद', + workTelephone: 'कार्यालय का टेलीफोन', + workingAge: 'कार्यकाल', + monthlyPay: 'मासिक वेतन', + unitAddress: 'कार्यालय का पता', addressInfo: 'विस्तृत पता', - currentResidentialAddress: 'मौजूदा रिस्टेसियल पता', - directFamilyContactPerson: 'सीधा परिवार संपर्क व्यक्ति', - relationship: 'संबंध', - parents: 'पेरेन्ट', - spouse: 'स्त्री', + currentResidentialAddress: 'वर्तमान निवास पता', + directFamilyContactPerson: 'सরাसरी परिवार का संपर्क व्यक्ति', + relationship: 'रिश्ता', + parents: 'माता-पिता', + spouse: 'पति/पत्नी', children: 'बच्चे', - grandparents: 'आज्ञापिता', - bankOfDeposit: 'बैंक खोल रहा है', - bankCardNumber: 'बैंक कार्ड क्रमांक' + grandparents: 'दादा-दादी', + bankOfDeposit: 'खाता खोलने वाला बैंक', + bankCard: 'बैंक कार्ड नंबर', }, language: { zh: '中文', id: 'Bahasa indonesia', hi: 'हिंदी' + }, + router: { + home: 'मुख्य पृष्ठ', + serveList: 'वॉलेट', + message: 'चैट', + my: 'मेरा', + userInfo: 'मेरी जानकारी', + userInfo1: 'बेसिक जानकारी', + signature: 'हस्ताक्षर', + contract: 'अनुबंध', + userInfo2: 'जमा दस्तावेज', + userInfo3: 'प्राप्ति बैंक कार्ड', + loansInfo: 'लोन विवरण', + loansInfo1: 'कैश आउट', + myLoan: 'मेरे लोन', + myRepayment: 'मेरी रिपेमेंट', + borrowInfo: 'लोन विवरण', + uploadPassword: 'पासवर्ड परिवर्तन', + login: 'लॉगिन', + register: 'रजिस्टर', + forget: 'पासवर्ड भूल गए', + agreement: 'समझौता', } }; diff --git a/src/lang/id_ID.ts b/src/lang/id_ID.ts index e3fb312..2488681 100644 --- a/src/lang/id_ID.ts +++ b/src/lang/id_ID.ts @@ -3,30 +3,30 @@ export default { app: { home: 'Beranda', serveList: 'Dompet', - message: 'Customer Service', - my: 'Ku', + message: 'Layanan Pelanggan', + my: 'Saya', yuan: 'Yuan', second: 'Detik', month: 'Bulan', prompt: 'Prompt', - tips: 'Catatan Hangat', - enterLogout: 'Anda Yakin Ingin Keluar Dari Login?', - enterWithdrawal: 'Anda Yakin Ingin Meng withdraw?', + tips: 'Tips Hangat', + enterLogout: 'Apakah Anda yakin ingin keluar dari login?', + enterWithdrawal: 'Apakah Anda yakin ingin melakukan penarikan?', withdrawal: 'Penarikan', info: 'Informasi', success: 'Sukses', withdrawalAmount: 'Jumlah Penarikan', pleaseWithdrawalAmount: 'Jumlah Penarikan', submit: 'Kirim', - submittedSuccessfully: 'Berhasil Dikirim', - submitApplication: 'Kirim Permohonan', - bankCardAbnormality: 'Gangguan Kartu Bank', - receivedSuccessfully: 'Berhasil Diterima', + submittedSuccessfully: 'Pengiriman Sukses', + submitApplication: 'Kirim Aplikasi', + bankCardAbnormality: 'Kartu Bank Abnormal', + receivedSuccessfully: 'Penerimaan Sukses', phoneNumber: 'Nomor Telepon', verificationCode: 'Kode Verifikasi', confirm: 'Konfirmasi', - enter: 'Silahkan Masukkan', - select: 'Silahkan Pilih', + enter: 'Silakan masukkan', + select: 'Silakan pilih', send: 'Kirim', login: 'Masuk', account: 'Akun', @@ -34,112 +34,134 @@ export default { register: 'Daftar', password: 'Kata Sandi', forgotPassword: 'Lupa Kata Sandi', - passwordPlaceholder: 'Silahkan Tetapkan Kata Sandi 6-16 Digit', - passwordPlaceholder1: 'Silahkan Masukkan Ulang Kata Sandi', - next: 'Lanjut', + passwordPlaceholder: 'Silakan atur kata sandi 6-16 karakter', + passwordPlaceholder1: 'Silakan masukkan kata sandi lagi', + next: 'Langkah Berikutnya', update: 'Perbarui', - noData: 'Tidak Ada Data', + noData: 'Data Sementara Tidak Ada', none: 'Tidak Ada', contract: 'Kontrak', - loan: 'Pinjaman', - totalLoan: 'Jumlah Pinjaman', + loan: 'Kredit', + totalLoan: 'Total Kredit', complete: 'Lengkap', noComplete: 'Tidak Lengkap', - signature: 'Tanda Tangan', + signature: 'Tanda tangan', identityInformation: 'Informasi Identitas', - information: 'Informasi', - signatureInformation: 'Informasi Tanda Tangan', - receivingBank: 'Bank Penerima', - rwmljndzlxx: 'Jangan Lupakan Informasi Anda', - upPNGorJPG: 'Silahkan Unggah Gambar JPG Atau PNG', + information: 'Informasi Data', + signatureInformation: 'Informasi Tanda tangan', + receivingBank: 'Kartu Bank Penerimaan', + rwmljndzlxx: 'Biarkan Kami Memahami Informasi Anda', + upPNGOrJPG: 'Silakan unggah gambar format jpg atau png', }, home: { productDetails: 'Detail Produk', - minimumDailyInterestRate: 'Suku Bunga Harian Terendah', - borrowingLimit: 'Limit Pinjaman', - installmentPeriod: 'Periode Bayar', + minimumDailyInterestRate: 'Suku Bunga Harian Minimum', + borrowingLimit: 'Batas Peminjaman', + installmentPeriod: 'Jangka Waktu Angsuran', optional: 'Opsional', - applicationAmount: 'Jumlah Permintaan', - loanTerm: 'Tenor Pinjaman', - repaymentPerInstallment: 'Pembayaran Setiap Installment', + applicationAmount: 'Jumlah Aplikasi', + loanTerm: 'Jangka Waktu Peminjaman', + repaymentPerInstallment: 'Pembayaran Per Angsuran', dailyInterestRate: 'Suku Bunga Harian', - totalInterest: 'Suku Bunga Total', - successfulBorrowing: 'Pinjaman Berhasil', - enterAgreement: 'Saya Sudah Membaca Dan Setuju', - authAgreement: 'Perjanjian Otorisasi', - serviceAgreement: 'Ketentuan Layanan Platform', - lawAgreement: 'Ketentuan Hukum', - loansAgreement: 'Perjanjian Pinjaman', - immediateBorrowing: 'Pinjaman Segera', - pleaseFillInYourPersonalInformationFirst: 'Silahkan Isi Informasi Pribadi Anda Dulu', - pleaseEnterAgreement: 'Silahkan Baca Dan Setujui Perjanjian Yang Berkaitan', + totalInterest: 'Total Suku Bunga', + successfulBorrowing: 'Peminjaman Sukses', + enterAgreement: 'Saya telah membaca dan menyetujui', + authAgreement: 'Perjanjian Pemberian Kuasa', + serviceAgreement: 'Perjanjian Layanan Platform', + lawAgreement: 'Perjanjian Hukum', + loansAgreement: 'Perjanjian Peminjaman', + immediateBorrowing: 'Peminjaman Segera', + pleaseFillInYourPersonalInformationFirst: 'Silakan isi informasi pribadi Anda terlebih dahulu', + pleaseEnterAgreement: 'Silakan baca dan menyetujui perjanjian terkait', }, my: { - userInfo: 'Informasi Saya', - loan: 'Pinjaman Saya', + userInfo: 'Info Saya', + loan: 'Peminjaman Saya', repayment: 'Pembayaran Saya', - legalLiability: 'Kewajiban Hukum', - uploadPassword: 'Ubah Kata Sandi', - logout: 'Logout', - language: 'tukar bahasa', + legalLiability: 'Tanggung Jawab Hukum', + uploadPassword: 'Ganti Kata Sandi', + logout: 'Keluar', + language: 'Beralih Bahasa', }, serveList: { loan: 'Pinjaman Saya', balance: 'Saldo Akun', - amountToBeRepaid: 'Jumlah Yang Harus Dibayar', + amountToBeRepaid: 'Jumlah Yang Harus Dibayar Kembali', immediateWithdrawal: 'Pinjaman Segera', - financialSecurity: 'Keamanan Dana Dilindungi Oleh Bank', + financialSecurity: 'Keamanan dana akun dijamin oleh bank', }, borrowInfo: { - applicationTime: 'Waktu Permohonan', + applicationTime: 'Waktu Aplikasi', loanDetails: 'Detail Pinjaman', - loanInfo: 'Informasi Pinjaman', + loanInfo: 'Informasi Peminjaman', loanNo: 'Nomor Pinjaman', - loanAmount: 'Jumlah Pinjaman', - loanCycle: 'Sikl Pinjaman', - withdrawalBank: 'Bank Penarikan', - repaymentPerInstallment: 'Pembayaran Setiap Installment', + loanAmount: 'Jumlah Peminjaman', + loanCycle: 'Siklus Pinjaman', + withdrawalBank: 'Bank Pengeluaran', + repaymentPerInstallment: 'Pembayaran Per Angsuran', describe: 'Deskripsi', - receivingAccount: 'Akun Penerima', - usageOfLoan: 'Manfaatkan Pinjaman', + receivingAccount: 'Akun Penerimaan', + usageOfLoan: 'Tujuan Peminjaman', }, loans: { - enterSubmitApplication: 'Anda Yakin Ingin Mengajukan Pinjaman?', + enterSubmitApplication: 'Apakah Anda yakin akan mengajukan peminjaman?' }, userInfo: { - realPrompt: 'Isi informasi yang valid dan asli, persetujuan akan dilanjutkan.', - idCardPrompt: 'Dibutuhkan ID pribadi sendiri dan isinya harus jelas bisa dibaca', - photographPrompt: 'Silahkan pastikan ijin fotografi sudah diaktifkan', + realPrompt: 'Isilah informasi yang benar dan valid, untuk proses verifikasi dapat lewat', + idCardPrompt: 'Harus menggunakan KTP pribadi Anda sendiri, dan kontennya harus jelas dan terbaca', + photographPrompt: 'Pastikan izin foto telah diaktifkan', name: 'Nama', - idCard: 'Nomor ID', - idCardUp1: 'Klik Unggah Sisi Wajah ID', - idCardUp2: 'Klik Unggah Sisi Militer ID', - idCardUp3: 'Klik Unggah Foto tangan Ditekan ID', - shootingRequirements: 'Persyaratan Fotografi', - standardShooting: 'Fotografi Standard', - missingBorder: 'Kuas Erat Hilang', - outOfFocus: 'Foto Gragil', - flashStrongly: 'Cahaya Cepat Gemetar Kuat', - unitName: 'Nama Unit', + idCard: 'Nomor KTP', + idCardUp1: 'Klik untuk unggah foto wajah KTP', + idCardUp2: 'Klik untuk unggah foto lambang negara KTP', + idCardUp3: 'Klik untuk unggah foto tangan pegang KTP', + shootingRequirements: 'Persyaratan pemotretan', + standardShooting: 'Pemotretan standar', + missingBorder: 'Bingkai hilang', + outOfFocus: 'Foto kabur', + flashStrongly: 'Kilat terlalu kuat', + unitName: 'Nama perusahaan', position: 'Jabatan', - workTelephone: 'Telepon Unit', - workingAge: 'Usia Bekerja', - monthlyPay: 'Gaji Bulanan', - unitAddress: 'Alamat Unit', - addressInfo: 'Informasi Alamat', - currentResidentialAddress: 'Alamat Tinggal Saat Ini', - directFamilyContactPerson: 'Kontak Dari Keluarga Dekat', + workTelephone: 'Telepon perusahaan', + workingAge: 'Usia kerja', + monthlyPay: 'Gaji bulanan', + unitAddress: 'Alamat perusahaan', + addressInfo: 'Alamat lengkap', + currentResidentialAddress: 'Alamat tempat tinggal sekarang', + directFamilyContactPerson: 'Kontak langsung dengan anggota keluarga', relationship: 'Hubungan', - parents: 'Ortu', - spouse: 'Suami/Istri', - children: 'Anak-anak', - grandparents: 'Dari Orang Tua Kandung', - bankOfDeposit: 'Bank Penyedia Rekening', - bankCard: 'Nomor Kartu Bank', + parents: 'Orang tua', + spouse: 'Pasangan', + children: 'Anak', + grandparents: 'Kakek-nenek', + bankOfDeposit: 'Bank tempat rekening', + bankCard: 'Nomor rekening bank', }, language: { zh: '中文', id: 'Bahasa indonesia', hi: 'हिंदी' + }, + router: { + home: 'Beranda', + serveList: 'Dompet', + message: 'Obrolan', + my: 'Saya', + userInfo: 'Info Saya', + userInfo1: 'Info Dasar', + signature: 'Tanda tangan', + contract: 'Kontrak', + userInfo2: 'Unggah Dokumen', + userInfo3: 'Kartu Kredit Penerimaan', + loansInfo: 'Detail Pinjaman', + loansInfo1: 'Pengeluaran', + myLoan: 'Pinjaman Saya', + myRepayment: 'Pembayaran Saya', + borrowInfo: 'Detail Kredit', + uploadPassword: 'Ganti Kata Sandi', + login: 'Masuk', + register: 'Daftar', + forget: 'Lupa Kata Sandi', + agreement: 'Perjanjian', } } \ No newline at end of file diff --git a/src/lang/index.ts b/src/lang/index.ts index d68220d..3aaba6c 100644 --- a/src/lang/index.ts +++ b/src/lang/index.ts @@ -31,13 +31,14 @@ console.log('当前的环境语言是:', language) console.log('当前的后台语言是:', localStorage.getItem('lang')) const i18n = createI18n({ allowComposition: true, + legacy: false, locale: defLanguage || language.split('-')[0] || 'zh', // 设置默认语言 fallbackLocale: 'zh', // 设置备用语言 messages: messages // 设置资源文件对象 }) // 更新vant组件库本身的语言变化,支持国际化 -export function vantLocales (app: App) { +function vantLocales (app: App) { app.use(i18n) const lan = defLanguage || language.split('-')[0] || 'zh' if (lan === 'hi') { @@ -49,3 +50,5 @@ export function vantLocales (app: App) { Locale.use(lan, zhCN) } } + +export {i18n, vantLocales} diff --git a/src/lang/zh_cn.ts b/src/lang/zh_cn.ts index 6c56fb3..c04d209 100644 --- a/src/lang/zh_cn.ts +++ b/src/lang/zh_cn.ts @@ -141,6 +141,28 @@ export default { zh: '中文', id: 'Bahasa indonesia', hi: 'हिंदी' + }, + router: { + home: '首页', + serveList: '钱包', + message: '聊天', + my: '我的', + userInfo: '我的资料', + userInfo1: '基本信息', + signature: '签名', + contract: '合同', + userInfo2: '提交资料', + userInfo3: '收款银行卡', + loansInfo: '借款详情', + loansInfo1: '提现', + myLoan: '我的借款', + myRepayment: '我的还款', + borrowInfo: '贷款详情', + uploadPassword: '修改密码', + login: '登录', + register: '注册', + forget: '忘记密码', + agreement: '协议', } } diff --git a/src/router/index.ts b/src/router/index.ts index 69e6538..09a0620 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -2,7 +2,9 @@ import {createRouter, createWebHashHistory, RouteRecordRaw} from 'vue-router'; import {useUserStore} from "@/store/modules/user"; import {domainStoreWidthOut} from "@/store/modules/domain"; import {getDomainList} from "@/api/login"; +import { i18n } from '@/lang'; +const { t } = i18n.global export const constantRouter: Array = [ { path: '/', @@ -17,7 +19,7 @@ export const constantRouter: Array = [ name: 'index', component: () => import('@/views/index/index.vue'), meta: { - title: '首页', + title: t('router.home'), }, children: [ { @@ -25,7 +27,7 @@ export const constantRouter: Array = [ name: 'Home', component: () => import('@/views/index/home/index.vue'), meta: { - title: '首页', + title: t('router.home'), showBar: false }, }, @@ -35,7 +37,7 @@ export const constantRouter: Array = [ component: () => import('@/views/index/serveList/index.vue'), meta: { isPermissions: true, - title: '钱包', + title: t('router.serveList'), showBar: false }, }, @@ -45,7 +47,7 @@ export const constantRouter: Array = [ component: () => import('@/views/index/message/index.vue'), meta: { isPermissions: true, - title: '聊天', + title: t('router.message'), showBar: false }, }, @@ -55,7 +57,7 @@ export const constantRouter: Array = [ component: () => import('@/views/index/my/index.vue'), meta: { isPermissions: true, - title: '我的', + title: t('router.my'), showBar: false }, } @@ -66,7 +68,7 @@ export const constantRouter: Array = [ name: 'userInfo', component: () => import('@/views/my/userInfo/index.vue'), meta: { - title: '我的资料', + title: t('router.userInfo'), isPermissions: true, showBar: true }, @@ -76,7 +78,7 @@ export const constantRouter: Array = [ name: 'userInfo1', component: () => import('@/views/my/userInfo1/index.vue'), meta: { - title: '基本信息', + title: t('router.userInfo1'), isPermissions: true, showBar: true }, @@ -86,7 +88,7 @@ export const constantRouter: Array = [ name: 'signature', component: () => import('@/views/my/signature/index.vue'), meta: { - title: '签名', + title: t('router.signature'), isPermissions: true, showBar: true }, @@ -96,7 +98,7 @@ export const constantRouter: Array = [ name: 'contract', component: () => import('@/views/my/contract/index.vue'), meta: { - title: '合同', + title: t('router.contract'), isPermissions: true, showBar: true }, @@ -106,7 +108,7 @@ export const constantRouter: Array = [ name: 'userInfo2', component: () => import('@/views/my/userInfo2/index.vue'), meta: { - title: '提交资料', + title: t('router.userInfo2'), isPermissions: true, showBar: true }, @@ -116,7 +118,7 @@ export const constantRouter: Array = [ name: 'userInfo3', component: () => import('@/views/my/userInfo3/index.vue'), meta: { - title: '收款银行卡', + title: t('router.userInfo3'), isPermissions: true, showBar: true }, @@ -126,7 +128,7 @@ export const constantRouter: Array = [ name: 'loansInfo', component: () => import('@/views/loans/info/index.vue'), meta: { - title: '借款详情', + title: t('router.loansInfo'), isPermissions: true, showBar: true }, @@ -136,7 +138,7 @@ export const constantRouter: Array = [ name: 'loansInfo1', component: () => import('@/views/loans/info1/index.vue'), meta: { - title: '提现', + title: t('router.loansInfo1'), isPermissions: true, showBar: true }, @@ -146,7 +148,7 @@ export const constantRouter: Array = [ name: 'myLoan', component: () => import('@/views/my/myLoan/index.vue'), meta: { - title: '我的借款', + title: t('router.myLoan'), isPermissions: true, showBar: true }, @@ -156,7 +158,7 @@ export const constantRouter: Array = [ name: 'myRepayment', component: () => import('@/views/my/myRepayment/index.vue'), meta: { - title: '我的还款', + title: t('router.myRepayment'), isPermissions: true, showBar: true }, @@ -167,7 +169,7 @@ export const constantRouter: Array = [ name: 'borrowInfo', component: () => import('@/views/borrowInfo/index.vue'), meta: { - title: '贷款详情', + title: t('router.borrowInfo'), isPermissions: true, showBar: true }, @@ -177,7 +179,7 @@ export const constantRouter: Array = [ name: 'uploadPassword', component: () => import('@/views/uploadPassword/index.vue'), meta: { - title: '修改密码', + title: t('router.uploadPassword'), isPermissions: true, showBar: true }, @@ -190,7 +192,7 @@ export const constantRouter: Array = [ name: 'login', component: () => import('@/views/login/index.vue'), meta: { - title: '登录', + title: t('router.login'), showBar: false }, }, @@ -199,7 +201,7 @@ export const constantRouter: Array = [ name: 'register', component: () => import('@/views/register/index.vue'), meta: { - title: '注册', + title: t('router.register'), showBar: true }, }, @@ -208,7 +210,7 @@ export const constantRouter: Array = [ name: 'forget', component: () => import('@/views/forget/index.vue'), meta: { - title: '忘记密码', + title: t('router.forget'), showBar: true }, }, @@ -217,7 +219,7 @@ export const constantRouter: Array = [ name: 'agreement', component: () => import('@/views/agreement/agreement.vue'), meta: { - title: '协议', + title: t('router.agreement'), showBar: true }, } @@ -238,6 +240,7 @@ const router = createRouter({ // @ts-ignore router.beforeEach(async (to, from, next) => { const dsw = domainStoreWidthOut() + if (!dsw.getDomain || dsw.getDomain.length == 0) { const response = await getDomainList() if (response && response.data) { @@ -245,9 +248,11 @@ router.beforeEach(async (to, from, next) => { dsw.setDomain(domain) } } - if (to.meta.title) { // 判断是否有标题 - document.title = to.meta.title as string; - } + // if (to.meta.titleI18n) { // 判断是否有标题 + // console.log('sssssss', to.meta.titleI18n) + // // document.title = to.meta.title as string; + // document.title = t(to.meta.titleI18n as string); + // } if (to.meta.isPermissions) { const userStore = useUserStore() if (!userStore.getToken) { diff --git a/src/views/index/index.vue b/src/views/index/index.vue index 4e9bc66..943923e 100644 --- a/src/views/index/index.vue +++ b/src/views/index/index.vue @@ -6,7 +6,8 @@ - {{ $t(tabBar.text) }} + +
{{ $t(tabBar.text) }}
@@ -61,6 +62,9 @@ const active = ref(0) -