mirror of
https://github.com/immich-app/immich.git
synced 2025-12-18 17:23:16 +03: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:
@@ -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(),
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user