Added Bengali and Thai languages.

This commit is contained in:
Mike Cao 2022-08-01 17:14:36 -07:00
parent e4e3e74ec2
commit ab1e49e703
14 changed files with 1717 additions and 52 deletions

View File

@ -1,5 +1,6 @@
import {
arSA,
bn,
cs,
sk,
da,
@ -30,6 +31,7 @@ import {
sl,
sv,
ta,
th,
tr,
uk,
zhCN,
@ -41,6 +43,7 @@ import {
export const languages = {
'ar-SA': { label: 'العربية', dateLocale: arSA, dir: 'rtl' },
'bn-BD': { label: 'বাংলা', dateLocale: bn },
'zh-CN': { label: '中文', dateLocale: zhCN },
'zh-TW': { label: '中文(繁體)', dateLocale: zhTW },
'ca-ES': { label: 'Català', dateLocale: ca },
@ -77,6 +80,7 @@ export const languages = {
'fi-FI': { label: 'Suomi', dateLocale: fi },
'sv-SE': { label: 'Svenska', dateLocale: sv },
'ta-IN': { label: 'தமிழ்', dateLocale: ta },
'th-TH': { label: 'ภาษาไทย', dateLocale: th },
'tr-TR': { label: 'Türkçe', dateLocale: tr },
'uk-UA': { label: 'українська', dateLocale: uk },
'ur-PK': { label: 'Urdu (Pakistan)', dateLocale: uk, dir: 'rtl' },

View File

@ -20,7 +20,7 @@
"build-app": "next build",
"build-tracker": "rollup -c rollup.tracker.config.js",
"build-db": "npm-run-all copy-db-files build-db-client",
"build-lang": "npm-run-all format-lang compile-lang",
"build-lang": "npm-run-all format-lang compile-lang download-country-names download-language-names",
"build-geo": "node scripts/build-geo.js",
"build-db-schema": "prisma db pull",
"build-db-client": "prisma generate",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,832 @@
{
"label.accounts": [
{
"type": 0,
"value": "অ্যাকাউন্ট"
}
],
"label.add-account": [
{
"type": 0,
"value": "অ্যাকাউন্ট যুক্ত করুন"
}
],
"label.add-website": [
{
"type": 0,
"value": "ওয়েবসাইট যুক্ত করুন"
}
],
"label.administrator": [
{
"type": 0,
"value": "অ্যাডমিন"
}
],
"label.all": [
{
"type": 0,
"value": "সবগুলো"
}
],
"label.all-events": [
{
"type": 0,
"value": "সবগুলো ঘটনা"
}
],
"label.all-time": [
{
"type": 0,
"value": "সব সময়"
}
],
"label.all-websites": [
{
"type": 0,
"value": "সবগুলো ওয়েবসাইট"
}
],
"label.back": [
{
"type": 0,
"value": "পেছনে"
}
],
"label.cancel": [
{
"type": 0,
"value": "বাতিল"
}
],
"label.change-password": [
{
"type": 0,
"value": "পাসওয়ার্ড পরিবর্তন করুন"
}
],
"label.confirm-password": [
{
"type": 0,
"value": "পাসওয়ার্ড নিশ্চিত করুন"
}
],
"label.copy-to-clipboard": [
{
"type": 0,
"value": "কপি করুন"
}
],
"label.current-password": [
{
"type": 0,
"value": "বর্তমান পাসওয়ার্ড"
}
],
"label.custom-range": [
{
"type": 0,
"value": "কাস্টম রেঞ্জ"
}
],
"label.dashboard": [
{
"type": 0,
"value": "ড্যাশবোর্ড"
}
],
"label.date-range": [
{
"type": 0,
"value": "তারিখের পরিসীমা"
}
],
"label.default-date-range": [
{
"type": 0,
"value": "ডিফল্ট তারিখের পরিসীমা"
}
],
"label.delete": [
{
"type": 0,
"value": "মুছে ফেলুন"
}
],
"label.delete-account": [
{
"type": 0,
"value": "অ্যাকাউন্ট মুছুন"
}
],
"label.delete-website": [
{
"type": 0,
"value": "ওয়েবসাইট মুছুন"
}
],
"label.dismiss": [
{
"type": 0,
"value": "বাতিল"
}
],
"label.domain": [
{
"type": 0,
"value": "ডোমেইন"
}
],
"label.edit": [
{
"type": 0,
"value": "সম্পাদনা করুন"
}
],
"label.edit-account": [
{
"type": 0,
"value": "অ্যাকাউন্ট সম্পাদনা করুন"
}
],
"label.edit-website": [
{
"type": 0,
"value": "ওয়েবসাইট সম্পাদনা করুন"
}
],
"label.enable-share-url": [
{
"type": 0,
"value": "শেয়ার ইউআরএল শেয়ার করুন"
}
],
"label.invalid": [
{
"type": 0,
"value": "ভুল"
}
],
"label.invalid-domain": [
{
"type": 0,
"value": "ভুল ডোমেন"
}
],
"label.language": [
{
"type": 0,
"value": "ভাষা"
}
],
"label.last-days": [
{
"type": 0,
"value": "শেষ "
},
{
"type": 1,
"value": "x"
},
{
"type": 0,
"value": " দিন"
}
],
"label.last-hours": [
{
"type": 0,
"value": "শেষ "
},
{
"type": 1,
"value": "x"
},
{
"type": 0,
"value": " ঘন্টা"
}
],
"label.logged-in-as": [
{
"type": 1,
"value": "username"
},
{
"type": 0,
"value": " অ্যাকাউন্টে লগ ইন"
}
],
"label.login": [
{
"type": 0,
"value": "লগিন"
}
],
"label.logout": [
{
"type": 0,
"value": "লগ আউট"
}
],
"label.more": [
{
"type": 0,
"value": "আরও"
}
],
"label.name": [
{
"type": 0,
"value": "নাম"
}
],
"label.new-password": [
{
"type": 0,
"value": "নতুন পাসওয়ার্ড"
}
],
"label.none": [
{
"type": 0,
"value": "কিছুই না"
}
],
"label.owner": [
{
"type": 0,
"value": "মালিক"
}
],
"label.password": [
{
"type": 0,
"value": "পাসওয়ার্ড"
}
],
"label.passwords-dont-match": [
{
"type": 0,
"value": "পাসওয়ার্ড মেলে না"
}
],
"label.profile": [
{
"type": 0,
"value": "প্রোফাইল"
}
],
"label.realtime": [
{
"type": 0,
"value": "সরাসরি"
}
],
"label.realtime-logs": [
{
"type": 0,
"value": "সরাসরি লগ"
}
],
"label.refresh": [
{
"type": 0,
"value": "রিফ্রেশ"
}
],
"label.required": [
{
"type": 0,
"value": "প্রয়োজনীয়"
}
],
"label.reset": [
{
"type": 0,
"value": "রিসেট"
}
],
"label.reset-website": [
{
"type": 0,
"value": "ওয়েবসাইট রিসেট করুন"
}
],
"label.save": [
{
"type": 0,
"value": "সংরক্ষণ"
}
],
"label.settings": [
{
"type": 0,
"value": "সেটিংস"
}
],
"label.share-url": [
{
"type": 0,
"value": "ইউআরএল শেয়ার করুন"
}
],
"label.single-day": [
{
"type": 0,
"value": "একদিন"
}
],
"label.theme": [
{
"type": 0,
"value": "থিম"
}
],
"label.this-month": [
{
"type": 0,
"value": "এই মাস"
}
],
"label.this-week": [
{
"type": 0,
"value": "এই সপ্তাহ"
}
],
"label.this-year": [
{
"type": 0,
"value": "এই বছর"
}
],
"label.timezone": [
{
"type": 0,
"value": "সময়স্থান"
}
],
"label.today": [
{
"type": 0,
"value": "আজ"
}
],
"label.tracking-code": [
{
"type": 0,
"value": "ট্র্যাকিং কোড"
}
],
"label.unknown": [
{
"type": 0,
"value": "অজানা"
}
],
"label.username": [
{
"type": 0,
"value": "ব্যবহারকারীর নাম"
}
],
"label.view-details": [
{
"type": 0,
"value": "বিস্তারিত দেখুন"
}
],
"label.websites": [
{
"type": 0,
"value": "সবগুলো ওয়েবসাইট"
}
],
"message.active-users": [
{
"type": 1,
"value": "x"
},
{
"type": 0,
"value": " বর্তমান "
},
{
"offset": 0,
"options": {
"one": {
"value": [
{
"type": 0,
"value": "visitor"
}
]
},
"other": {
"value": [
{
"type": 0,
"value": "visitors"
}
]
}
},
"pluralType": "cardinal",
"type": 6,
"value": "x"
}
],
"message.confirm-delete": [
{
"type": 0,
"value": "আপনি কি নিশ্চিত যে আপনি "
},
{
"type": 1,
"value": "target"
},
{
"type": 0,
"value": " মুছতে চান?"
}
],
"message.confirm-reset": [
{
"type": 0,
"value": "আপনি কি নিশ্চিত যে আপনি "
},
{
"type": 1,
"value": "target"
},
{
"type": 0,
"value": " এর পরিসংখ্যান পুনরায় সেট করতে চান?"
}
],
"message.copied": [
{
"type": 0,
"value": "কপি হয়েছে"
}
],
"message.delete-warning": [
{
"type": 0,
"value": "সমস্ত সম্পর্কিত ডেটা পাশাপাশি মুছে ফেলা হবে।"
}
],
"message.failure": [
{
"type": 0,
"value": "কিছু ভুল হয়েছে।"
}
],
"message.get-share-url": [
{
"type": 0,
"value": "শেয়ার ইউআরএল"
}
],
"message.get-tracking-code": [
{
"type": 0,
"value": "ট্র্যাকিং কোড পান"
}
],
"message.go-to-settings": [
{
"type": 0,
"value": "সেটিংস এ যান"
}
],
"message.incorrect-username-password": [
{
"type": 0,
"value": "ভুল ব্যবহারকারীর নাম/পাসওয়ার্ড।"
}
],
"message.log.visitor": [
{
"type": 1,
"value": "country"
},
{
"type": 0,
"value": " থেকে একজন ভিসিটর "
},
{
"type": 1,
"value": "ব্রাউজার"
},
{
"type": 0,
"value": ", ব্যবহার করছেন "
},
{
"type": 1,
"value": "os"
},
{
"type": 0,
"value": " "
},
{
"type": 1,
"value": "device"
},
{
"type": 0,
"value": " এর মধ্যে।"
}
],
"message.new-version-available": [
{
"type": 0,
"value": "নতুন সংস্করণ "
},
{
"type": 1,
"value": "version"
},
{
"type": 0,
"value": " পাওয়া গিয়েছে।"
}
],
"message.no-data-available": [
{
"type": 0,
"value": "কোন তথ্য নেই।"
}
],
"message.no-websites-configured": [
{
"type": 0,
"value": "কোনও ওয়েবসাইট কনফিগার করা নেই।"
}
],
"message.page-not-found": [
{
"type": 0,
"value": "পৃষ্ঠা খুঁজে পাওয়া যায়নি।"
}
],
"message.powered-by": [
{
"type": 1,
"value": "name"
},
{
"type": 0,
"value": " দ্বারা চালিত"
}
],
"message.reset-warning": [
{
"type": 0,
"value": "এই ওয়েবসাইটের সমস্ত পরিসংখ্যান মুছে ফেলা হবে, তবে আপনার ট্র্যাকিং কোডটি অক্ষত থাকবে।"
}
],
"message.save-success": [
{
"type": 0,
"value": "সংরক্ষিত হয়েছে।"
}
],
"message.share-url": [
{
"type": 0,
"value": "এটি "
},
{
"type": 1,
"value": "target"
},
{
"type": 0,
"value": " এর জন্য প্রকাশ্যে শেয়ার করার ইউআরএল।"
}
],
"message.toggle-charts": [
{
"type": 0,
"value": "চার্ট পরিবর্তন করুন"
}
],
"message.track-stats": [
{
"type": 1,
"value": "target"
},
{
"type": 0,
"value": " এর জন্য পরিসংখ্যানগুলি ট্র্যাক করতে, আপনার ওয়েবসাইটের "
},
{
"type": 1,
"value": "head"
},
{
"type": 0,
"value": " বিভাগে নিম্নলিখিত কোডটি রাখুন।"
}
],
"message.type-delete": [
{
"type": 0,
"value": "নিশ্চিত করতে নীচের বাক্সে "
},
{
"type": 1,
"value": "delete"
},
{
"type": 0,
"value": " টাইপ করুন।"
}
],
"message.type-reset": [
{
"type": 0,
"value": "নিশ্চিত করতে নীচের বাক্সে "
},
{
"type": 1,
"value": "reset"
},
{
"type": 0,
"value": " টাইপ করুন।"
}
],
"metrics.actions": [
{
"type": 0,
"value": "অ্যাকশনস"
}
],
"metrics.average-visit-time": [
{
"type": 0,
"value": "গড় পরিদর্শনের সময়"
}
],
"metrics.bounce-rate": [
{
"type": 0,
"value": "বহিষ্কারের হার"
}
],
"metrics.browsers": [
{
"type": 0,
"value": "ব্রাউজার"
}
],
"metrics.countries": [
{
"type": 0,
"value": "দেশ"
}
],
"metrics.device.desktop": [
{
"type": 0,
"value": "ডেস্কটপ"
}
],
"metrics.device.laptop": [
{
"type": 0,
"value": "ল্যাপটপ"
}
],
"metrics.device.mobile": [
{
"type": 0,
"value": "মুঠোফোন"
}
],
"metrics.device.tablet": [
{
"type": 0,
"value": "ট্যাবলেট"
}
],
"metrics.devices": [
{
"type": 0,
"value": "ডিভাইস গুলো"
}
],
"metrics.events": [
{
"type": 0,
"value": "ঘটনা"
}
],
"metrics.filter.combined": [
{
"type": 0,
"value": "সম্মিলিত"
}
],
"metrics.filter.raw": [
{
"type": 0,
"value": "অপরিশোধিত"
}
],
"metrics.languages": [
{
"type": 0,
"value": "ভাষা"
}
],
"metrics.operating-systems": [
{
"type": 0,
"value": "অপারেটিং সিস্টেম গুলো"
}
],
"metrics.page-views": [
{
"type": 0,
"value": "পৃষ্ঠা পরিদর্শন গুলো"
}
],
"metrics.pages": [
{
"type": 0,
"value": "পৃষ্ঠাগুলি"
}
],
"metrics.referrers": [
{
"type": 0,
"value": "রেফারার্স"
}
],
"metrics.screens": [
{
"type": 0,
"value": "স্ক্রিনগুলি"
}
],
"metrics.unique-visitors": [
{
"type": 0,
"value": "অনন্য ভিজিটর"
}
],
"metrics.utm": [
{
"type": 0,
"value": "UTM"
}
],
"metrics.utm_campaign": [
{
"type": 0,
"value": "UTM প্রচার"
}
],
"metrics.utm_content": [
{
"type": 0,
"value": "UTM সামগ্রী"
}
],
"metrics.utm_medium": [
{
"type": 0,
"value": "UTM মিডিয়াম"
}
],
"metrics.utm_source": [
{
"type": 0,
"value": "UTM উৎস"
}
],
"metrics.utm_term": [
{
"type": 0,
"value": "UTM শব্দ"
}
],
"metrics.views": [
{
"type": 0,
"value": "ভিউস"
}
],
"metrics.visitors": [
{
"type": 0,
"value": "পরিদর্শনার্থী"
}
]
}

View File

@ -38,7 +38,7 @@
"label.all-time": [
{
"type": 0,
"value": "All time"
"value": "Semua waktu"
}
],
"label.all-websites": [
@ -176,7 +176,7 @@
"label.language": [
{
"type": 0,
"value": "Language"
"value": "Bahasa"
}
],
"label.last-days": [
@ -248,7 +248,7 @@
"label.owner": [
{
"type": 0,
"value": "Owner"
"value": "Pemilik"
}
],
"label.password": [
@ -332,7 +332,7 @@
"label.theme": [
{
"type": 0,
"value": "Theme"
"value": "Tema"
}
],
"label.this-month": [
@ -422,7 +422,7 @@
"message.confirm-reset": [
{
"type": 0,
"value": "Are your sure you want to reset "
"value": "Anda yakin ingin mengatur ulang statistik "
},
{
"type": 1,
@ -430,7 +430,7 @@
},
{
"type": 0,
"value": "'s statistics?"
"value": "?"
}
],
"message.copied": [
@ -580,7 +580,7 @@
"message.toggle-charts": [
{
"type": 0,
"value": "Toggle charts"
"value": "Buka grafik"
}
],
"message.track-stats": [
@ -602,7 +602,7 @@
},
{
"type": 0,
"value": " situs web anda."
"value": " situs web nda."
}
],
"message.type-delete": [
@ -714,7 +714,7 @@
"metrics.languages": [
{
"type": 0,
"value": "Languages"
"value": "Bahasa"
}
],
"metrics.operating-systems": [
@ -744,7 +744,7 @@
"metrics.screens": [
{
"type": 0,
"value": "Screens"
"value": "Layar"
}
],
"metrics.unique-visitors": [
@ -762,31 +762,31 @@
"metrics.utm_campaign": [
{
"type": 0,
"value": "UTM Campaign"
"value": "Kampanye UTM"
}
],
"metrics.utm_content": [
{
"type": 0,
"value": "UTM Content"
"value": "Konten UTM"
}
],
"metrics.utm_medium": [
{
"type": 0,
"value": "UTM Medium"
"value": "Media UTM"
}
],
"metrics.utm_source": [
{
"type": 0,
"value": "UTM Source"
"value": "Sumber UTM"
}
],
"metrics.utm_term": [
{
"type": 0,
"value": "UTM Term"
"value": "Tampilan UTM"
}
],
"metrics.views": [

View File

@ -776,7 +776,7 @@
"metrics.screens": [
{
"type": 0,
"value": "Screens"
"value": "Ekrany"
}
],
"metrics.unique-visitors": [
@ -788,37 +788,37 @@
"metrics.utm": [
{
"type": 0,
"value": "UTM"
"value": "Kampanie UTM"
}
],
"metrics.utm_campaign": [
{
"type": 0,
"value": "UTM Campaign"
"value": "Kampania"
}
],
"metrics.utm_content": [
{
"type": 0,
"value": "UTM Content"
"value": "Treść"
}
],
"metrics.utm_medium": [
{
"type": 0,
"value": "UTM Medium"
"value": "Medium"
}
],
"metrics.utm_source": [
{
"type": 0,
"value": "UTM Source"
"value": "Źródło"
}
],
"metrics.utm_term": [
{
"type": 0,
"value": "UTM Term"
"value": "Słowa kluczowe"
}
],
"metrics.views": [

View File

@ -176,7 +176,7 @@
"label.language": [
{
"type": 0,
"value": "Language"
"value": "Língua"
}
],
"label.last-days": [
@ -340,7 +340,7 @@
"label.theme": [
{
"type": 0,
"value": "Theme"
"value": "Tema"
}
],
"label.this-month": [

View File

@ -0,0 +1,832 @@
{
"label.accounts": [
{
"type": 0,
"value": "บัญชี"
}
],
"label.add-account": [
{
"type": 0,
"value": "เพิ่มบัญชี"
}
],
"label.add-website": [
{
"type": 0,
"value": "เพิ่มเว็บไซต์"
}
],
"label.administrator": [
{
"type": 0,
"value": "ผู้ดูแลระบบ"
}
],
"label.all": [
{
"type": 0,
"value": "ทั้งหมด"
}
],
"label.all-events": [
{
"type": 0,
"value": "เหตุการณ์ทั้งหมด"
}
],
"label.all-time": [
{
"type": 0,
"value": "ทุกช่วงเวลา"
}
],
"label.all-websites": [
{
"type": 0,
"value": "เว็บไซต์ทั้งหมด"
}
],
"label.back": [
{
"type": 0,
"value": "ย้อนกลับ"
}
],
"label.cancel": [
{
"type": 0,
"value": "ยกเลิก"
}
],
"label.change-password": [
{
"type": 0,
"value": "เปลี่ยนรหัสผ่าน"
}
],
"label.confirm-password": [
{
"type": 0,
"value": "ยืนยันรหัสผ่าน"
}
],
"label.copy-to-clipboard": [
{
"type": 0,
"value": "คัดลอกไปยังคลิปบอร์ด"
}
],
"label.current-password": [
{
"type": 0,
"value": "รหัสผ่านปัจจุบัน"
}
],
"label.custom-range": [
{
"type": 0,
"value": "กำหนดช่วงเวลา"
}
],
"label.dashboard": [
{
"type": 0,
"value": "แดชบอร์ด"
}
],
"label.date-range": [
{
"type": 0,
"value": "ตั้งแต่วันที่"
}
],
"label.default-date-range": [
{
"type": 0,
"value": "ช่วงเวลา"
}
],
"label.delete": [
{
"type": 0,
"value": "ลบ"
}
],
"label.delete-account": [
{
"type": 0,
"value": "ลบบัญชี"
}
],
"label.delete-website": [
{
"type": 0,
"value": "ลบเว็บไซต์"
}
],
"label.dismiss": [
{
"type": 0,
"value": "ยกเลิก"
}
],
"label.domain": [
{
"type": 0,
"value": "โดเมน"
}
],
"label.edit": [
{
"type": 0,
"value": "แก้ไข"
}
],
"label.edit-account": [
{
"type": 0,
"value": "แก้ไขบัญชี"
}
],
"label.edit-website": [
{
"type": 0,
"value": "แก้ไขเว็บไซต์"
}
],
"label.enable-share-url": [
{
"type": 0,
"value": "เปิดใช้งานการแชร์ลิงก์"
}
],
"label.invalid": [
{
"type": 0,
"value": "ไม่ถูกต้อง"
}
],
"label.invalid-domain": [
{
"type": 0,
"value": "โดเมนไม่ถูกต้อง"
}
],
"label.language": [
{
"type": 0,
"value": "ภาษา"
}
],
"label.last-days": [
{
"type": 1,
"value": "x"
},
{
"type": 0,
"value": " วันที่ผ่านมา"
}
],
"label.last-hours": [
{
"type": 1,
"value": "x"
},
{
"type": 0,
"value": " ชั่วโมงที่ผ่านมา"
}
],
"label.logged-in-as": [
{
"type": 0,
"value": "เข้าสู่ระบบโดย "
},
{
"type": 1,
"value": "username"
}
],
"label.login": [
{
"type": 0,
"value": "เข้าสู่ระบบ"
}
],
"label.logout": [
{
"type": 0,
"value": "ออกจากระบบ"
}
],
"label.more": [
{
"type": 0,
"value": "เพิ่มเติม"
}
],
"label.name": [
{
"type": 0,
"value": "ชื่อ"
}
],
"label.new-password": [
{
"type": 0,
"value": "รหัสผ่านใหม่"
}
],
"label.none": [
{
"type": 0,
"value": "ไม่ได้กำหนด"
}
],
"label.owner": [
{
"type": 0,
"value": "เจ้าของ"
}
],
"label.password": [
{
"type": 0,
"value": "รหัสผ่าน"
}
],
"label.passwords-dont-match": [
{
"type": 0,
"value": "รหัสผ่านไม่ตรงกัน"
}
],
"label.profile": [
{
"type": 0,
"value": "โปรไฟล์"
}
],
"label.realtime": [
{
"type": 0,
"value": "เรียลไทม์"
}
],
"label.realtime-logs": [
{
"type": 0,
"value": "Log แบบเรียลไทม์"
}
],
"label.refresh": [
{
"type": 0,
"value": "รีเฟรช"
}
],
"label.required": [
{
"type": 0,
"value": "ต้องการ"
}
],
"label.reset": [
{
"type": 0,
"value": "รีเซต"
}
],
"label.reset-website": [
{
"type": 0,
"value": "รีเซตข้อมูลสถิติ"
}
],
"label.save": [
{
"type": 0,
"value": "บันทึก"
}
],
"label.settings": [
{
"type": 0,
"value": "ตั้งค่า"
}
],
"label.share-url": [
{
"type": 0,
"value": "แชร์ลิงก์"
}
],
"label.single-day": [
{
"type": 0,
"value": "วันที่"
}
],
"label.theme": [
{
"type": 0,
"value": "ธีม"
}
],
"label.this-month": [
{
"type": 0,
"value": "เดือนปัจจุบัน"
}
],
"label.this-week": [
{
"type": 0,
"value": "สัปดาห์ปัจจุบัน"
}
],
"label.this-year": [
{
"type": 0,
"value": "ปีปัจจุบัน"
}
],
"label.timezone": [
{
"type": 0,
"value": "เขตเวลา"
}
],
"label.today": [
{
"type": 0,
"value": "วันนี้"
}
],
"label.tracking-code": [
{
"type": 0,
"value": "โค้ดสำหรับใช้ติดตาม"
}
],
"label.unknown": [
{
"type": 0,
"value": "ไม่รู้จัก"
}
],
"label.username": [
{
"type": 0,
"value": "ชื่อผู้ใช้"
}
],
"label.view-details": [
{
"type": 0,
"value": "แสดงรายละเอียด"
}
],
"label.websites": [
{
"type": 0,
"value": "เว็บไซต์"
}
],
"message.active-users": [
{
"type": 0,
"value": "มีผู้ใช้งาน "
},
{
"type": 1,
"value": "x"
},
{
"type": 0,
"value": " "
},
{
"offset": 0,
"options": {
"one": {
"value": [
{
"type": 0,
"value": "คนในขณะนี้"
}
]
},
"other": {
"value": [
{
"type": 0,
"value": "คนในขณะนี้"
}
]
}
},
"pluralType": "cardinal",
"type": 6,
"value": "x"
}
],
"message.confirm-delete": [
{
"type": 0,
"value": "คุณแน่ใจหรือไม่ว่าต้องการลบ "
},
{
"type": 1,
"value": "target"
},
{
"type": 0,
"value": " ?"
}
],
"message.confirm-reset": [
{
"type": 0,
"value": "คุณแน่ใจหรือไม่ว่าต้องการรีเซตข้อมูลสถิติของ "
},
{
"type": 1,
"value": "target"
},
{
"type": 0,
"value": " ?"
}
],
"message.copied": [
{
"type": 0,
"value": "คัดลอกแล้ว!"
}
],
"message.delete-warning": [
{
"type": 0,
"value": "ข้อมูลที่เกี่ยวข้องทั้งหมดจะถูกลบ."
}
],
"message.failure": [
{
"type": 0,
"value": "เกิดข้อผิดพลาด."
}
],
"message.get-share-url": [
{
"type": 0,
"value": "รับลิงก์สำหรับแชร์"
}
],
"message.get-tracking-code": [
{
"type": 0,
"value": "รับโค้ดสำหรับใช้ติดตาม"
}
],
"message.go-to-settings": [
{
"type": 0,
"value": "ไปที่การตั้งค่า"
}
],
"message.incorrect-username-password": [
{
"type": 0,
"value": "ชื่อผู้ใช้หรือรหัสผ่านไม่ถูกต้อง."
}
],
"message.log.visitor": [
{
"type": 0,
"value": "ผู้เข้าชมจาก "
},
{
"type": 1,
"value": "country"
},
{
"type": 0,
"value": " กำลังใช้งานผ่าน "
},
{
"type": 1,
"value": "browser"
},
{
"type": 0,
"value": " บน "
},
{
"type": 1,
"value": "os"
},
{
"type": 0,
"value": " "
},
{
"type": 1,
"value": "device"
}
],
"message.new-version-available": [
{
"type": 0,
"value": "umami เวอร์ชันใหม่ ("
},
{
"type": 1,
"value": "version"
},
{
"type": 0,
"value": ") มาแล้ว!"
}
],
"message.no-data-available": [
{
"type": 0,
"value": "ไม่มีข้อมูล."
}
],
"message.no-websites-configured": [
{
"type": 0,
"value": "คุณยังไม่ได้ตั้งค่าเว็บไซต์ใด ๆ ไว้."
}
],
"message.page-not-found": [
{
"type": 0,
"value": "ไม่พบหน้านี้."
}
],
"message.powered-by": [
{
"type": 0,
"value": "ขับเคลื่อนโดย "
},
{
"type": 1,
"value": "name"
}
],
"message.reset-warning": [
{
"type": 0,
"value": "สถิติทั้งหมดสำหรับเว็บไซต์นี้จะถูกลบออก แต่โค้ดสำหรับใช้ติดตามของคุณจะยังคงอยู่เหมือนเดิม."
}
],
"message.save-success": [
{
"type": 0,
"value": "บันทึกข้อมูลเรียบร้อย."
}
],
"message.share-url": [
{
"type": 0,
"value": "นี่คือลิงก์ที่แชร์แบบสาธารณะสำหรับ "
},
{
"type": 1,
"value": "target"
},
{
"type": 0,
"value": "."
}
],
"message.toggle-charts": [
{
"type": 0,
"value": "เปิด/ปิดแผนภูมิ"
}
],
"message.track-stats": [
{
"type": 0,
"value": "หากต้องการติดตามสถิติสำหรับ "
},
{
"type": 1,
"value": "target"
},
{
"type": 0,
"value": " ให้วางโค้ดต่อไปนี้ในส่วน "
},
{
"type": 1,
"value": "head"
},
{
"type": 0,
"value": " ของเว็บไซต์ของคุณ."
}
],
"message.type-delete": [
{
"type": 0,
"value": "พิมพ์ข้อความ "
},
{
"type": 1,
"value": "delete"
},
{
"type": 0,
"value": " ในช่องด้านล่างเพื่อยืนยัน."
}
],
"message.type-reset": [
{
"type": 0,
"value": "พิมพ์ข้อความ "
},
{
"type": 1,
"value": "reset"
},
{
"type": 0,
"value": " ในช่องด้านล่างเพื่อยืนยัน."
}
],
"metrics.actions": [
{
"type": 0,
"value": "การกระทำ"
}
],
"metrics.average-visit-time": [
{
"type": 0,
"value": "ระยะเวลาเข้าชมเฉลี่ย"
}
],
"metrics.bounce-rate": [
{
"type": 0,
"value": "อัตราตีกลับ"
}
],
"metrics.browsers": [
{
"type": 0,
"value": "เบราว์เซอร์"
}
],
"metrics.countries": [
{
"type": 0,
"value": "ประเทศ"
}
],
"metrics.device.desktop": [
{
"type": 0,
"value": "เดสก์ท็อป"
}
],
"metrics.device.laptop": [
{
"type": 0,
"value": "แล็ปท็อป"
}
],
"metrics.device.mobile": [
{
"type": 0,
"value": "โทรศัพท์มือถือ"
}
],
"metrics.device.tablet": [
{
"type": 0,
"value": "แท็บเล็ต"
}
],
"metrics.devices": [
{
"type": 0,
"value": "อุปกรณ์"
}
],
"metrics.events": [
{
"type": 0,
"value": "เหตุการณ์"
}
],
"metrics.filter.combined": [
{
"type": 0,
"value": "ข้อมูลรวม"
}
],
"metrics.filter.raw": [
{
"type": 0,
"value": "ข้อมูลดิบ"
}
],
"metrics.languages": [
{
"type": 0,
"value": "ภาษา"
}
],
"metrics.operating-systems": [
{
"type": 0,
"value": "ระบบปฏิบัติการ"
}
],
"metrics.page-views": [
{
"type": 0,
"value": "การเข้าชม"
}
],
"metrics.pages": [
{
"type": 0,
"value": "หน้าเพจ"
}
],
"metrics.referrers": [
{
"type": 0,
"value": "แหล่งที่มา"
}
],
"metrics.screens": [
{
"type": 0,
"value": "ขนาดหน้าจอ"
}
],
"metrics.unique-visitors": [
{
"type": 0,
"value": "ผู้เข้าชม"
}
],
"metrics.utm": [
{
"type": 0,
"value": "UTM"
}
],
"metrics.utm_campaign": [
{
"type": 0,
"value": "UTM Campaign"
}
],
"metrics.utm_content": [
{
"type": 0,
"value": "UTM Content"
}
],
"metrics.utm_medium": [
{
"type": 0,
"value": "UTM Medium"
}
],
"metrics.utm_source": [
{
"type": 0,
"value": "UTM Source"
}
],
"metrics.utm_term": [
{
"type": 0,
"value": "UTM Term"
}
],
"metrics.views": [
{
"type": 0,
"value": "การเข้าชม"
}
],
"metrics.visitors": [
{
"type": 0,
"value": "ผู้เข้าชม"
}
]
}

View File

@ -776,37 +776,37 @@
"metrics.utm": [
{
"type": 0,
"value": "UTM"
"value": "流量渠道标记(UTM"
}
],
"metrics.utm_campaign": [
{
"type": 0,
"value": "UTM Campaign"
"value": "流量标识"
}
],
"metrics.utm_content": [
{
"type": 0,
"value": "UTM Content"
"value": "搜索关键字"
}
],
"metrics.utm_medium": [
{
"type": 0,
"value": "UTM Medium"
"value": "流量来源类型"
}
],
"metrics.utm_source": [
{
"type": 0,
"value": "UTM Source"
"value": "流量来源"
}
],
"metrics.utm_term": [
{
"type": 0,
"value": "UTM Term"
"value": "流量搜索关键字"
}
],
"metrics.views": [

View File

@ -250,13 +250,13 @@
"label.none": [
{
"type": 0,
"value": "None"
"value": ""
}
],
"label.owner": [
{
"type": 0,
"value": "Owner"
"value": "擁有者"
}
],
"label.password": [
@ -340,7 +340,7 @@
"label.theme": [
{
"type": 0,
"value": "Theme"
"value": "主題"
}
],
"label.this-month": [
@ -596,7 +596,7 @@
"message.toggle-charts": [
{
"type": 0,
"value": "Toggle charts"
"value": "切換圖表"
}
],
"message.track-stats": [
@ -730,13 +730,13 @@
"metrics.languages": [
{
"type": 0,
"value": "Languages"
"value": "語言"
}
],
"metrics.operating-systems": [
{
"type": 0,
"value": "操作系"
"value": "操作系"
}
],
"metrics.page-views": [
@ -760,7 +760,7 @@
"metrics.screens": [
{
"type": 0,
"value": "Screens"
"value": "屏幕尺寸"
}
],
"metrics.unique-visitors": [
@ -772,37 +772,37 @@
"metrics.utm": [
{
"type": 0,
"value": "UTM"
"value": "流量渠道標記"
}
],
"metrics.utm_campaign": [
{
"type": 0,
"value": "UTM Campaign"
"value": "流量標識"
}
],
"metrics.utm_content": [
{
"type": 0,
"value": "UTM Content"
"value": "流量搜索內容"
}
],
"metrics.utm_medium": [
{
"type": 0,
"value": "UTM Medium"
"value": "流量來源類型"
}
],
"metrics.utm_source": [
{
"type": 0,
"value": "UTM Source"
"value": "流量來源"
}
],
"metrics.utm_term": [
{
"type": 0,
"value": "UTM Term"
"value": "流量搜索關鍵字"
}
],
"metrics.views": [

View File

@ -2,17 +2,12 @@ const fs = require('fs-extra');
const path = require('path');
const del = require('del');
const prettier = require('prettier');
const chalk = require('chalk');
const src = path.resolve(__dirname, '../lang');
const dest = path.resolve(__dirname, '../build');
const files = fs.readdirSync(src);
const removed = del.sync([path.join(dest, '*.json')]);
if (removed.length) {
console.log(removed.map(n => `${n} ${chalk.redBright('✗')}`).join('\n'));
}
del.sync([path.join(dest, '*.json')]);
async function run() {
await fs.ensureDir(dest);
@ -29,8 +24,6 @@ async function run() {
const json = prettier.format(JSON.stringify(formatted), { parser: 'json' });
fs.writeFileSync(path.resolve(dest, file), json);
console.log(path.resolve(src, file), chalk.greenBright('->'), path.resolve(dest, file));
});
}