Skip to content

Commit dfbb981

Browse files
committed
[FEAT]: Add Portuguese translation
Add localization support for Portuguese and French Add default Dropzone label localization Update Readme Files
1 parent 395046e commit dfbb981

File tree

16 files changed

+131
-53
lines changed

16 files changed

+131
-53
lines changed

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@
99

1010
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
1111

12+
<a name="3.0.0"></a>
13+
14+
## [3.0.0](https://github.com/dropzone-ui/dropzone-ui/compare/v2.8.1...v3.0.0) (2021-10-11)
15+
16+
### Features
17+
18+
- Translation support for `Portuguese`.
19+
<a name="2.8.1"></a>
20+
21+
## [2.8.1](https://github.com/dropzone-ui/dropzone-ui/compare/v2.8.1...v2.1.1) (2021-10-08)
22+
23+
### Features
24+
- Translation support for `French`.
25+
1226
<a name="2.1.1"></a>
1327

1428
## [2.1.1](https://github.com/dropzone-ui/dropzone-ui/compare/v2.1.1...v2.0.0) (2021-10-01)
@@ -35,7 +49,7 @@ All notable changes to this project will be documented in this file. See [standa
3549
### Features
3650

3751
- Improve Readme.md
38-
- Add localization for Spanish and English
52+
- Add localization for `Spanish` and `English`
3953
- Add Readme_es.md file
4054

4155
<a name="1.2.10"></a>

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
:rocket: [Spanish](./README_ES.md)
22

33
<p align="center">
4-
<img align="center" height="128" src="https://user-images.githubusercontent.com/43678736/132112022-0ca409ae-cca2-43c8-be89-110376260a3f.png" alt="dropone-ui-logo">
4+
<img align="center" with="128px" height="128px" src="https://user-images.githubusercontent.com/43678736/132112022-0ca409ae-cca2-43c8-be89-110376260a3f.png" alt="dropone-ui-logo">
55

66
<h1 align="center"> Dropzone-UI </h1>
77

8-
[React](https://reactjs.org/) set of components for a complete file upload management awith image previews on user inteface. There already exists some very good libraries; However, **inspired** in those ones, there was created something **new** and **more powerful**. Google's Material design principles were also considered in development. Indeed, icons come from [Material design icons](https://fonts.google.com/icons).
9-
108
</p>
119

1210
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/dropzone-ui/react/blob/HEAD/LICENSE)
13-
[![npm latest package](https://img.shields.io/npm/v/@dropzone-ui/react.svg?logo=npm&logoColor=fff&label=NPM+package&color=limegreen)](https://www.npmjs.com/package/dropzone-ui/react)
14-
[![dependencies Status](https://status.david-dm.org/gh/dropzone-ui/react.svg)](https://david-dm.org/dropzone-ui/react)
11+
[![npm latest package](https://img.shields.io/npm/v/@dropzone-ui/react.svg?logo=npm&logoColor=fff&label=NPM+package&color=limegreen)](https://www.npmjs.com/package/@dropzone-ui/react)
12+
[![Rate on Openbase](https://badges.openbase.com/js/rating/@dropzone-ui/react.svg)](https://openbase.com/js/@dropzone-ui/react?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge)
1513
[![Build Status](https://app.travis-ci.com/dropzone-ui/react.svg?branch=master)](https://app.travis-ci.com/dropzone-ui/react)
16-
[![Total alerts](https://img.shields.io/lgtm/alerts/g/dropzone-ui/dropzone-ui.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/dropzone-ui/dropzone-ui/alerts/)
1714
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/dropzone-ui/dropzone-ui.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/dropzone-ui/dropzone-ui/context:javascript)
15+
[![Total alerts](https://img.shields.io/lgtm/alerts/g/dropzone-ui/dropzone-ui.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/dropzone-ui/dropzone-ui/alerts/)
1816
[![Known Vulnerabilities](https://snyk.io/test/github/dropzone-ui/react/badge.svg)](https://snyk.io/test/github/dropzone-ui/react)
1917
[![Package Quality](https://packagequality.com/shield/dropzone-ui.svg)](https://packagequality.com/#?package=dropzone-ui)
20-
[![Rate on Openbase](https://badges.openbase.com/js/rating/@dropzone-ui/react.svg)](https://openbase.com/js/@dropzone-ui/react?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge)
2118
[![install size](https://packagephobia.com/badge?p=@dropzone-ui/react)](https://packagephobia.com/result?p=@dropzone-ui/react)
19+
[![dependencies Status](https://status.david-dm.org/gh/dropzone-ui/react.svg)](https://david-dm.org/dropzone-ui/react)
2220
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
2321

22+
[React](https://reactjs.org/) set of components for a complete file upload management awith image previews on user inteface. There already exists some very good libraries; However, **inspired** in those ones, there was created something **new** and **more powerful**. Google's Material design principles were also considered in development. Indeed, icons come from [Material design icons](https://fonts.google.com/icons).
23+
24+
2425
## Sample result:
2526

2627
On `Drag`, `Drop`, `Upload` and ful screen preview. (also changing view mode from `grid` to `list`).
@@ -87,6 +88,9 @@ Yes, it's really all you need to get started as you can see in these live and in
8788
|InputFileButton & FileItemContainer|[![Edit Button](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/inputbutton-example-poqsn?file=/src/App.js)|
8889
|Server side example for upload a file | https://github.com/dropzone-ui/file-upload-server-side/tree/main/expressjs |
8990

91+
# Localization
92+
Dropzone-ui is available in different languages. So far, we only support `English`, `Spanish`, `French` and `Portuguese`. However we pretend to expand it to more languages.
93+
9094
# Dropzone UI react Components API
9195

9296
- [\<Dropzone/>](#dropzone-api)
@@ -110,7 +114,7 @@ Yes, it's really all you need to get started as you can see in these live and in
110114
| footer | `boolean` | `true` | if true, shows the dropzone footer |
111115
| header | `boolean` | `true` | if true, shows the dropzone header |
112116
| label | `string` | "Drop your files here" | Label to place when no files selected |
113-
| localization [![new-feature](https://img.shields.io/badge/new-feature-green.svg)](https://img.shields.io/badge/new-feature-green) | `"EN-en"` \| `"ES-es"` \| `"FR-fr"` | `"EN-en"` | The language to present labels. Only English, French and Spanish are suported for now. |
117+
| localization [![new-feature](https://img.shields.io/badge/new-feature-green.svg)](https://img.shields.io/badge/new-feature-green) | `"EN-en"` \| `"ES-es"` \| `"FR-fr"` \| `"PT-pt"` | `"EN-en"` | The language to present labels. So far, only `English`, `Portuguese`, `French` and `Spanish` are suported. |
114118
| method | `"POST"` \| `"PUT"` \| `"PATCH"` | `"POST"` | The method for uploading. |
115119
| maxFiles | `number` | 7 | Max `number` of files to be accepted. If the value is 1, will click event dialog to allow just asingle file |
116120
| maxFileSize | `number` | `undefined` | max file size allowed in bytes. if not preent, will not be considered on validating the file |
@@ -134,7 +138,7 @@ Yes, it's really all you need to get started as you can see in these live and in
134138
| hd | `boolean` | `undefined` | If present, preview on full screen will be presented in the real image resolution |
135139
| id | `string` \| `number` | `undefined` | identifier for the file |
136140
| info | `boolean` | `false` | If present, the info layer and the info button will ve visible |
137-
| localization [![new-feature](https://img.shields.io/badge/new-feature-green.svg)](https://img.shields.io/badge/new-feature-green) | `"EN-en"` \| `"ES-es"` \| `"FR-fr"` | `"EN-en"` | The language to present labels. Only English, Spanish and French are suported for now. |
141+
| localization [![new-feature](https://img.shields.io/badge/new-feature-green.svg)](https://img.shields.io/badge/new-feature-green) | `"EN-en"` \| `"ES-es"` \| `"FR-fr"` \| `"PT-pt"` | `"EN-en"` | The language to present labels. So far, only `English`, `Portuguese`, `French` and `Spanish` are suported. |
138142
| onDelete | `Function` | `undefined` | A `Function` of what to do when close button is pressed or clicked |
139143
| onSee | `Function` | `undefined` | A `Function` of what to do when "see" button is pressed or clicked. Returns as first parameter the image url. If `hd` present, will return the image url in the real quality. Otherwise, will return a minimized image with less resolution in order to save memory. |
140144
| preview | `boolean` | `false` | If present, and if `onSee` present, "see" button will be visible and on click will trigger `onSee` function |

0 commit comments

Comments
 (0)