Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ type File = {
| `height` | string \| number | The height of the component `default: 600px`. Can be a string (e.g., `'100%'`, `'10rem'`) or a number (in pixels). |
| `initialPath` | string | The path of the directory to be loaded initially e.g. `/Documents`. This should be the path of a folder which is included in `files` array. Default value is `""` |
| `isLoading` | boolean | A boolean state indicating whether the application is currently performing an operation, such as creating, renaming, or deleting a file/folder. Displays a loading state if set `true`. |
| `language` | string | A language code used for translations (e.g., `"en-US"`, `"fr-FR"`, `"tr-TR"`). Defaults to `"en-US"` for English. Allows the user to set the desired translation language manually. <br><br>**Available languages:** <br> 🇸🇦 `ar-SA` (Arabic, Saudi Arabia) <br> 🇩🇪 `de-DE` (German, Germany) <br> 🇺🇸 `en-US` (English, United States) <br> 🇪🇸 `es-ES` (Spanish, Spain) <br> 🇮🇷 `fa-IR` (Persian, Iran) <br> 🇫🇷 `fr-FR` (French, France) <br> 🇮🇱 `he-IL` (Hebrew, Israel) <br> 🇮🇳 `hi-IN` (Hindi, India) <br> 🇮🇹 `it-IT` (Italian, Italy) <br> 🇯🇵 `ja-JP` (Japanese, Japan) <br> 🇰🇷 `ko-KR` (Korean, South Korea) <br> 🇧🇷 `pt-BR` (Portuguese, Brazil) <br> 🇵🇹 `pt-PT` (Portuguese, Portugal) <br> 🇷🇺 `ru-RU` (Russian, Russia) <br> 🇹🇷 `tr-TR` (Turkish, Turkey) <br> 🇺🇦 `uk-UA` (Ukrainian, Ukraine) <br> 🇵🇰 `ur-UR` (Urdu, Pakistan) <br> 🇻🇳 `vi-VN` (Vietnamese, Vietnam) <br> 🇨🇳 `zh-CN` (Chinese, Simplified) <br> 🇵🇱 `pl-PL` (Polish, Poland) |
| `language` | string | A language code used for translations (e.g., `"en-US"`, `"fr-FR"`, `"tr-TR"`). Defaults to `"en-US"` for English. Allows the user to set the desired translation language manually. <br><br>**Available languages:** <br> 🇸🇦 `ar-SA` (Arabic, Saudi Arabia) <br> 🇩🇰 `da-DK` (Danish, Denmark) <br> 🇩🇪 `de-DE` (German, Germany) <br> 🇺🇸 `en-US` (English, United States) <br> 🇪🇸 `es-ES` (Spanish, Spain) <br> 🇮🇷 `fa-IR` (Persian, Iran) <br> 🇫🇮 `fi-FI` (Finnish, Finland) <br> 🇫🇷 `fr-FR` (French, France) <br> 🇮🇱 `he-IL` (Hebrew, Israel) <br> 🇮🇳 `hi-IN` (Hindi, India) <br> 🇮🇹 `it-IT` (Italian, Italy) <br> 🇯🇵 `ja-JP` (Japanese, Japan) <br> 🇰🇷 `ko-KR` (Korean, South Korea) <br> 🇳🇴 `nb-NO` (Norwegian, Norway) <br> 🇧🇷 `pt-BR` (Portuguese, Brazil) <br> 🇵🇹 `pt-PT` (Portuguese, Portugal) <br> 🇷🇺 `ru-RU` (Russian, Russia) <br> 🇸🇪 `sv-SE` (Swedish, Sweden) <br> 🇹🇷 `tr-TR` (Turkish, Turkey) <br> 🇺🇦 `uk-UA` (Ukrainian, Ukraine) <br> 🇵🇰 `ur-UR` (Urdu, Pakistan) <br> 🇻🇳 `vi-VN` (Vietnamese, Vietnam) <br> 🇨🇳 `zh-CN` (Chinese, Simplified) <br> 🇵🇱 `pl-PL` (Polish, Poland) |
| `layout` | "list" \| "grid" | Specifies the default layout style for the file manager. Can be either "list" or "grid". Default value is "grid". |
| `maxFileSize` | number | For limiting the maximum upload file size in bytes. |
| `onCopy` | (files: Array<[File](#-file-structure)>) => void | (Optional) A callback function triggered when one or more files or folders are copied providing copied files as an argument. Use this function to perform custom actions on copy event. |
Expand Down
2 changes: 1 addition & 1 deletion frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ type File = {
| `height` | string \| number | The height of the component `default: 600px`. Can be a string (e.g., `'100%'`, `'10rem'`) or a number (in pixels). |
| `initialPath` | string | The path of the directory to be loaded initially e.g. `/Documents`. This should be the path of a folder which is included in `files` array. Default value is `""` |
| `isLoading` | boolean | A boolean state indicating whether the application is currently performing an operation, such as creating, renaming, or deleting a file/folder. Displays a loading state if set `true`. |
| `language` | string | A language code used for translations (e.g., `"en-US"`, `"fr-FR"`, `"tr-TR"`). Defaults to `"en-US"` for English. Allows the user to set the desired translation language manually. <br><br>**Available languages:** <br> 🇸🇦 `ar-SA` (Arabic, Saudi Arabia) <br> 🇩🇪 `de-DE` (German, Germany) <br> 🇺🇸 `en-US` (English, United States) <br> 🇪🇸 `es-ES` (Spanish, Spain) <br> 🇮🇷 `fa-IR` (Persian, Iran) <br> 🇫🇷 `fr-FR` (French, France) <br> 🇮🇱 `he-IL` (Hebrew, Israel) <br> 🇮🇳 `hi-IN` (Hindi, India) <br> 🇮🇹 `it-IT` (Italian, Italy) <br> 🇯🇵 `ja-JP` (Japanese, Japan) <br> 🇰🇷 `ko-KR` (Korean, South Korea) <br> 🇧🇷 `pt-BR` (Portuguese, Brazil) <br> 🇵🇹 `pt-PT` (Portuguese, Portugal) <br> 🇷🇺 `ru-RU` (Russian, Russia) <br> 🇹🇷 `tr-TR` (Turkish, Turkey) <br> 🇺🇦 `uk-UA` (Ukrainian, Ukraine) <br> 🇵🇰 `ur-UR` (Urdu, Pakistan) <br> 🇻🇳 `vi-VN` (Vietnamese, Vietnam) <br> 🇨🇳 `zh-CN` (Chinese, Simplified) <br> 🇵🇱 `pl-PL` (Polish, Poland) |
| `language` | string | A language code used for translations (e.g., `"en-US"`, `"fr-FR"`, `"tr-TR"`). Defaults to `"en-US"` for English. Allows the user to set the desired translation language manually. <br><br>**Available languages:** <br> 🇸🇦 `ar-SA` (Arabic, Saudi Arabia) <br> 🇩🇰 `da-DK` (Danish, Denmark) <br> 🇩🇪 `de-DE` (German, Germany) <br> 🇺🇸 `en-US` (English, United States) <br> 🇪🇸 `es-ES` (Spanish, Spain) <br> 🇮🇷 `fa-IR` (Persian, Iran) <br> 🇫🇮 `fi-FI` (Finnish, Finland) <br> 🇫🇷 `fr-FR` (French, France) <br> 🇮🇱 `he-IL` (Hebrew, Israel) <br> 🇮🇳 `hi-IN` (Hindi, India) <br> 🇮🇹 `it-IT` (Italian, Italy) <br> 🇯🇵 `ja-JP` (Japanese, Japan) <br> 🇰🇷 `ko-KR` (Korean, South Korea) <br> 🇳🇴 `nb-NO` (Norwegian, Norway) <br> 🇧🇷 `pt-BR` (Portuguese, Brazil) <br> 🇵🇹 `pt-PT` (Portuguese, Portugal) <br> 🇷🇺 `ru-RU` (Russian, Russia) <br> 🇸🇪 `sv-SE` (Swedish, Sweden) <br> 🇹🇷 `tr-TR` (Turkish, Turkey) <br> 🇺🇦 `uk-UA` (Ukrainian, Ukraine) <br> 🇵🇰 `ur-UR` (Urdu, Pakistan) <br> 🇻🇳 `vi-VN` (Vietnamese, Vietnam) <br> 🇨🇳 `zh-CN` (Chinese, Simplified) <br> 🇵🇱 `pl-PL` (Polish, Poland) |
| `layout` | "list" \| "grid" | Specifies the default layout style for the file manager. Can be either "list" or "grid". Default value is "grid". |
| `maxFileSize` | number | For limiting the maximum upload file size in bytes. |
| `onCopy` | (files: Array<[File](#-file-structure)>) => void | (Optional) A callback function triggered when one or more files or folders are copied providing copied files as an argument. Use this function to perform custom actions on copy event. |
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/i18n.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
import i18n from "i18next";
import arSA from "./locales/ar-SA.json";
import daDK from "./locales/da-DK.json";
import deDE from "./locales/de-DE.json";
import enUS from "./locales/en-US.json";
import esES from "./locales/es-ES.json";
import faIR from "./locales/fa-IR.json";
import fiFI from "./locales/fi-FI.json";
import frFR from "./locales/fr-FR.json";
import heIL from "./locales/he-IL.json";
import hiIN from "./locales/hi-IN.json";
import itIT from "./locales/it-IT.json";
import jaJP from "./locales/ja-JP.json";
import koKR from "./locales/ko-KR.json";
import nbNO from "./locales/nb-NO.json";
import ptBR from "./locales/pt-BR.json";
import ptPT from "./locales/pt-PT.json";
import ruRU from "./locales/ru-RU.json";
import svSE from "./locales/sv-SE.json";
import trTR from "./locales/tr-TR.json";
import ukUA from "./locales/uk-UA.json";
import urUR from "./locales/ur-UR.json";
Expand All @@ -22,19 +26,23 @@ import plPL from "./locales/pl-PL.json";

const resources = {
"ar-SA": { translation: arSA },
"da-DK": { translation: daDK },
"de-DE": { translation: deDE },
"en-US": { translation: enUS },
"es-ES": { translation: esES },
"fa-IR": { translation: faIR },
"fi-FI": { translation: fiFI },
"fr-FR": { translation: frFR },
"he-IL": { translation: heIL },
"hi-IN": { translation: hiIN },
"it-IT": { translation: itIT },
"ja-JP": { translation: jaJP },
"ko-KR": { translation: koKR },
"nb-NO": { translation: nbNO },
"pt-BR": { translation: ptBR },
"pt-PT": { translation: ptPT },
"ru-RU": { translation: ruRU },
"sv-SE": { translation: svSE },
"tr-TR": { translation: trTR },
"uk-UA": { translation: ukUA },
"ur-UR": { translation: urUR },
Expand Down
54 changes: 54 additions & 0 deletions frontend/src/locales/da-DK.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"newFolder": "Ny mappe",
"upload": "Upload",
"paste": "Indsæt",
"changeView": "Skift visning",
"refresh": "Opdater",
"cut": "Klip",
"copy": "Kopiér",
"rename": "Omdøb",
"download": "Download",
"delete": "Slet",
"itemSelected": "element valgt",
"itemsSelected": "elementer valgt",
"cancel": "Annuller",
"clearSelection": "Ryd markering",
"completed": "Fuldført",
"fileNameChangeWarning": "Hvis du ændrer en filendelse, kan filen blive ubrugelig. Er du sikker på, at du vil ændre den?",
"no": "Nej",
"yes": "Ja",
"close": "Luk",
"fileTypeNotAllowed": "Filtypen er ikke tilladt.",
"fileAlreadyExist": "Fil findes allerede.",
"maxUploadSize": "Maksimal uploadstørrelse er",
"dragFileToUpload": "Træk filer for at uploade",
"chooseFile": "Vælg fil",
"uploadFail": "Upload mislykkedes.",
"uploading": "Uploader",
"uploaded": "Uploadet",
"remove": "Fjern",
"abortUpload": "Afbryd upload",
"preview": "Forhåndsvisning",
"previewUnavailable": "Beklager! Forhåndsvisning er ikke tilgængelig for denne fil.",
"home": "Hjem",
"showMoreFolder": "Vis flere mapper",
"moveTo": "Flyt til",
"folderEmpty": "Denne mappe er tom.",
"selectAll": "Vælg alle",
"view": "Vis",
"grid": "Gitter",
"list": "Liste",
"open": "Åbn",
"nothingHereYet": "Intet her endnu",
"name": "Navn",
"modified": "Ændret",
"size": "Størrelse",
"deleteItemConfirm": "Er du sikker på, at du vil slette \"{{fileName}}\"?",
"deleteItemsConfirm": "Er du sikker på, at du vil slette disse {{count}} elementer?",
"percentDone": "{{percent}}% færdig",
"canceled": "Annulleret",
"invalidFileName": "Et filnavn må ikke indeholde følgende tegn: \\ / : * ? \" < > |",
"folderExists": "Denne destination indeholder allerede en mappe med navnet \"{{renameFile}}\".",
"collapseNavigationPane": "Skjul navigationsrude",
"expandNavigationPane": "Udvid navigationsrude"
}
54 changes: 54 additions & 0 deletions frontend/src/locales/fi-FI.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"newFolder": "Uusi kansio",
"upload": "Lataa",
"paste": "Liitä",
"changeView": "Vaihda näkymää",
"refresh": "Päivitä",
"cut": "Leikkaa",
"copy": "Kopioi",
"rename": "Nimeä uudelleen",
"download": "Lataa",
"delete": "Poista",
"itemSelected": "kohde valittu",
"itemsSelected": "kohdetta valittu",
"cancel": "Peruuta",
"clearSelection": "Tyhjennä valinta",
"completed": "Valmis",
"fileNameChangeWarning": "Jos muutat tiedostopäätettä, tiedosto ei ehkä enää toimi. Haluatko varmasti muuttaa sen?",
"no": "Ei",
"yes": "Kyllä",
"close": "Sulje",
"fileTypeNotAllowed": "Tiedostotyyppi ei sallittu.",
"fileAlreadyExist": "Tiedosto on jo olemassa.",
"maxUploadSize": "Suurin sallittu tiedostokoko on",
"dragFileToUpload": "Raahaa tiedostoja ladattavaksi",
"chooseFile": "Valitse tiedosto",
"uploadFail": "Lataus epäonnistui.",
"uploading": "Ladataan",
"uploaded": "Ladattu",
"remove": "Poista",
"abortUpload": "Keskeytä lataus",
"preview": "Esikatsele",
"previewUnavailable": "Valitettavasti esikatselua ei ole saatavilla tälle tiedostolle.",
"home": "Etusivu",
"showMoreFolder": "Näytä lisää kansioita",
"moveTo": "Siirrä kohteeseen",
"folderEmpty": "Tämä kansio on tyhjä.",
"selectAll": "Valitse kaikki",
"view": "Näytä",
"grid": "Ruudukko",
"list": "Lista",
"open": "Avaa",
"nothingHereYet": "Täällä ei ole vielä mitään",
"name": "Nimi",
"modified": "Muokattu",
"size": "Koko",
"deleteItemConfirm": "Haluatko varmasti poistaa tiedoston \"{{fileName}}\"?",
"deleteItemsConfirm": "Haluatko varmasti poistaa nämä {{count}} kohdetta?",
"percentDone": "{{percent}}% valmis",
"canceled": "Peruutettu",
"invalidFileName": "Tiedostonimessä ei voi olla seuraavia merkkejä: \\ / : * ? \" < > |",
"folderExists": "Kohteessa on jo kansio nimeltä \"{{renameFile}}\".",
"collapseNavigationPane": "Pienennä navigointipaneeli",
"expandNavigationPane": "Laajenna navigointipaneeli"
}
Loading