mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 15:17:30 +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.
38 lines
2.0 KiB
TypeScript
38 lines
2.0 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': 'テスト用の承認通知です。',
|
|
'notifications.test.accept': '承認',
|
|
'notifications.test.decline': '却下',
|
|
'notifications.test.navigateTitle': '確認してください',
|
|
'notifications.test.navigateText': 'テスト用の遷移通知です。',
|
|
'notifications.test.goThere': '移動',
|
|
'notifications.test.adminTitle': '管理者通知',
|
|
'notifications.test.adminText': '{actor} が管理者全員に通知を送りました。',
|
|
'notifications.test.tripTitle': '{actor} が旅行に投稿しました',
|
|
'notifications.test.tripText': '旅行「{trip}」のテスト通知です。',
|
|
'notifications.countLabel': '件の通知',
|
|
};
|
|
export default notifications;
|