Skip to content

Commit a58926e

Browse files
committed
[REF]: Update readme file with new languages
1 parent 6a30464 commit a58926e

35 files changed

+320
-107
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,17 @@ app.post("/upload-my-file", async (req, res) => {
157157

158158
# Localization
159159

160-
Dropzone-ui is available in different languages. So far, we only support `English`, `Spanish`, `French` and `Portuguese`. In next releases this list will be increased.
160+
Dropzone-ui is available in different languages. So far, we only support `English`, `Spanish`, `French` and `Portuguese`. In next releases this list will be increased.:cn:
161161

162-
| Language | Code | Example |
163-
| ----------------------------------- | ------- | ---------------------- |
164-
| English :us: :uk: | `EN-en` | localization="`EN-en`" |
162+
| Language | Code | Example |
163+
| ---------------------------------------- | ------- | ---------------------- |
164+
| English :us: :uk: | `EN-en` | localization="`EN-en`" |
165165
| Spanish :peru: :mexico: :argentina: :es: | `ES-es` | localization="`ES-es`" |
166-
| Fench :fr: | `FR-fr` | localization="`FR-fr`" |
167-
| Portuguese :brazil: :portugal: | `PT-pt` | localization="`PT-pt`" |
168-
| Russian :ru: | `RU-ru` | localization="`RU-ru`" |
166+
| Fench :fr: | `FR-fr` | localization="`FR-fr`" |
167+
| Portuguese :brazil: :portugal: | `PT-pt` | localization="`PT-pt`" |
168+
| Russian :ru: | `RU-ru` | localization="`RU-ru`" |
169+
| Chinese(simplified) :cn: | `ZH-cn` | localization="`ZH-cn`" |
170+
| Chinese(traditional) :cn: | `ZH-hk` | localization="`ZH-hk`" |
169171

170172
# Dropzone UI react Components API
171173

build/components/dropzone/components/Dropzone/DropzoneProps.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,18 @@ export interface DropzoneProps extends OverridableProps {
101101
* "1rem"
102102
*/
103103
maxHeight?: string;
104+
/**
105+
* The max height of the container
106+
* in string format
107+
* by default "500px"
108+
*
109+
* examples:
110+
* "50vh"
111+
* "20%"
112+
* "40em"
113+
* "1rem"
114+
*/
115+
minHeight?: string;
104116
/**
105117
* if true, shows the dropzone footer
106118
*/

build/components/dropzone/components/hooks/useDropzoneStyles.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
*
33
* @param color The color theme
44
* @param backgroundColor the background Color
5-
* @param maxHeight the max heith for dropzone container
5+
* @param maxHeight the max heigth for dropzone container
6+
* @param minHeight the min heigth for dropzone container
67
* @returns a valid classnname for the component
78
*/
8-
declare const useDropzoneStyles: (color: string | undefined, backgroundColor: string | undefined, maxHeight: string | undefined) => string;
9+
declare const useDropzoneStyles: (color: string | undefined, backgroundColor: string | undefined, maxHeight: string | undefined, minHeight: string | undefined) => string;
910
export default useDropzoneStyles;

build/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import { createPDF, createWord, createListOfMultiTypeFile, createSyntheticFile } from "./utils/files.utils";
22
import { makeSynthticFileValidate } from "./components/dropzone/components/utils/validation.utils";
3+
import { DropzoneLocalizerSelector, DropzoneLocalizer, DropzoneFrench, DropzoneEnglish, DropzoneSpanish, DropzonePortuguese, DropzoneRussian, DropzoneSimplifiedChinese, DropzoneTraditionalChinese, FileItemLocalizerSelector, FileItemLocalizer, FileItemFrench, FileItemEnglish, FileItemSpanish, FileItemPortuguese, FileItemRussian, FileItemSimplifiedChinese, FileItemTraditionalChinese, ValidateErrorLocalizerSelector, ValidateErrorLocalizer, ValidateErrorFrench, ValidateErrorEnglish, ValidateErrorSpanish, ValidateErrorPortuguese, ValidateErrorRussian, ValidateErrorSimplifiedChinese, ValidateErrorTraditionalChinese } from "./localization";
34
import { UploadPromiseAxiosResponse as UploadPromiseAxiosResponseType, FileDuiResponse as FileDuiResponseType, DropzoneUIResponse as DropzoneUIResponseType } from "./components/dropzone/components/utils/dropzone-ui.upload.utils";
45
import { FileValidated as FileValidatedType, UPLOADSTATUS } from "./components/dropzone/components/utils/validation.utils";
56
export declare type UploadPromiseAxiosResponse = UploadPromiseAxiosResponseType;
67
export declare type FileDuiResponse = FileDuiResponseType;
78
export declare type DropzoneUIResponse = DropzoneUIResponseType;
89
export declare type FileValidated = FileValidatedType;
910
export { createPDF, createWord, createListOfMultiTypeFile, createSyntheticFile, makeSynthticFileValidate, UPLOADSTATUS };
11+
export { DropzoneLocalizerSelector, DropzoneLocalizer, DropzoneFrench, DropzoneEnglish, DropzoneSpanish, DropzonePortuguese, DropzoneRussian, DropzoneSimplifiedChinese, DropzoneTraditionalChinese, FileItemLocalizerSelector, FileItemLocalizer, FileItemFrench, FileItemEnglish, FileItemSpanish, FileItemPortuguese, FileItemRussian, FileItemSimplifiedChinese, FileItemTraditionalChinese, ValidateErrorLocalizerSelector, ValidateErrorLocalizer, ValidateErrorFrench, ValidateErrorEnglish, ValidateErrorSpanish, ValidateErrorPortuguese, ValidateErrorRussian, ValidateErrorSimplifiedChinese, ValidateErrorTraditionalChinese, };
1012
export { default as Dropzone } from "./components/dropzone/components/Dropzone/Dropzone";
1113
export * from "./components/dropzone/components/Dropzone/Dropzone";
1214
export { default as DropzoneLabel } from "./components/dropzone/components/DropzoneLabel/DropzoneLabel";

build/index.es.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.es.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { LocalLabels } from "../localization";
2+
/**
3+
* English translation for Dropzone component
4+
*/
5+
export declare const DropzoneSimplifiedChinese: LocalLabels;
6+
/**
7+
* English translation for FileItem component
8+
*/
9+
export declare const FileItemSimplifiedChinese: LocalLabels;
10+
/**
11+
* English translation for Validation Errors
12+
*/
13+
export declare const ValidateErrorSimplifiedChinese: LocalLabels;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { LocalLabels } from "../localization";
2+
/**
3+
* English translation for Dropzone component
4+
*/
5+
export declare const DropzoneTraditionalChinese: LocalLabels;
6+
/**
7+
* English translation for FileItem component
8+
*/
9+
export declare const FileItemTraditionalChinese: LocalLabels;
10+
/**
11+
* English translation for Validation Errors
12+
*/
13+
export declare const ValidateErrorTraditionalChinese: LocalLabels;

0 commit comments

Comments
 (0)