Refine admin update language/presentation

This commit is contained in:
Sam Becker 2025-05-10 17:55:37 -05:00
parent 6115c5952f
commit def1091ee9
5 changed files with 17 additions and 6 deletions

View File

@ -92,7 +92,7 @@ export default function AdminAppMenu({
} }
if (photosCountNeedSync) { if (photosCountNeedSync) {
items.push({ items.push({
label: APP_TEXT.admin.updates, label: APP_TEXT.admin.updatePlural,
annotation: <> annotation: <>
<span className="mr-3"> <span className="mr-3">
{photosCountNeedSync} {photosCountNeedSync}

View File

@ -15,6 +15,7 @@ import PhotoUploadWithStatus from '@/photo/PhotoUploadWithStatus';
import { pluralize } from '@/utility/string'; import { pluralize } from '@/utility/string';
import IconBroom from '@/components/icons/IconBroom'; import IconBroom from '@/components/icons/IconBroom';
import ResponsiveText from '@/components/primitives/ResponsiveText'; import ResponsiveText from '@/components/primitives/ResponsiveText';
import { APP_TEXT } from '@/app/config';
export default function AdminPhotosClient({ export default function AdminPhotosClient({
photos, photos,
@ -61,7 +62,11 @@ export default function AdminPhotosClient({
className="translate-x-[-1px]" className="translate-x-[-1px]"
/>} />}
tooltip={( tooltip={(
pluralize(photosCountNeedsSync, 'photo') + pluralize(
photosCountNeedsSync,
APP_TEXT.photo.photo,
APP_TEXT.photo.photoPlural,
) +
' missing data or AI-generated text' ' missing data or AI-generated text'
)} )}
className={clsx( className={clsx(
@ -76,7 +81,11 @@ export default function AdminPhotosClient({
hideTextOnMobile={false} hideTextOnMobile={false}
> >
<ResponsiveText shortText={photosCountNeedsSync}> <ResponsiveText shortText={photosCountNeedsSync}>
{pluralize(photosCountNeedsSync, 'Update')} {pluralize(
photosCountNeedsSync,
APP_TEXT.admin.update,
APP_TEXT.admin.updatePlural,
)}
</ResponsiveText> </ResponsiveText>
</PathLoaderButton>} </PathLoaderButton>}
</div> </div>

View File

@ -100,7 +100,7 @@ export default function AdminPhotosTable({
<Tooltip <Tooltip
content={getPhotoSyncStatusText(photo)} content={getPhotoSyncStatusText(photo)}
classNameTrigger={clsx( classNameTrigger={clsx(
'translate-y-1 ml-1.5', 'ml-1.5',
'text-blue-600 dark:text-blue-400', 'text-blue-600 dark:text-blue-400',
)} )}
supportMobile supportMobile

View File

@ -73,7 +73,8 @@ const TEXT: I18NDeepPartial = {
upload: 'Enviar', upload: 'Enviar',
uploadPlural: 'Envios', uploadPlural: 'Envios',
uploading: 'Enviando', uploading: 'Enviando',
updates: 'Atualizações', update: 'Atualizar',
updatePlural: 'Atualizações',
managePhotos: 'Gerenciar Fotos', managePhotos: 'Gerenciar Fotos',
manageCameras: 'Gerenciar Câmeras', manageCameras: 'Gerenciar Câmeras',
manageLenses: 'Gerenciar Lentes', manageLenses: 'Gerenciar Lentes',

View File

@ -72,7 +72,8 @@ const TEXT = {
upload: 'Upload', upload: 'Upload',
uploadPlural: 'Uploads', uploadPlural: 'Uploads',
uploading: 'Uploading', uploading: 'Uploading',
updates: 'Updates', update: 'Update',
updatePlural: 'Updates',
managePhotos: 'Manage Photos', managePhotos: 'Manage Photos',
manageCameras: 'Manage Cameras', manageCameras: 'Manage Cameras',
manageLenses: 'Manage Lenses', manageLenses: 'Manage Lenses',