Files
TREK/shared/src/i18n/vi/planner.ts
T
Maurice bee500880e fix(i18n): every language says one file and five files its own way
Finishes the plural work the previous wip commit started. t() picks a
count string's form by the language's own Intl.PluralRules, and every
locale now spells out the forms its language reaches with whole
numbers, about 160 count strings in all: one, few and many in Russian,
Ukrainian and Polish, one and few in Czech and Slovak, five forms in
Arabic, one in the others, none in Japanese, Korean, Chinese, Thai,
Vietnamese and Indonesian. Each language was translated and then
reviewed on its own. English no longer reads "1 files", "1 updates
available" or "photo(s)".

Count labels shown next to a number now take that number too: the
atlas and admin statistics, the trip cards, journey and shared trip
pills, packing templates, receipts, storage usage, the Studio export
note. A heading that shared its key with a counted label keeps a key of
its own (the boarding pass heading, the Bookings tab), so languages that
put a noun after a number in the singular keep a plural heading. The
plugin hosts chip passed its count through .replace() after t() and
never got a form; three toasts sent the count as text. Mail and push
texts for shared photos and suppressed storage failures pick their form
in code through pluralForm.

A whole number sent as text counts too, which is how in-app
notification params arrive, and the plural rule follows the language of
the strings on screen while another one still loads.

The parity check knows which forms each language needs and refuses
missing and impossible ones. It also reads keys that contain a colon
now: it skipped them, which hid 58 missing plugin permission texts in
Catalan and 35 in Vietnamese, both translated. The client parity test
covers every language of the registry instead of a hand-kept list of 19,
and the placeholder spec lets a form spell its number out only where
its category is that one number. Brazilian Portuguese error screens
were in Breton, and an Arabic dashboard label held Hebrew text.
2026-10-08 00:01:59 +00:00

68 lines
3.5 KiB
TypeScript

import type { TranslationStrings } from '../types';
const planner: TranslationStrings = {
'planner.places': 'Địa điểm',
'planner.bookings': 'Đặt chỗ',
'planner.packingList': 'Danh sách đóng gói',
'planner.documents': 'Tài liệu',
'planner.dayPlan': 'Kế hoạch ngày',
'planner.reservations': 'Đặt chỗ',
'planner.minTwoPlaces': 'Cần ít nhất 2 địa điểm có tọa độ',
'planner.noGeoPlaces': 'Không có địa điểm nào có tọa độ',
'planner.routeCalculated': 'Tuyến đường được tính toán',
'planner.routeCalcFailed': 'Không thể tính toán lộ trình',
'planner.routeError': 'Lỗi tính toán lộ trình',
'planner.icsExportFailed': 'ICS xuất không thành công',
'planner.routeOptimized': 'Tuyến đường được tối ưu hóa',
'planner.reservationUpdated': 'Đã cập nhật đặt chỗ',
'planner.reservationAdded': 'Đã thêm đặt chỗ',
'planner.confirmDeleteReservation': 'Xóa đặt chỗ?',
'planner.reservationDeleted': 'Đã xóa đặt chỗ',
'planner.days': 'Ngày',
'planner.allPlaces': 'Tất cả địa điểm',
'planner.totalPlaces': 'Tổng cộng {n} địa điểm',
'planner.noDaysPlanned': 'Chưa có kế hoạch ngày nào',
'planner.editTrip': 'Chỉnh sửa chuyến đi →',
'planner.placeOne': '1 nơi',
'planner.placeN': '{n} địa điểm',
'planner.addNote': 'Thêm ghi chú',
'planner.noEntries': 'Không có mục nào cho ngày này',
'planner.addPlace': 'Thêm địa điểm/hoạt động',
'planner.addPlaceShort': '+ Thêm địa điểm/hoạt động',
'planner.resPending': 'Đang chờ đặt chỗ',
'planner.resConfirmed': 'Đã xác nhận đặt chỗ',
'planner.notePlaceholder': 'Ghi chú…',
'planner.noteTimePlaceholder': 'Thời gian (tùy chọn)',
'planner.noteExamplePlaceholder': 'ví dụ. S3 lúc 14:30 từ ga trung tâm, phà từ bến tàu số 7, nghỉ trưa…',
'planner.totalCost': 'Tổng chi phí',
'planner.searchPlaces': 'Tìm kiếm địa điểm…',
'planner.allCategories': 'Tất cả danh mục',
'planner.noPlacesFound': 'Không tìm thấy địa điểm nào',
'planner.addFirstPlace': 'Thêm vị trí đầu tiên',
'planner.noReservations': 'Không đặt trước',
'planner.addFirstReservation': 'Thêm đặt chỗ đầu tiên',
'planner.new': 'Mới',
'planner.addToDay': '+ Ngày',
'planner.calculating': 'Đang tính…',
'planner.route': 'Tuyến đường',
'planner.optimize': 'Tối ưu hóa',
'planner.openGoogleMaps': 'Mở trong Google Maps',
'planner.openCoMaps': 'Mở trong CoMaps',
'planner.selectDayHint': 'Chọn một ngày từ danh sách bên trái để xem kế hoạch trong ngày',
'planner.noPlacesForDay': 'Chưa có địa điểm nào cho ngày này',
'planner.addPlacesLink': 'Thêm địa điểm →',
'planner.minTotal': 'phút. tổng cộng',
'planner.noReservation': 'Không đặt trước',
'planner.removeFromDay': 'Xóa khỏi ngày',
'planner.addToThisDay': 'Thêm vào ngày',
'planner.overview': 'Tổng quan',
'planner.noDays': 'Chưa có ngày nào',
'planner.editTripToAddDays': 'Chỉnh sửa chuyến đi để thêm ngày',
'planner.dayCount': '{n} ngày',
'planner.clickToUnlock': 'Bấm để mở khóa',
'planner.keepPosition': 'Giữ vị trí trong quá trình tối ưu hóa tuyến đường',
'planner.dayDetails': 'Chi tiết ngày',
'planner.dayN': 'Ngày {n}',
};
export default planner;