diff --git a/README.md b/README.md index 80d31cb..70bd631 100644 --- a/README.md +++ b/README.md @@ -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.

**Available languages:**
🇸🇦 `ar-SA` (Arabic, Saudi Arabia)
🇩🇪 `de-DE` (German, Germany)
🇺🇸 `en-US` (English, United States)
🇪🇸 `es-ES` (Spanish, Spain)
🇮🇷 `fa-IR` (Persian, Iran)
🇫🇷 `fr-FR` (French, France)
🇮🇱 `he-IL` (Hebrew, Israel)
🇮🇳 `hi-IN` (Hindi, India)
🇮🇹 `it-IT` (Italian, Italy)
🇯🇵 `ja-JP` (Japanese, Japan)
🇰🇷 `ko-KR` (Korean, South Korea)
🇧🇷 `pt-BR` (Portuguese, Brazil)
🇵🇹 `pt-PT` (Portuguese, Portugal)
🇷🇺 `ru-RU` (Russian, Russia)
🇹🇷 `tr-TR` (Turkish, Turkey)
🇺🇦 `uk-UA` (Ukrainian, Ukraine)
🇵🇰 `ur-UR` (Urdu, Pakistan)
🇻🇳 `vi-VN` (Vietnamese, Vietnam)
🇨🇳 `zh-CN` (Chinese, Simplified)
🇵🇱 `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.

**Available languages:**
🇸🇦 `ar-SA` (Arabic, Saudi Arabia)
🇩🇰 `da-DK` (Danish, Denmark)
🇩🇪 `de-DE` (German, Germany)
🇺🇸 `en-US` (English, United States)
🇪🇸 `es-ES` (Spanish, Spain)
🇮🇷 `fa-IR` (Persian, Iran)
🇫🇮 `fi-FI` (Finnish, Finland)
🇫🇷 `fr-FR` (French, France)
🇮🇱 `he-IL` (Hebrew, Israel)
🇮🇳 `hi-IN` (Hindi, India)
🇮🇹 `it-IT` (Italian, Italy)
🇯🇵 `ja-JP` (Japanese, Japan)
🇰🇷 `ko-KR` (Korean, South Korea)
🇳🇴 `nb-NO` (Norwegian, Norway)
🇧🇷 `pt-BR` (Portuguese, Brazil)
🇵🇹 `pt-PT` (Portuguese, Portugal)
🇷🇺 `ru-RU` (Russian, Russia)
🇸🇪 `sv-SE` (Swedish, Sweden)
🇹🇷 `tr-TR` (Turkish, Turkey)
🇺🇦 `uk-UA` (Ukrainian, Ukraine)
🇵🇰 `ur-UR` (Urdu, Pakistan)
🇻🇳 `vi-VN` (Vietnamese, Vietnam)
🇨🇳 `zh-CN` (Chinese, Simplified)
🇵🇱 `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. | diff --git a/frontend/README.md b/frontend/README.md index c603384..e4592e5 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -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.

**Available languages:**
🇸🇦 `ar-SA` (Arabic, Saudi Arabia)
🇩🇪 `de-DE` (German, Germany)
🇺🇸 `en-US` (English, United States)
🇪🇸 `es-ES` (Spanish, Spain)
🇮🇷 `fa-IR` (Persian, Iran)
🇫🇷 `fr-FR` (French, France)
🇮🇱 `he-IL` (Hebrew, Israel)
🇮🇳 `hi-IN` (Hindi, India)
🇮🇹 `it-IT` (Italian, Italy)
🇯🇵 `ja-JP` (Japanese, Japan)
🇰🇷 `ko-KR` (Korean, South Korea)
🇧🇷 `pt-BR` (Portuguese, Brazil)
🇵🇹 `pt-PT` (Portuguese, Portugal)
🇷🇺 `ru-RU` (Russian, Russia)
🇹🇷 `tr-TR` (Turkish, Turkey)
🇺🇦 `uk-UA` (Ukrainian, Ukraine)
🇵🇰 `ur-UR` (Urdu, Pakistan)
🇻🇳 `vi-VN` (Vietnamese, Vietnam)
🇨🇳 `zh-CN` (Chinese, Simplified)
🇵🇱 `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.

**Available languages:**
🇸🇦 `ar-SA` (Arabic, Saudi Arabia)
🇩🇰 `da-DK` (Danish, Denmark)
🇩🇪 `de-DE` (German, Germany)
🇺🇸 `en-US` (English, United States)
🇪🇸 `es-ES` (Spanish, Spain)
🇮🇷 `fa-IR` (Persian, Iran)
🇫🇮 `fi-FI` (Finnish, Finland)
🇫🇷 `fr-FR` (French, France)
🇮🇱 `he-IL` (Hebrew, Israel)
🇮🇳 `hi-IN` (Hindi, India)
🇮🇹 `it-IT` (Italian, Italy)
🇯🇵 `ja-JP` (Japanese, Japan)
🇰🇷 `ko-KR` (Korean, South Korea)
🇳🇴 `nb-NO` (Norwegian, Norway)
🇧🇷 `pt-BR` (Portuguese, Brazil)
🇵🇹 `pt-PT` (Portuguese, Portugal)
🇷🇺 `ru-RU` (Russian, Russia)
🇸🇪 `sv-SE` (Swedish, Sweden)
🇹🇷 `tr-TR` (Turkish, Turkey)
🇺🇦 `uk-UA` (Ukrainian, Ukraine)
🇵🇰 `ur-UR` (Urdu, Pakistan)
🇻🇳 `vi-VN` (Vietnamese, Vietnam)
🇨🇳 `zh-CN` (Chinese, Simplified)
🇵🇱 `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. | diff --git a/frontend/src/i18n.js b/frontend/src/i18n.js index 120a899..8b547ca 100644 --- a/frontend/src/i18n.js +++ b/frontend/src/i18n.js @@ -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"; @@ -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 }, diff --git a/frontend/src/locales/da-DK.json b/frontend/src/locales/da-DK.json new file mode 100644 index 0000000..c715c88 --- /dev/null +++ b/frontend/src/locales/da-DK.json @@ -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" +} \ No newline at end of file diff --git a/frontend/src/locales/fi-FI.json b/frontend/src/locales/fi-FI.json new file mode 100644 index 0000000..c7af8f9 --- /dev/null +++ b/frontend/src/locales/fi-FI.json @@ -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" +} \ No newline at end of file diff --git a/frontend/src/locales/nb-NO.json b/frontend/src/locales/nb-NO.json new file mode 100644 index 0000000..13f6aa7 --- /dev/null +++ b/frontend/src/locales/nb-NO.json @@ -0,0 +1,54 @@ +{ + "newFolder": "Ny mappe", + "upload": "Last opp", + "paste": "Lim inn", + "changeView": "Bytt visning", + "refresh": "Oppdater", + "cut": "Klipp ut", + "copy": "Kopier", + "rename": "Gi nytt navn", + "download": "Last ned", + "delete": "Slett", + "itemSelected": "element valgt", + "itemsSelected": "elementer valgt", + "cancel": "Avbryt", + "clearSelection": "Fjern utvalg", + "completed": "Fullført", + "fileNameChangeWarning": "Hvis du endrer en filendelse, kan filen bli ubrukelig. Er du sikker på at du vil endre den?", + "no": "Nei", + "yes": "Ja", + "close": "Lukk", + "fileTypeNotAllowed": "Filtypen er ikke tillatt.", + "fileAlreadyExist": "Filen finnes allerede.", + "maxUploadSize": "Maksimal opplastingsstørrelse er", + "dragFileToUpload": "Dra filer for å laste opp", + "chooseFile": "Velg fil", + "uploadFail": "Opplasting mislyktes.", + "uploading": "Laster opp", + "uploaded": "Lastet opp", + "remove": "Fjern", + "abortUpload": "Avbryt opplasting", + "preview": "Forhåndsvis", + "previewUnavailable": "Beklager! Forhåndsvisning er ikke tilgjengelig for denne filen.", + "home": "Hjem", + "showMoreFolder": "Vis flere mapper", + "moveTo": "Flytt til", + "folderEmpty": "Denne mappen er tom.", + "selectAll": "Velg alle", + "view": "Vis", + "grid": "Rutenett", + "list": "Liste", + "open": "Åpne", + "nothingHereYet": "Ingenting her ennå", + "name": "Navn", + "modified": "Endret", + "size": "Størrelse", + "deleteItemConfirm": "Er du sikker på at du vil slette «{{fileName}}»?", + "deleteItemsConfirm": "Er du sikker på at du vil slette disse {{count}} elementene?", + "percentDone": "{{percent}}% ferdig", + "canceled": "Avbrutt", + "invalidFileName": "Et filnavn kan ikke inneholde noen av følgende tegn: \\ / : * ? \" < > |", + "folderExists": "Denne destinasjonen inneholder allerede en mappe med navnet «{{renameFile}}».", + "collapseNavigationPane": "Skjul navigasjonsrute", + "expandNavigationPane": "Utvid navigasjonsrute" +} \ No newline at end of file diff --git a/frontend/src/locales/sv-SE.json b/frontend/src/locales/sv-SE.json new file mode 100644 index 0000000..d3bf5dd --- /dev/null +++ b/frontend/src/locales/sv-SE.json @@ -0,0 +1,54 @@ +{ + "newFolder": "Ny mapp", + "upload": "Ladda upp", + "paste": "Klistra in", + "changeView": "Byt vy", + "refresh": "Uppdatera", + "cut": "Klipp ut", + "copy": "Kopiera", + "rename": "Byt namn", + "download": "Ladda ner", + "delete": "Radera", + "itemSelected": "post vald", + "itemsSelected": "poster valda", + "cancel": "Avbryt", + "clearSelection": "Rensa markering", + "completed": "Färdig", + "fileNameChangeWarning": "Om du ändrar filändelsen kan filen bli oanvändbar. Är du säker på att du vill ändra den?", + "no": "Nej", + "yes": "Ja", + "close": "Stäng", + "fileTypeNotAllowed": "Filtypen är inte tillåten.", + "fileAlreadyExist": "Filen finns redan.", + "maxUploadSize": "Maximal uppladdningsstorlek är", + "dragFileToUpload": "Dra filer hit för uppladdning", + "chooseFile": "Välj fil", + "uploadFail": "Uppladdning misslyckades.", + "uploading": "Laddar upp", + "uploaded": "Uppladdad", + "remove": "Ta bort", + "abortUpload": "Avbryt uppladdning", + "preview": "Förhandsgranska", + "previewUnavailable": "Förhandsgranskning är inte tillgänglig för denna fil.", + "home": "Hem", + "showMoreFolder": "Visa fler mappar", + "moveTo": "Flytta till", + "folderEmpty": "Den här mappen är tom.", + "selectAll": "Markera allt", + "view": "Visa", + "grid": "Rutnät", + "list": "Lista", + "open": "Öppna", + "nothingHereYet": "Inget här än", + "name": "Namn", + "modified": "Ändrad", + "size": "Storlek", + "deleteItemConfirm": "Vill du verkligen radera \"{{fileName}}\"?", + "deleteItemsConfirm": "Vill du verkligen radera dessa {{count}} poster?", + "percentDone": "{{percent}}% klar", + "canceled": "Avbruten", + "invalidFileName": "Ett filnamn får inte innehålla något av följande tecken: \\ / : * ? \" < > |", + "folderExists": "Den här platsen innehåller redan en mapp med namnet \"{{renameFile}}\".", + "collapseNavigationPane": "Dölj navigationsfönster", + "expandNavigationPane": "Visa navigationsfönster" +} \ No newline at end of file