Localize IPFS upload and attach messages

Give IpfsUploadConfigException a reason enum mapped to l10n strings in
the attach flow, and show a localized empty-file message and generic
upload-failed message instead of raw English exception text.
This commit is contained in:
zjs81 committed 2026-10-24 21:58:39 -07:00
1 parent 34db64d7af
commit c111835bd0
24 files changed
+536 -13

No files matched your search

+5
View File
@@ -953,6 +953,11 @@
}
},
"chat_ipfsUploadNotConfigured": "Configure an IPFS upload provider in App Settings first.",
"chat_ipfsSelectedFileEmpty": "The selected file is empty.",
"chat_ipfsEndpointInvalid": "The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.",
"chat_ipfsPinataTokenMissing": "Pinata needs an API key or JWT. Add it in App Settings.",
"chat_ipfsFilebaseTokenMissing": "Filebase needs an API token. Add it in App Settings.",
"chat_ipfsKuboPathInvalid": "The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.",
"chat_ipfsLinkNoRoom": "Not enough room for the image link. Shorten your message, then try again.",
"@chat_ipfsLinkNoRoom": {
"description": "Shown before an IPFS upload when the link would push the draft over the message size limit"
+30
View File
@@ -3286,6 +3286,36 @@ abstract class AppLocalizations {
/// **'Configure an IPFS upload provider in App Settings first.'**
String get chat_ipfsUploadNotConfigured;
/// No description provided for @chat_ipfsSelectedFileEmpty.
///
/// In en, this message translates to:
/// **'The selected file is empty.'**
String get chat_ipfsSelectedFileEmpty;
/// No description provided for @chat_ipfsEndpointInvalid.
///
/// In en, this message translates to:
/// **'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.'**
String get chat_ipfsEndpointInvalid;
/// No description provided for @chat_ipfsPinataTokenMissing.
///
/// In en, this message translates to:
/// **'Pinata needs an API key or JWT. Add it in App Settings.'**
String get chat_ipfsPinataTokenMissing;
/// No description provided for @chat_ipfsFilebaseTokenMissing.
///
/// In en, this message translates to:
/// **'Filebase needs an API token. Add it in App Settings.'**
String get chat_ipfsFilebaseTokenMissing;
/// No description provided for @chat_ipfsKuboPathInvalid.
///
/// In en, this message translates to:
/// **'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.'**
String get chat_ipfsKuboPathInvalid;
/// Shown before an IPFS upload when the link would push the draft over the message size limit
///
/// In en, this message translates to:
+19
View File
@@ -1850,6 +1850,25 @@ class AppLocalizationsBg extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1849,6 +1849,25 @@ class AppLocalizationsDe extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1818,6 +1818,25 @@ class AppLocalizationsEn extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1845,6 +1845,25 @@ class AppLocalizationsEs extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1849,6 +1849,25 @@ class AppLocalizationsFr extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1839,6 +1839,25 @@ class AppLocalizationsHu extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1849,6 +1849,25 @@ class AppLocalizationsIt extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1762,6 +1762,25 @@ class AppLocalizationsJa extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1767,6 +1767,25 @@ class AppLocalizationsKo extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1835,6 +1835,25 @@ class AppLocalizationsNl extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1864,6 +1864,25 @@ class AppLocalizationsPl extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1845,6 +1845,25 @@ class AppLocalizationsPt extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1849,6 +1849,25 @@ class AppLocalizationsRu extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1837,6 +1837,25 @@ class AppLocalizationsSk extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1836,6 +1836,25 @@ class AppLocalizationsSl extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1824,6 +1824,25 @@ class AppLocalizationsSv extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1839,6 +1839,25 @@ class AppLocalizationsUk extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';
+19
View File
@@ -1742,6 +1742,25 @@ class AppLocalizationsZh extends AppLocalizations {
String get chat_ipfsUploadNotConfigured =>
'Configure an IPFS upload provider in App Settings first.';
@override
String get chat_ipfsSelectedFileEmpty => 'The selected file is empty.';
@override
String get chat_ipfsEndpointInvalid =>
'The IPFS upload endpoint must be a full http:// or https:// address. Check it in App Settings.';
@override
String get chat_ipfsPinataTokenMissing =>
'Pinata needs an API key or JWT. Add it in App Settings.';
@override
String get chat_ipfsFilebaseTokenMissing =>
'Filebase needs an API token. Add it in App Settings.';
@override
String get chat_ipfsKuboPathInvalid =>
'The Kubo upload endpoint must end with /api/v0/add. Check it in App Settings.';
@override
String get chat_ipfsLinkNoRoom =>
'Not enough room for the image link. Shorten your message, then try again.';