-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add lucide-react * Purge radix-ui * Added localization * added edit and remove thing in event through tables * Revert "added edit and remove thing in event through tables" This reverts commit b13adf1. * fixed typo when merging --------- Co-authored-by: Benjamin Halasz <[email protected]>
- Loading branch information
Showing
10 changed files
with
6,598 additions
and
11 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"title": "Admin page", | ||
"news": { | ||
"self": "News", | ||
"page_title": "Administrate news" | ||
}, | ||
"events": { | ||
"self": "Events" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"title": "Adminsida", | ||
"news": { | ||
"self": "Nyheter", | ||
"page_title": "Administrera nyheter" | ||
}, | ||
"events": { | ||
"self": "Evenemang" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import i18n from "i18next"; | ||
import { useTranslation, initReactI18next } from "react-i18next"; | ||
import HttpBackend from "i18next-http-backend"; | ||
import type { FsBackendOptions } from "i18next-fs-backend"; | ||
import LanguageDetector from "i18next-browser-languagedetector"; | ||
|
||
i18n | ||
.use(initReactI18next) | ||
.use(HttpBackend) | ||
.use(LanguageDetector) | ||
.init<FsBackendOptions>({ | ||
backend: { | ||
loadPath: "/locales/{{lng}}/{{ns}}.json", | ||
}, | ||
fallbackLng: "en", | ||
debug: true, | ||
ns: ["admin"], | ||
interpolation: { | ||
escapeValue: false, // react already escapes values | ||
}, | ||
}); | ||
|
||
export default i18n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters