mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 16:10:07 +00:00
bdaddc44ac
The plural parity check only knows the groups en already declares, so a
"{count} ..." string added as a plain key kept one form in every
language: Polish read "Usuń 1 spakowanych", Czech "Odstranit 1
hotových" and Greek "1 λεπτά". 44 such en keys become plural groups with their
forms in all 27 locales: the collection, packing, day plan and offline
banner counts, the relative times, the audit log, the tour and transit
minutes, the share and photo hints. Labels like "Notes: {count}" get
their forms too, so a language can still inflect them later. The
dashboard's hand-rolled activeOne/activeMany pair, unused, becomes one
group, dashboard.subtitle.active.
i18n-parity now refuses an en string with {count} or {n} that is no
plural group. NOT_PLURAL lists the eleven where the number is never a
quantity (a day number, a step, a waypoint, the equator multiplier),
each with its reason, and an entry that stops matching fails as well.
Callers that worked around the engine:
- Copy to trip switched between two keys on placeIds.length > 1;
collections.copyN now carries the one-place wording as its `one` form,
where the language's `one` is the number 1 alone.
- The plugin dependency toasts said "addon(s)" and "plugin(s)"; they are
groups now and the panels pass the list length as the count.
- The dismissed suggestions count went in as a string and the comp days
as a formatted string, so no form was picked; both pass numbers.
80 lines
4.0 KiB
TypeScript
80 lines
4.0 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const memories: TranslationStrings = {
|
|
'memories.title': 'Photos',
|
|
'memories.notConnected': '{provider_name} not connected',
|
|
'memories.notConnectedHint': 'Connect your {provider_name} instance in Settings to be able add photos to this trip.',
|
|
'memories.notConnectedMultipleHint':
|
|
'Connect any of these photo providers: {provider_names} in Settings to be able add photos to this trip.',
|
|
'memories.noDates': 'Add dates to your trip to load photos.',
|
|
'memories.noPhotos': 'No photos found',
|
|
'memories.noPhotosHint': "No photos found in {provider_name} for this trip's date range.",
|
|
'memories.photosFound': 'photos',
|
|
'memories.fromOthers': 'from others',
|
|
'memories.sharePhotos': 'Share photos',
|
|
'memories.sharing': 'Sharing',
|
|
'memories.reviewTitle': 'Review your photos',
|
|
'memories.reviewHint': 'Click photos to exclude them from sharing.',
|
|
'memories.shareCount': 'Share {count} photos',
|
|
'memories.shareCount.one': 'Share {count} photo',
|
|
'memories.providerUrl': 'Server URL',
|
|
'memories.providerApiKey': 'API Key',
|
|
'memories.providerUsername': 'Username',
|
|
'memories.providerPassword': 'Password',
|
|
'memories.providerOTP': 'MFA code (if enabled)',
|
|
'memories.skipSSLVerification': 'Skip SSL certificate verification',
|
|
'memories.immichAutoUpload': 'Mirror journey photos to Immich on upload',
|
|
'memories.providerUrlHintSynology': 'Include the Photos app path in the URL, e.g. https://nas:5001/photo',
|
|
'memories.testConnection': 'Test connection',
|
|
'memories.testShort': 'Test',
|
|
'memories.testFirst': 'Test connection first',
|
|
'memories.connected': 'Connected',
|
|
'memories.disconnected': 'Not connected',
|
|
'memories.connectionSuccess': 'Connected to {provider_name}',
|
|
'memories.connectionError': 'Could not connect to {provider_name}',
|
|
'memories.saved': '{provider_name} settings saved',
|
|
'memories.providerDisconnectedBanner':
|
|
'Your {provider_name} connection is lost. Reconnect in Settings to view photos.',
|
|
'memories.saveError': 'Could not save {provider_name} settings',
|
|
'memories.addPhotos': 'Add photos',
|
|
'memories.linkAlbum': 'Link Album',
|
|
'memories.selectAlbum': 'Select {provider_name} Album',
|
|
'memories.selectAlbumMultiple': 'Select Album',
|
|
'memories.noAlbums': 'No albums found',
|
|
'memories.syncAlbum': 'Sync album',
|
|
'memories.unlinkAlbum': 'Unlink album',
|
|
'memories.photos': 'photos',
|
|
'memories.selectPhotos': 'Select photos from {provider_name}',
|
|
'memories.selectPhotosMultiple': 'Select Photos',
|
|
'memories.selectHint': 'Tap photos to select them.',
|
|
'memories.selected': 'selected',
|
|
'memories.addSelected': 'Add {count} photos',
|
|
'memories.addSelected.one': 'Add {count} photo',
|
|
'memories.alreadyAdded': 'Added',
|
|
'memories.private': 'Private',
|
|
'memories.stopSharing': 'Stop sharing',
|
|
'memories.oldest': 'Oldest first',
|
|
'memories.newest': 'Newest first',
|
|
'memories.allLocations': 'All locations',
|
|
'memories.tripDates': 'Trip dates',
|
|
'memories.allPhotos': 'All photos',
|
|
'memories.confirmShareTitle': 'Share with trip members?',
|
|
'memories.confirmShareHint':
|
|
'{count} photos will be visible to all members of this trip. You can make individual photos private later.',
|
|
'memories.confirmShareHint.one':
|
|
'{count} photo will be visible to all members of this trip. You can make it private later.',
|
|
'memories.confirmShareButton': 'Share photos',
|
|
'memories.error.loadAlbums': 'Failed to load albums',
|
|
'memories.error.linkAlbum': 'Failed to link album',
|
|
'memories.error.unlinkAlbum': 'Failed to unlink album',
|
|
'memories.error.syncAlbum': 'Failed to sync album',
|
|
'memories.error.loadPhotos': 'Failed to load photos',
|
|
'memories.error.addPhotos': 'Failed to add photos',
|
|
'memories.error.removePhoto': 'Failed to remove photo',
|
|
'memories.error.toggleSharing': 'Failed to update sharing',
|
|
'memories.saveRouteNotConfigured': 'Save route is not configured for this provider',
|
|
'memories.testRouteNotConfigured': 'Test route is not configured for this provider',
|
|
'memories.fillRequiredFields': 'Please fill all required fields',
|
|
};
|
|
export default memories;
|