Files
TREK/shared/src/i18n/th/common.ts
T
Maurice f00c354d0d fix(i18n): add the two keys the client named without en having them
BudgetPanel titled its add button with budget.addCategory (since April)
and the trip form labelled its cover remove button with common.remove
(since August). Neither key was ever in en, and t() returns an unknown
key unchanged, so both rendered as the raw key in every language. Both
are added to all 27 locales.

Locale parity compares the locales with en, never en with the code, so
nothing could catch this. client/scripts/i18n-keys.mjs (npm run
lint:i18n-keys) now resolves every literal key src/ names against en:
the first argument of t(), tHtml() and tr() (both sides of a conditional
included), <TransHtml html>, the fallback of translateApiError and any
*Key property or prop. A template key, a prefix with the rest appended
and the help registry's key builders pass when their fixed parts match
an en key; the one template with no fixed part is on an allow-list that
names the keys it resolves to, and an entry nothing uses fails. With
--unused it lists the en keys nothing reaches, as information only.

en is read with shared/scripts/i18n-catalog.mjs, a reader for the
locale tables as text that the parity tooling will share. It refuses a
value that is not one string literal instead of skipping the key.
2026-10-08 13:04:41 +02:00

82 lines
4.7 KiB
TypeScript

import type { TranslationStrings } from '../types';
const common: TranslationStrings = {
'common.save': 'บันทึก',
'common.showMore': 'แสดงเพิ่มเติม',
'common.showLess': 'แสดงน้อยลง',
'common.cancel': 'ยกเลิก',
'common.clear': 'ล้าง',
'common.delete': 'ลบ',
'common.remove': 'ลบ',
'common.preview': 'ดูตัวอย่าง',
'common.edit': 'แก้ไข',
'common.add': 'เพิ่ม',
'common.loading': 'กำลังโหลด...',
'common.import': 'นำเข้า',
'common.select': 'เลือก',
'common.selectAll': 'เลือกทั้งหมด',
'common.deselectAll': 'ยกเลิกการเลือกทั้งหมด',
'common.error': 'เกิดข้อผิดพลาด',
'common.success': 'สำเร็จ',
'common.unknownError': 'ข้อผิดพลาดที่ไม่รู้จัก',
'common.tooManyAttempts': 'มีความพยายามมากเกินไป โปรดลองอีกครั้งในภายหลัง',
'common.back': 'กลับ',
'common.all': 'ทั้งหมด',
'common.close': 'ปิด',
'common.open': 'เปิด',
'common.upload': 'อัปโหลด',
'common.search': 'ค้นหา',
'common.confirm': 'ยืนยัน',
'common.ok': 'ตกลง',
'common.yes': 'ใช่',
'common.no': 'ไม่',
'common.or': 'หรือ',
'common.none': 'ไม่มี',
'common.date': 'วันที่',
'common.rename': 'เปลี่ยนชื่อ',
'common.discardChanges': 'ยกเลิกการเปลี่ยนแปลง',
'common.discard': 'ทิ้ง',
'common.unsavedTitle': 'ทิ้งการเปลี่ยนแปลงไหม',
'common.unsavedMessage': 'สิ่งที่คุณกรอกไว้ที่นี่ยังไม่ได้บันทึก',
'common.keepEditing': 'แก้ไขต่อ',
'common.name': 'ชื่อ',
'common.email': 'อีเมล',
'common.password': 'รหัสผ่าน',
'common.saving': 'กำลังบันทึก...',
'common.justNow': 'เมื่อสักครู่',
'common.hoursAgo': '{count}ชม. ที่แล้ว',
'common.daysAgo': '{count} วัน ที่แล้ว',
'common.saved': 'บันทึกแล้ว',
'common.update': 'อัปเดต',
'common.change': 'เปลี่ยน',
'common.uploading': 'กำลังอัปโหลด...',
'common.backToPlanning': 'กลับไปที่การวางแผน',
'common.reset': 'รีเซ็ต',
'common.expand': 'ขยาย',
'common.collapse': 'ยุบ',
'common.copy': 'คัดลอก',
'common.copied': 'คัดลอกแล้ว',
'common.datepicker.prevMonth': 'เดือนที่แล้ว',
'common.datepicker.nextMonth': 'เดือนหน้า',
'common.datepicker.prevYear': 'ปีที่แล้ว',
'common.datepicker.nextYear': 'ปีหน้า',
'common.datepicker.prevYears': 'ปีก่อนๆ',
'common.datepicker.nextYears': 'ปีหน้า',
'common.datepicker.selectMonth': 'เลือกเดือน',
'common.datepicker.selectYear': 'เลือกปี',
'common.datepicker.enterManually': 'ป้อนวันที่ด้วยตนเอง',
'common.datepicker.typeDate': 'พิมพ์วันที่',
'common.datepicker.dialog': 'ตัวเลือกวันที่',
'common.datepicker.clearDate': 'ล้างวันที่',
'common.errorTitle': 'มีบางอย่างผิดพลาด',
'common.errorBody': 'แอปส่วนนี้หยุดทำงาน ข้อมูลของคุณปลอดภัย',
'common.errorPanelTitle': 'ไม่สามารถแสดงส่วนนี้ได้',
'common.errorPanelBody': 'หน้าที่เหลือยังคงใช้งานได้',
'common.errorRetry': 'ลองอีกครั้ง',
'common.errorReload': 'โหลดหน้าซ้ำ',
'common.errorUpdateTitle': 'มีเวอร์ชันใหม่ให้ใช้งานแล้ว',
'common.errorUpdateBody': 'TREK ได้รับการอัปเดตขณะที่แท็บนี้เปิดอยู่ โหลดซ้ำเพื่อรับเวอร์ชันใหม่',
'common.errorPluginTitle': 'ไม่สามารถแสดงปลั๊กอินนี้ได้',
};
export default common;