Fix translation bug

This commit is contained in:
problematicconsumer
2023-10-03 12:15:46 +03:30
parent 81658a1c86
commit e8b529e354
4 changed files with 5 additions and 8 deletions

View File

@@ -57,8 +57,7 @@
"fromClipboard": "Add From Clipboard", "fromClipboard": "Add From Clipboard",
"scanQr": "Scan QR code", "scanQr": "Scan QR code",
"manually": "Manual Entry", "manually": "Manual Entry",
"addingProfileMsg": "Adding Profile", "addingProfileMsg": "Adding Profile"
"invalidUrlMsg": "Invalid URL"
}, },
"update": { "update": {
"buttonTxt": "Update", "buttonTxt": "Update",
@@ -250,4 +249,4 @@
"connectionError": "Connection error" "connectionError": "Connection error"
} }
} }
} }

View File

@@ -57,8 +57,7 @@
"fromClipboard": "افزودن از کلیپ‌بورد", "fromClipboard": "افزودن از کلیپ‌بورد",
"scanQr": "اسکن QR کد", "scanQr": "اسکن QR کد",
"manually": "افزودن دستی", "manually": "افزودن دستی",
"addingProfileMsg": "در حال افزودن پروفایل", "addingProfileMsg": "در حال افزودن پروفایل"
"invalidUrlMsg": "لینک نامعتبر"
}, },
"update": { "update": {
"buttonTxt": "بروزرسانی", "buttonTxt": "بروزرسانی",
@@ -250,4 +249,4 @@
"connectionError": "خطای اتصال" "connectionError": "خطای اتصال"
} }
} }
} }

File diff suppressed because one or more lines are too long

View File

@@ -32,7 +32,7 @@ class AddProfileModal extends HookConsumerWidget {
mutationTriggered.value = false; mutationTriggered.value = false;
if (err case ProfileInvalidUrlFailure()) { if (err case ProfileInvalidUrlFailure()) {
CustomToast.error( CustomToast.error(
t.profile.add.invalidUrlMsg, t.failure.profiles.invalidUrl,
).show(context); ).show(context);
} else { } else {
CustomAlertDialog.fromErr(t.presentError(err)).show(context); CustomAlertDialog.fromErr(t.presentError(err)).show(context);