Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Localize Library Sharing

Neeraj Gupta8d001d1d44bc
diff --git a/mobile/apps/photos/changes/library-sharing.md b/mobile/apps/photos/changes/library-sharing.md
new file mode 100644
index 0000000000..eabc671e99
--- /dev/null
+++ b/mobile/apps/photos/changes/library-sharing.md
@@ -0,0 +1 @@
+- Added Library Sharing for automatically sharing current and future albums with family members.
diff --git a/mobile/apps/photos/lib/ui/family/family_dashboard.dart b/mobile/apps/photos/lib/ui/family/family_dashboard.dart
index bc3aca0db2..91ff3b954a 100644
--- a/mobile/apps/photos/lib/ui/family/family_dashboard.dart
+++ b/mobile/apps/photos/lib/ui/family/family_dashboard.dart
@@ -7,7 +7,6 @@ import 'package:ente_strings/ente_strings.dart';
import 'package:flutter/material.dart';
import 'package:hugeicons/hugeicons.dart';
import 'package:photos/models/user_details.dart';
-import 'package:photos/ui/sharing/library_sharing/library_sharing_strings.dart';
import 'package:photos/ui/viewer/people/person_face_widget.dart';
import 'package:photos/utils/avatar_util.dart';
@@ -403,7 +402,10 @@ class _FamilyMemberRow extends StatelessWidget {
? l10n.pending
: isCurrentUser || member.userID == null || sharedAlbumCount == null
? storageUsage
- : LibrarySharingStrings.memberSubtitle(sharedAlbumCount!, storageUsage);
+ : l10n.librarySharingMemberSubtitle(
+ count: sharedAlbumCount!,
+ storageUsage: storageUsage,
+ );
return MenuComponent(
title: displayName,
diff --git a/mobile/apps/photos/lib/ui/family/family_plan_page.dart b/mobile/apps/photos/lib/ui/family/family_plan_page.dart
index a45ffcefcc..ffda4f7c31 100644
--- a/mobile/apps/photos/lib/ui/family/family_plan_page.dart
+++ b/mobile/apps/photos/lib/ui/family/family_plan_page.dart
@@ -32,7 +32,6 @@ import 'package:photos/ui/family/invite_members_page.dart';
import 'package:photos/ui/notification/toast.dart';
import 'package:photos/ui/payment/subscription.dart';
import 'package:photos/ui/sharing/library_sharing/library_sharing_page.dart';
-import 'package:photos/ui/sharing/library_sharing/library_sharing_strings.dart';
import 'package:photos/ui/viewer/search/result/edit_contact_page.dart';
import 'package:photos/utils/dialog_util.dart';
import 'package:photos/utils/person_contact_linking_util.dart';
@@ -573,8 +572,7 @@ class _FamilyPlanPageState extends State<FamilyPlanPage> {
final actionLabel = switch (action) {
FamilyMemberAction.saveContact => l10n.saveContact,
FamilyMemberAction.editContact => l10n.editContact,
- FamilyMemberAction.shareAlbums =>
- LibrarySharingStrings.internalShareAlbums,
+ FamilyMemberAction.shareAlbums => l10n.librarySharingShareAlbums,
FamilyMemberAction.editStorageLimit => l10n.editStorageLimit,
FamilyMemberAction.removeMember => l10n.removeFromFamily,
FamilyMemberAction.resendInvite => l10n.resendInvite,
@@ -598,7 +596,7 @@ class _FamilyPlanPageState extends State<FamilyPlanPage> {
FamilyMemberAction.shareAlbums =>
sharedAlbumCount == null
? null
- : LibrarySharingStrings.sharedAlbumCount(sharedAlbumCount),
+ : l10n.librarySharingSharedAlbumCount(count: sharedAlbumCount),
FamilyMemberAction.editStorageLimit =>
member.storageLimit == null
? l10n.noLimitSet
diff --git a/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_page.dart b/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_page.dart
index b0b4dfe7c3..6c262f6ad0 100644
--- a/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_page.dart
+++ b/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_page.dart
@@ -1,6 +1,7 @@
import 'dart:async';
import 'package:ente_components/ente_components.dart';
+import 'package:ente_strings/ente_strings.dart';
import 'package:flutter/material.dart';
import 'package:hugeicons/hugeicons.dart';
import 'package:photos/models/collection/collection.dart';
@@ -12,7 +13,6 @@ import 'package:photos/ui/sharing/library_sharing/library_sharing_controller.dar
import 'package:photos/ui/sharing/library_sharing/library_sharing_role_badge.dart';
import 'package:photos/ui/sharing/library_sharing/library_sharing_selection_sheet.dart';
import 'package:photos/ui/sharing/library_sharing/library_sharing_sheets.dart';
-import 'package:photos/ui/sharing/library_sharing/library_sharing_strings.dart';
class LibrarySharingPage extends StatefulWidget {
const LibrarySharingPage({
@@ -127,14 +127,14 @@ class _LibrarySharingPageState extends State<LibrarySharingPage> {
return AppBarComponent(
title: _recipient.label,
eyebrow: _controller.isAddingAlbums
- ? LibrarySharingStrings.shareWith
- : LibrarySharingStrings.sharingWith,
+ ? context.strings.librarySharingShareWith
+ : context.strings.librarySharingSharingWith,
controller: _scrollController,
onBack: () => Navigator.of(context).maybePop(),
actions: [
if (!_controller.isFirstTime && !_controller.isSelecting)
IconButtonComponent(
- tooltip: LibrarySharingStrings.shareAlbums,
+ tooltip: context.strings.librarySharingShareAlbums,
variant: IconButtonComponentVariant.primary,
shouldSurfaceExecutionStates: false,
icon: const HugeIcon(
@@ -170,13 +170,13 @@ class _LibrarySharingPageState extends State<LibrarySharingPage> {
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
- LibrarySharingStrings.loadFailed,
+ context.strings.couldNotLoadAlbums,
style: TextStyles.h2,
textAlign: TextAlign.center,
),
const SizedBox(height: Spacing.lg),
ButtonComponent(
- label: LibrarySharingStrings.retryLoading,
+ label: context.strings.tryAgain,
onTap: _controller.load,
),
],
@@ -203,8 +203,8 @@ class _LibrarySharingPageState extends State<LibrarySharingPage> {
? 'assets/ducky_full_library.png'
: 'assets/ducky_share.png',
title: isSharingFullLibrary
- ? LibrarySharingStrings.allCurrentAlbumsShared
- : LibrarySharingStrings.noAlbumsToShare,
+ ? context.strings.librarySharingAllCurrentAlbumsShared
+ : context.strings.librarySharingNoAlbumsToShare,
textWidth: isSharingFullLibrary ? 257 : 285,
alignment: isSharingFullLibrary
? Alignment.topCenter
@@ -251,8 +251,8 @@ class _LibrarySharingPageState extends State<LibrarySharingPage> {
child: MenuGroupComponent(
items: [
MenuComponent(
- title: LibrarySharingStrings.librarySharing,
- subtitle: LibrarySharingStrings.shareAllYourAlbums,
+ title: context.strings.librarySharingTitle,
+ subtitle: context.strings.librarySharingBannerDescription,
onTap: _toggleLibrarySharing,
showOnlyLoadingState: true,
trailing: IgnorePointer(
diff --git a/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_selection_sheet.dart b/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_selection_sheet.dart
index b538f4b67f..cd0b5fc624 100644
--- a/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_selection_sheet.dart
+++ b/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_selection_sheet.dart
@@ -5,7 +5,6 @@ import 'package:hugeicons/hugeicons.dart';
import 'package:photos/models/collection/collection.dart';
import 'package:photos/ui/sharing/library_sharing/library_sharing_controller.dart';
import 'package:photos/ui/sharing/library_sharing/library_sharing_role_badge.dart';
-import 'package:photos/ui/sharing/library_sharing/library_sharing_strings.dart';
class LibrarySharingSelectionSheet extends StatelessWidget {
const LibrarySharingSelectionSheet({
@@ -42,8 +41,8 @@ class LibrarySharingSelectionSheet extends StatelessWidget {
],
ButtonComponent(
label: controller.isAddingAlbums
- ? LibrarySharingStrings.shareAlbumCount(
- controller.selectedCount,
+ ? context.strings.librarySharingShareAlbumCount(
+ count: controller.selectedCount,
)
: context.strings.save,
density: ButtonComponentDensity.compact,
@@ -53,7 +52,7 @@ class LibrarySharingSelectionSheet extends StatelessWidget {
if (controller.canStopSharing) ...[
const SizedBox(height: Spacing.md),
ButtonComponent(
- label: LibrarySharingStrings.stopSharing,
+ label: context.strings.librarySharingStopSharing,
variant: ButtonComponentVariant.tertiaryCritical,
density: ButtonComponentDensity.compact,
shouldSurfaceExecutionStates: false,
@@ -70,7 +69,7 @@ class LibrarySharingSelectionSheet extends StatelessWidget {
return Semantics(
container: true,
explicitChildNodes: true,
- label: LibrarySharingStrings.albumSelectionControls,
+ label: context.strings.librarySharingAlbumSelectionControls,
expanded: isExpanded,
onExpand: isExpanded ? null : () => onChanged(true),
onCollapse: isExpanded ? () => onChanged(false) : null,
@@ -104,14 +103,14 @@ class LibrarySharingSelectionSheet extends StatelessWidget {
final canClearSelection = controller.hasSelection && !controller.isMutating;
final selectedCount = SelectionSummaryChipComponent(
key: const ValueKey('library-sharing-selected-count'),
- label: LibrarySharingStrings.selectedAlbumCount(controller.selectedCount),
+ label: l10n.selectedCount(count: controller.selectedCount),
icon: const HugeIcon(
icon: HugeIcons.strokeRoundedCancel01,
size: IconSizes.small,
),
semanticLabel: canClearSelection
? l10n.unselectAll
- : LibrarySharingStrings.selectedAlbumCount(controller.selectedCount),
+ : l10n.selectedCount(count: controller.selectedCount),
isSelected: controller.hasSelection,
onTap: canClearSelection ? controller.clearSelection : null,
);
@@ -151,11 +150,11 @@ class LibrarySharingSelectionSheet extends StatelessWidget {
final canEditRole = controller.canEditSelectedRoles;
final trailing = LibrarySharingRoleSelector(
role: selectedRole,
- fallbackLabel: LibrarySharingStrings.mixed,
+ fallbackLabel: context.strings.librarySharingMixed,
showChevron: canEditRole,
);
final menu = MenuComponent(
- title: LibrarySharingStrings.role,
+ title: context.strings.librarySharingRole,
trailing: trailing,
isDisabled: !canEditRole,
onTap: selectedRole == null && canEditRole ? onShowMixedRoles : null,
diff --git a/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_sheets.dart b/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_sheets.dart
index 86b71bccd7..69cee9b99a 100644
--- a/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_sheets.dart
+++ b/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_sheets.dart
@@ -6,7 +6,6 @@ import 'package:photos/ui/collections/album/list_item.dart';
import 'package:photos/ui/components/thumbnail_list_item.dart';
import 'package:photos/ui/sharing/library_sharing/library_sharing_controller.dart';
import 'package:photos/ui/sharing/library_sharing/library_sharing_role_badge.dart';
-import 'package:photos/ui/sharing/library_sharing/library_sharing_strings.dart';
typedef LibrarySharingAlbumThumbnailBuilder =
Widget Function(BuildContext context, Collection album);
@@ -22,21 +21,21 @@ Future<CollectionParticipantRole?> showEnableLibrarySharingSheet({
builder: (context, setState) {
final colors = context.componentColors;
return BottomSheetComponent(
- title: LibrarySharingStrings.enableLibrarySharing,
+ title: context.strings.librarySharingEnableTitle,
borderSide: BorderSide(color: colors.strokeDark),
content: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Text(
- LibrarySharingStrings.enableLibrarySharingMessage(
- recipientLabel,
+ context.strings.librarySharingEnableDescription(
+ recipient: recipientLabel,
),
style: TextStyles.body.copyWith(color: colors.textLight),
),
const SizedBox(height: Spacing.lg),
Text(
- LibrarySharingStrings.hiddenAlbumsNotShared,
+ context.strings.librarySharingHiddenAlbumsDescription,
style: TextStyles.body.copyWith(color: colors.textLight),
),
const SizedBox(height: Spacing.lg),
@@ -49,7 +48,7 @@ Future<CollectionParticipantRole?> showEnableLibrarySharingSheet({
),
onSelected: (role) => setState(() => selectedRole = role),
child: MenuComponent(
- title: LibrarySharingStrings.role,
+ title: context.strings.librarySharingRole,
trailing: LibrarySharingRoleSelector(role: selectedRole),
),
),
@@ -59,7 +58,7 @@ Future<CollectionParticipantRole?> showEnableLibrarySharingSheet({
),
actions: [
ButtonComponent(
- label: LibrarySharingStrings.enable,
+ label: context.strings.enable,
density: ButtonComponentDensity.compact,
shouldSurfaceExecutionStates: false,
onTap: () => Navigator.of(sheetContext).pop(selectedRole),
@@ -87,7 +86,7 @@ Future<bool?> showLibrarySharingRolesSheet({
builder: (context) {
final colors = context.componentColors;
return BottomSheetComponent(
- title: LibrarySharingStrings.roles,
+ title: context.strings.librarySharingRoles,
showCloseButton: !controller.isMutating,
borderSide: BorderSide(color: colors.strokeDark),
content: _LibrarySharingRoleList(
@@ -96,7 +95,7 @@ Future<bool?> showLibrarySharingRolesSheet({
),
actions: [
ButtonComponent(
- label: LibrarySharingStrings.updateRoles,
+ label: context.strings.librarySharingUpdateRoles,
density: ButtonComponentDensity.compact,
isDisabled: !controller.canApply,
onTap: () async {
@@ -190,13 +189,17 @@ Future<bool> confirmStopLibrarySharing({
builder: (sheetContext) {
final colors = sheetContext.componentColors;
return BottomSheetComponent(
- title: LibrarySharingStrings.stopSharingTitle(count),
- message: LibrarySharingStrings.stopSharingMessage(count),
+ title: sheetContext.strings.librarySharingStopSharingTitle(
+ count: count,
+ ),
+ message: sheetContext.strings.librarySharingStopSharingDescription(
+ count: count,
+ ),
illustration: Image.asset('assets/warning-red.png'),
borderSide: BorderSide(color: colors.strokeDark),
actions: [
ButtonComponent(
- label: LibrarySharingStrings.stopSharing,
+ label: sheetContext.strings.librarySharingStopSharing,
variant: ButtonComponentVariant.critical,
density: ButtonComponentDensity.compact,
shouldSurfaceExecutionStates: false,
@@ -216,8 +219,11 @@ Future<bool> showPreviouslyUnsharedAlbums({
return await showBottomSheetComponent<bool>(
context: context,
builder: (sheetContext) => BottomSheetComponent(
- title: LibrarySharingStrings.previouslyUnsharedTitle(count),
- message: LibrarySharingStrings.previouslyUnsharedMessage(count),
+ title: sheetContext.strings.librarySharingPreviouslyUnsharedTitle(
+ count: count,
+ ),
+ message: sheetContext.strings
+ .librarySharingPreviouslyUnsharedDescription(count: count),
illustration: Image.asset('assets/warning-red.png'),
borderSide: BorderSide(
color: sheetContext.componentColors.strokeDark,
@@ -243,11 +249,11 @@ Future<void> showLibrarySharingFailure({
final count = controller.failedCount;
return showErrorBottomSheetComponent<void>(
context: context,
- title: LibrarySharingStrings.sharingFailed,
+ title: context.strings.librarySharingFailedTitle,
message: count > 0
- ? LibrarySharingStrings.failedAlbumCount(count)
- : LibrarySharingStrings.sharingFailedMessage,
- actionLabel: LibrarySharingStrings.retryFailed,
+ ? context.strings.librarySharingFailedAlbumCount(count: count)
+ : context.strings.librarySharingFailedDescription,
+ actionLabel: context.strings.librarySharingRetryFailedAlbums,
onActionTap: () async {
Navigator.of(context).pop();
await onRetry();
diff --git a/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_strings.dart b/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_strings.dart
deleted file mode 100644
index 08c52ba3cc..0000000000
--- a/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_strings.dart
+++ /dev/null
@@ -1,91 +0,0 @@
-import 'package:photos/utils/pending_translation.dart';
-
-abstract final class LibrarySharingStrings {
- static String get sharingWith => pendingTranslation('Sharing with');
- static String get shareWith => pendingTranslation('Share with');
-
- static String get shareAlbums => pendingTranslation('Share albums');
- static String get internalShareAlbums =>
- pendingTranslation('(i) Share albums');
- static String get librarySharing => pendingTranslation('Library sharing');
- static String get shareAllYourAlbums =>
- pendingTranslation('Share all your albums');
- static String get enableLibrarySharing =>
- pendingTranslation('Enable library sharing?');
- static String enableLibrarySharingMessage(
- String recipient,
- ) => pendingTranslation(
- 'Your existing albums, and the ones you create in the future will be automatically shared with $recipient.',
- );
- static String get hiddenAlbumsNotShared => pendingTranslation(
- 'Hidden albums will not be shared. You can stop sharing any album at any time.',
- );
- static String get enable => pendingTranslation('Enable');
- static String previouslyUnsharedTitle(int count) => switch (count) {
- 1 => pendingTranslation("1 album wasn't shared"),
- _ => pendingTranslation("$count albums weren't shared"),
- };
- static String previouslyUnsharedMessage(int count) => switch (count) {
- 1 => pendingTranslation(
- "Sharing was stopped for this album earlier, so it wasn't shared again.",
- ),
- _ => pendingTranslation(
- "Sharing was stopped for these albums earlier, so they weren't shared again.",
- ),
- };
- static String sharedAlbumCount(int count) => switch (count) {
- 0 => pendingTranslation('No albums shared'),
- 1 => pendingTranslation('1 album shared'),
- _ => pendingTranslation('$count albums shared'),
- };
-
- static String memberSubtitle(int count, String storageUsage) =>
- pendingTranslation('${sharedAlbumCount(count)} \u2022 $storageUsage');
-
- static String selectedAlbumCount(int count) => switch (count) {
- 1 => pendingTranslation('1 selected'),
- _ => pendingTranslation('$count selected'),
- };
-
- static String shareAlbumCount(int count) => switch (count) {
- 1 => pendingTranslation('Share 1 album'),
- _ => pendingTranslation('Share $count albums'),
- };
-
- static String stopSharingTitle(int count) => switch (count) {
- 1 => pendingTranslation('Stop sharing 1 album?'),
- _ => pendingTranslation('Stop sharing $count albums?'),
- };
-
- static String stopSharingMessage(int count) => switch (count) {
- 1 => pendingTranslation(
- "They'll lose this album, and any photos they added leave with them. You can share again later.",
- ),
- _ => pendingTranslation(
- "They'll lose these albums, and any photos they added leave with them. You can share again later.",
- ),
- };
-
- static String failedAlbumCount(int count) => switch (count) {
- 1 => pendingTranslation('Could not update 1 album.'),
- _ => pendingTranslation('Could not update $count albums.'),
- };
-
- static String get role => pendingTranslation('Role');
- static String get mixed => pendingTranslation('Mixed');
- static String get roles => pendingTranslation('Roles');
- static String get updateRoles => pendingTranslation('Update roles');
- static String get stopSharing => pendingTranslation('Stop sharing');
- static String get retryFailed => pendingTranslation('Retry failed albums');
- static String get retryLoading => pendingTranslation('Try again');
- static String get noAlbumsToShare =>
- pendingTranslation('No albums to share yet');
- static String get allCurrentAlbumsShared =>
- pendingTranslation('All your current albums are shared');
- static String get albumSelectionControls =>
- pendingTranslation('Album selection controls');
- static String get sharingFailed => pendingTranslation('Sharing failed');
- static String get sharingFailedMessage =>
- pendingTranslation('Could not update the selected albums.');
- static String get loadFailed => pendingTranslation('Could not load albums');
-}
diff --git a/mobile/apps/photos/test/ui/sharing/library_sharing_page_test.dart b/mobile/apps/photos/test/ui/sharing/library_sharing_page_test.dart
index 77ffee284a..64e191a2a4 100644
--- a/mobile/apps/photos/test/ui/sharing/library_sharing_page_test.dart
+++ b/mobile/apps/photos/test/ui/sharing/library_sharing_page_test.dart
@@ -104,7 +104,7 @@ void main() {
expect(find.text('Enable library sharing?'), findsOneWidget);
expect(
find.text(
- 'Your existing albums, and the ones you create in the future will be automatically shared with Friend.',
+ 'Your existing albums and any albums you create in the future will be automatically shared with Friend.',
),
findsOneWidget,
);
diff --git a/mobile/packages/strings/lib/l10n/arb/strings_en.arb b/mobile/packages/strings/lib/l10n/arb/strings_en.arb
index e29b1e048a..65d79e77d3 100644
--- a/mobile/packages/strings/lib/l10n/arb/strings_en.arb
+++ b/mobile/packages/strings/lib/l10n/arb/strings_en.arb
@@ -2162,6 +2162,172 @@
}
}
},
+ "librarySharingAlbumSelectionControls": "Album selection controls",
+ "@librarySharingAlbumSelectionControls": {
+ "description": "Accessibility label for the controls used to select albums for Library Sharing."
+ },
+ "librarySharingAllCurrentAlbumsShared": "All your current albums are shared",
+ "@librarySharingAllCurrentAlbumsShared": {
+ "description": "Empty-state title shown when every current album is already shared with the selected person."
+ },
+ "librarySharingBannerDescription": "Share all your albums",
+ "@librarySharingBannerDescription": {
+ "description": "Subtitle for the Library Sharing automatic-sharing toggle."
+ },
+ "librarySharingEnableDescription": "Your existing albums and any albums you create in the future will be automatically shared with {recipient}.",
+ "@librarySharingEnableDescription": {
+ "description": "Explains what happens when Library Sharing is enabled for a person.",
+ "placeholders": {
+ "recipient": {
+ "type": "String",
+ "example": "Alex"
+ }
+ }
+ },
+ "librarySharingEnableTitle": "Enable library sharing?",
+ "@librarySharingEnableTitle": {
+ "description": "Confirmation title shown before enabling Library Sharing."
+ },
+ "librarySharingFailedAlbumCount": "{count, plural, one{Could not update {count} album.} other{Could not update {count} albums.}}",
+ "@librarySharingFailedAlbumCount": {
+ "description": "Number of albums that could not be updated by a Library Sharing operation.",
+ "placeholders": {
+ "count": {
+ "type": "int",
+ "example": "3"
+ }
+ }
+ },
+ "librarySharingFailedDescription": "Could not update the selected albums.",
+ "@librarySharingFailedDescription": {
+ "description": "Fallback error message when a Library Sharing operation fails."
+ },
+ "librarySharingFailedTitle": "Sharing failed",
+ "@librarySharingFailedTitle": {
+ "description": "Error title shown when a Library Sharing operation fails."
+ },
+ "librarySharingHiddenAlbumsDescription": "Hidden albums will not be shared. You can stop sharing any album at any time.",
+ "@librarySharingHiddenAlbumsDescription": {
+ "description": "Explains exclusions from automatic Library Sharing."
+ },
+ "librarySharingMemberSubtitle": "{count, plural, =0{No albums shared β€’ {storageUsage}} one{{count} album shared β€’ {storageUsage}} other{{count} albums shared β€’ {storageUsage}}}",
+ "@librarySharingMemberSubtitle": {
+ "description": "Family member subtitle combining the number of shared albums and storage usage.",
+ "placeholders": {
+ "count": {
+ "type": "int",
+ "example": "3"
+ },
+ "storageUsage": {
+ "type": "String",
+ "example": "2 GB"
+ }
+ }
+ },
+ "librarySharingMixed": "Mixed",
+ "@librarySharingMixed": {
+ "description": "Role label shown when selected albums have different Library Sharing roles."
+ },
+ "librarySharingNoAlbumsToShare": "No albums to share yet",
+ "@librarySharingNoAlbumsToShare": {
+ "description": "Empty-state title shown when there are no albums eligible for Library Sharing."
+ },
+ "librarySharingPreviouslyUnsharedDescription": "{count, plural, one{Sharing was stopped for this album earlier, so it wasn't shared again.} other{Sharing was stopped for these albums earlier, so they weren't shared again.}}",
+ "@librarySharingPreviouslyUnsharedDescription": {
+ "description": "Explains why albums that were manually unshared were not shared automatically again.",
+ "placeholders": {
+ "count": {
+ "type": "int",
+ "example": "3"
+ }
+ }
+ },
+ "librarySharingPreviouslyUnsharedTitle": "{count, plural, one{{count} album wasn't shared} other{{count} albums weren't shared}}",
+ "@librarySharingPreviouslyUnsharedTitle": {
+ "description": "Title shown when previously unshared albums are excluded from automatic Library Sharing.",
+ "placeholders": {
+ "count": {
+ "type": "int",
+ "example": "3"
+ }
+ }
+ },
+ "librarySharingRetryFailedAlbums": "Retry failed albums",
+ "@librarySharingRetryFailedAlbums": {
+ "description": "Action to retry albums that failed during a Library Sharing operation."
+ },
+ "librarySharingRole": "Role",
+ "@librarySharingRole": {
+ "description": "Label for a person's access role on a shared album."
+ },
+ "librarySharingRoles": "Roles",
+ "@librarySharingRoles": {
+ "description": "Title for editing access roles across multiple shared albums."
+ },
+ "librarySharingShareAlbumCount": "{count, plural, one{Share {count} album} other{Share {count} albums}}",
+ "@librarySharingShareAlbumCount": {
+ "description": "Action to share the selected number of albums.",
+ "placeholders": {
+ "count": {
+ "type": "int",
+ "example": "3"
+ }
+ }
+ },
+ "librarySharingShareAlbums": "Share albums",
+ "@librarySharingShareAlbums": {
+ "description": "Action to select albums to share with a person."
+ },
+ "librarySharingSharedAlbumCount": "{count, plural, =0{No albums shared} one{{count} album shared} other{{count} albums shared}}",
+ "@librarySharingSharedAlbumCount": {
+ "description": "Number of albums currently shared with a family member.",
+ "placeholders": {
+ "count": {
+ "type": "int",
+ "example": "3"
+ }
+ }
+ },
+ "librarySharingShareWith": "Share with",
+ "@librarySharingShareWith": {
+ "description": "Page eyebrow shown while selecting albums to share with a person."
+ },
+ "librarySharingSharingWith": "Sharing with",
+ "@librarySharingSharingWith": {
+ "description": "Page eyebrow shown while viewing albums shared with a person."
+ },
+ "librarySharingStopSharing": "Stop sharing",
+ "@librarySharingStopSharing": {
+ "description": "Action to stop sharing selected albums with a person."
+ },
+ "librarySharingStopSharingDescription": "{count, plural, one{They'll lose this album, and any photos they added leave with them. You can share again later.} other{They'll lose these albums, and any photos they added leave with them. You can share again later.}}",
+ "@librarySharingStopSharingDescription": {
+ "description": "Explains what happens when selected albums are no longer shared with a person.",
+ "placeholders": {
+ "count": {
+ "type": "int",
+ "example": "3"
+ }
+ }
+ },
+ "librarySharingStopSharingTitle": "{count, plural, one{Stop sharing {count} album?} other{Stop sharing {count} albums?}}",
+ "@librarySharingStopSharingTitle": {
+ "description": "Confirmation title before selected albums are no longer shared with a person.",
+ "placeholders": {
+ "count": {
+ "type": "int",
+ "example": "3"
+ }
+ }
+ },
+ "librarySharingTitle": "Library sharing",
+ "@librarySharingTitle": {
+ "description": "Title for the feature that automatically shares a person's current and future albums."
+ },
+ "librarySharingUpdateRoles": "Update roles",
+ "@librarySharingUpdateRoles": {
+ "description": "Action to apply access role changes to selected shared albums."
+ },
"limit": "Limit",
"linkCopiedToClipboard": "Link copied to clipboard",
"linkDeletedSuccessfully": "Link deleted successfully",