Refine admin update language/presentation
This commit is contained in:
parent
6115c5952f
commit
def1091ee9
@ -92,7 +92,7 @@ export default function AdminAppMenu({
|
||||
}
|
||||
if (photosCountNeedSync) {
|
||||
items.push({
|
||||
label: APP_TEXT.admin.updates,
|
||||
label: APP_TEXT.admin.updatePlural,
|
||||
annotation: <>
|
||||
<span className="mr-3">
|
||||
{photosCountNeedSync}
|
||||
|
||||
@ -15,6 +15,7 @@ import PhotoUploadWithStatus from '@/photo/PhotoUploadWithStatus';
|
||||
import { pluralize } from '@/utility/string';
|
||||
import IconBroom from '@/components/icons/IconBroom';
|
||||
import ResponsiveText from '@/components/primitives/ResponsiveText';
|
||||
import { APP_TEXT } from '@/app/config';
|
||||
|
||||
export default function AdminPhotosClient({
|
||||
photos,
|
||||
@ -61,7 +62,11 @@ export default function AdminPhotosClient({
|
||||
className="translate-x-[-1px]"
|
||||
/>}
|
||||
tooltip={(
|
||||
pluralize(photosCountNeedsSync, 'photo') +
|
||||
pluralize(
|
||||
photosCountNeedsSync,
|
||||
APP_TEXT.photo.photo,
|
||||
APP_TEXT.photo.photoPlural,
|
||||
) +
|
||||
' missing data or AI-generated text'
|
||||
)}
|
||||
className={clsx(
|
||||
@ -76,7 +81,11 @@ export default function AdminPhotosClient({
|
||||
hideTextOnMobile={false}
|
||||
>
|
||||
<ResponsiveText shortText={photosCountNeedsSync}>
|
||||
{pluralize(photosCountNeedsSync, 'Update')}
|
||||
{pluralize(
|
||||
photosCountNeedsSync,
|
||||
APP_TEXT.admin.update,
|
||||
APP_TEXT.admin.updatePlural,
|
||||
)}
|
||||
</ResponsiveText>
|
||||
</PathLoaderButton>}
|
||||
</div>
|
||||
|
||||
@ -100,7 +100,7 @@ export default function AdminPhotosTable({
|
||||
<Tooltip
|
||||
content={getPhotoSyncStatusText(photo)}
|
||||
classNameTrigger={clsx(
|
||||
'translate-y-1 ml-1.5',
|
||||
'ml-1.5',
|
||||
'text-blue-600 dark:text-blue-400',
|
||||
)}
|
||||
supportMobile
|
||||
|
||||
@ -73,7 +73,8 @@ const TEXT: I18NDeepPartial = {
|
||||
upload: 'Enviar',
|
||||
uploadPlural: 'Envios',
|
||||
uploading: 'Enviando',
|
||||
updates: 'Atualizações',
|
||||
update: 'Atualizar',
|
||||
updatePlural: 'Atualizações',
|
||||
managePhotos: 'Gerenciar Fotos',
|
||||
manageCameras: 'Gerenciar Câmeras',
|
||||
manageLenses: 'Gerenciar Lentes',
|
||||
|
||||
@ -72,7 +72,8 @@ const TEXT = {
|
||||
upload: 'Upload',
|
||||
uploadPlural: 'Uploads',
|
||||
uploading: 'Uploading',
|
||||
updates: 'Updates',
|
||||
update: 'Update',
|
||||
updatePlural: 'Updates',
|
||||
managePhotos: 'Manage Photos',
|
||||
manageCameras: 'Manage Cameras',
|
||||
manageLenses: 'Manage Lenses',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user