Просмотр исходного кода

Update @uppy/drag-drop locale in example code

fixes #1244
Artur Paikin 6 лет назад
Родитель
Сommit
72b278811a
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      website/src/docs/react.md

+ 5 - 2
website/src/docs/react.md

@@ -57,8 +57,11 @@ const AvatarPicker = ({ currentAvatar }) => {
         uppy={uppy}
         locale={{
           strings: {
-            chooseFile: 'Pick a new avatar'
-          }
+            // Text to show on the droppable area.
+            // `%{browse}` is replaced with a link that opens the system file selection dialog.
+            dropHereOr: 'Drop here or %{browse}',
+            // Used as the label for the link that opens the system file selection dialog.
+            browse: 'browse'
         }}
       />
     </div>