@@ -96,7 +96,7 @@ export function useArtifactDownload(options?: {
9696 setState ( {
9797 ...INITIAL_STATE ,
9898 loading : true ,
99- progress : "Fetching artifacts from vault provider..." ,
99+ progress : COPY . deposit . recoveryArtifacts . fetchingArtifacts ,
100100 } ) ;
101101
102102 const normalizedPeginTxid = stripHexPrefix ( peginTxid ) ;
@@ -136,7 +136,7 @@ export function useArtifactDownload(options?: {
136136 setError (
137137 primeErr instanceof Error
138138 ? primeErr . message
139- : "Authentication failed" ,
139+ : COPY . deposit . recoveryArtifacts . authenticationFailed ,
140140 ) ;
141141 return false ;
142142 }
@@ -157,7 +157,7 @@ export function useArtifactDownload(options?: {
157157
158158 setState ( ( prev ) => ( {
159159 ...prev ,
160- progress : "Re-authenticating with vault provider..." ,
160+ progress : COPY . deposit . recoveryArtifacts . reauthenticating ,
161161 // Reset byte counters so the bar doesn't linger between attempts;
162162 // the next fetchAndDownloadArtifacts call seeds them from 0 again.
163163 receivedBytes : 0 ,
@@ -215,7 +215,7 @@ export function useArtifactDownload(options?: {
215215 if ( isPreDepositorSignaturesError ( err ) ) {
216216 setState ( ( prev ) => ( {
217217 ...prev ,
218- progress : "Waiting for vault provider to process signatures..." ,
218+ progress : COPY . deposit . recoveryArtifacts . waitingForSignatures ,
219219 receivedBytes : 0 ,
220220 totalBytes : 0 ,
221221 } ) ) ;
@@ -232,7 +232,7 @@ export function useArtifactDownload(options?: {
232232 if ( primed && ! cancelledRef . current ) {
233233 setState ( ( prev ) => ( {
234234 ...prev ,
235- progress : "Fetching artifacts from vault provider..." ,
235+ progress : COPY . deposit . recoveryArtifacts . fetchingArtifacts ,
236236 } ) ) ;
237237 continue ;
238238 }
@@ -241,14 +241,18 @@ export function useArtifactDownload(options?: {
241241 setError (
242242 primeErr instanceof Error
243243 ? primeErr . message
244- : "Re-authentication failed" ,
244+ : COPY . deposit . recoveryArtifacts . reauthenticationFailed ,
245245 ) ;
246246 return ;
247247 }
248248 }
249249
250250 if ( cancelledRef . current ) return ;
251- setError ( err instanceof Error ? err . message : "Download failed" ) ;
251+ setError (
252+ err instanceof Error
253+ ? err . message
254+ : COPY . deposit . recoveryArtifacts . downloadFailed ,
255+ ) ;
252256 return ;
253257 }
254258 }
0 commit comments