mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 23:27:31 +00:00
bee500880e
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.
37 lines
2.1 KiB
TypeScript
37 lines
2.1 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const notifications: TranslationStrings = {
|
|
'notifications.title': '알림',
|
|
'notifications.markAllRead': '모두 읽음으로 표시',
|
|
'notifications.deleteAll': '모두 삭제',
|
|
'notifications.showAll': '모든 알림 보기',
|
|
'notifications.empty': '알림 없음',
|
|
'notifications.emptyDescription': '모두 확인했습니다!',
|
|
'notifications.all': '전체',
|
|
'notifications.unreadOnly': '읽지 않음',
|
|
'notifications.markRead': '읽음으로 표시',
|
|
'notifications.markUnread': '읽지 않음으로 표시',
|
|
'notifications.delete': '삭제',
|
|
'notifications.system': '시스템',
|
|
'notifications.synologySessionCleared.title': 'Synology Photos 연결 해제됨',
|
|
'notifications.synologySessionCleared.text': '서버 또는 계정이 변경되었습니다 — 설정에서 연결을 다시 테스트하세요.',
|
|
'notifications.versionAvailable.title': '업데이트 사용 가능',
|
|
'notifications.versionAvailable.text': 'TREK {version}이(가) 사용 가능합니다.',
|
|
'notifications.versionAvailable.button': '상세 보기',
|
|
'notifications.test.title': '{actor}의 테스트 알림',
|
|
'notifications.test.text': '간단한 테스트 알림입니다.',
|
|
'notifications.test.booleanTitle': '{actor}이(가) 승인을 요청합니다',
|
|
'notifications.test.booleanText': '테스트 boolean 알림입니다. 아래에서 작업을 선택하세요.',
|
|
'notifications.test.accept': '승인',
|
|
'notifications.test.decline': '거절',
|
|
'notifications.test.navigateTitle': '확인할 항목이 있습니다',
|
|
'notifications.test.navigateText': '테스트 navigate 알림입니다.',
|
|
'notifications.test.goThere': '이동',
|
|
'notifications.test.adminTitle': '관리자 방송',
|
|
'notifications.test.adminText': '{actor}이(가) 모든 관리자에게 테스트 알림을 보냈습니다.',
|
|
'notifications.test.tripTitle': '{actor}이(가) 여행에 게시했습니다',
|
|
'notifications.test.tripText': '여행 "{trip}"의 테스트 알림입니다.',
|
|
'notifications.countLabel': '개의 알림',
|
|
};
|
|
export default notifications;
|