mirror of
https://github.com/immich-app/immich.git
synced 2025-07-19 22:44:24 +02:00
fix(mobile): empty translation placeholders (#18063)
* fix: empty placeholders * fix: use namedArgs --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
2af8095880
commit
ece977d9ca
28 changed files with 228 additions and 203 deletions
mobile/lib/pages/share_intent
|
@ -56,9 +56,7 @@ class ShareIntentPage extends HookConsumerWidget {
|
|||
title: Column(
|
||||
children: [
|
||||
const Text('upload_to_immich').tr(
|
||||
args: [
|
||||
candidates.length.toString(),
|
||||
],
|
||||
namedArgs: {'count': candidates.length.toString()},
|
||||
),
|
||||
Text(
|
||||
currentEndpoint,
|
||||
|
@ -176,8 +174,12 @@ class UploadingText extends StatelessWidget {
|
|||
return element.status == UploadStatus.complete;
|
||||
}).length;
|
||||
|
||||
return const Text("shared_intent_upload_button_progress_text")
|
||||
.tr(args: [uploadedCount.toString(), candidates.length.toString()]);
|
||||
return const Text("shared_intent_upload_button_progress_text").tr(
|
||||
namedArgs: {
|
||||
'current': uploadedCount.toString(),
|
||||
'total': candidates.length.toString(),
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue