mirror of
https://github.com/immich-app/immich.git
synced 2026-03-10 20:28:04 +03:00
fix: Update locked folder text and improve translations (#18622)
* Update locked folder text and remove unused translations * uppercase Locked folder in Menu * convert some translates to icu and improve * add iOS debug info translations for background processes * fix lint --------- Co-authored-by: dvbthien <dvbthien@gmail.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import 'package:immich_mobile/entities/album.entity.dart';
|
||||
import 'package:immich_mobile/extensions/build_context_extensions.dart';
|
||||
import 'package:immich_mobile/extensions/theme_extensions.dart';
|
||||
import 'package:immich_mobile/providers/user.provider.dart';
|
||||
import 'package:immich_mobile/utils/translation.dart';
|
||||
import 'package:immich_mobile/widgets/common/immich_thumbnail.dart';
|
||||
|
||||
class AlbumThumbnailCard extends ConsumerWidget {
|
||||
@@ -61,28 +62,24 @@ class AlbumThumbnailCard extends ConsumerWidget {
|
||||
if (album.ownerId == ref.read(currentUserProvider)?.id) {
|
||||
owner = 'owned'.tr();
|
||||
} else if (album.ownerName != null) {
|
||||
owner = 'album_thumbnail_shared_by'
|
||||
.tr(namedArgs: {'user': album.ownerName!});
|
||||
owner = t('shared_by_user', {'user': album.ownerName!});
|
||||
}
|
||||
}
|
||||
|
||||
return RichText(
|
||||
overflow: TextOverflow.fade,
|
||||
text: TextSpan(
|
||||
style: context.textTheme.bodyMedium?.copyWith(
|
||||
color: context.colorScheme.onSurfaceSecondary,
|
||||
),
|
||||
return Text.rich(
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(
|
||||
text: album.assetCount == 1
|
||||
? 'album_thumbnail_card_item'.tr()
|
||||
: 'album_thumbnail_card_items'
|
||||
.tr(namedArgs: {'count': '${album.assetCount}'}),
|
||||
text: t('items_count', {'count': album.assetCount}),
|
||||
),
|
||||
if (owner != null) const TextSpan(text: ' • '),
|
||||
if (owner != null) TextSpan(text: owner),
|
||||
],
|
||||
style: context.textTheme.bodyMedium?.copyWith(
|
||||
color: context.colorScheme.onSurfaceSecondary,
|
||||
),
|
||||
),
|
||||
overflow: TextOverflow.fade,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user