Browse Source

@uppy/provider-views: bring back "loaded X files..." (#5097)

As discussed with lakesare in #5050.
Currently the loadedXFiles i18n key is not in use at all,
don't know where/when it got lost in translation.
Mikael Finstad 1 year ago
parent
commit
98c4b51856
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/@uppy/provider-views/src/Browser.tsx

+ 3 - 1
packages/@uppy/provider-views/src/Browser.tsx

@@ -195,7 +195,9 @@ function Browser<M extends Meta, B extends Body>(
         if (isLoading) {
         if (isLoading) {
           return (
           return (
             <div className="uppy-Provider-loading">
             <div className="uppy-Provider-loading">
-              <span>{i18n('loading')}</span>
+              <span>
+                {typeof isLoading === 'string' ? isLoading : i18n('loading')}
+              </span>
             </div>
             </div>
           )
           )
         }
         }