keycloak-scim/src/i18n.ts

72 lines
1.9 KiB
TypeScript
Raw Normal View History

import i18n from "i18next";
import { initReactI18next } from "react-i18next";
// import backend from "i18next-http-backend";
import common from "./common-messages";
import help from "./common-help";
import dashboard from "./dashboard/messages";
import clients from "./clients/messages";
import clientsHelp from "./clients/help";
import clientScopes from "./client-scopes/messages";
import clientScopesHelp from "./client-scopes/help";
import groups from "./groups/messages";
import realm from "./realm/messages";
import roles from "./realm-roles/messages";
import users from "./user/messages";
import usersHelp from "./user/help";
import sessions from "./sessions/messages";
import events from "./events/messages";
import realmSettings from "./realm-settings/messages";
import realmSettingsHelp from "./realm-settings/help";
import authentication from "./authentication/messages";
Initial version of the authentication section (#887) * initial version of create authentication screen * initial version of authentication details * added flow details labels to view header * not in use fix * create execution tree * fixed collapsable row layout * fix drag and drop expand * fix merge error * move to modal * diff and post drag and drop changes * fixed locating the parent row * move "live text" for d&d to common messages * firefox fix * initial version of the diagram * use dagre to layout automatically * moved to sperate file * conditional node * now renders subflows sequential * changed to render sequential or parallel flows * fixed render of sub flows * added button edge, drawer and selectable nodes * add requirement dropdown * also do move so we can merge * also do move so we can merge * fixed merge * added refresh * change requirement * fixed merge error * now uses the new routes * Split out routes into multiple files * Update src/authentication/AuthenticationSection.tsx Co-authored-by: Jon Koops <jonkoops@gmail.com> * Update src/authentication/FlowDetails.tsx Co-authored-by: Jon Koops <jonkoops@gmail.com> * Update src/authentication/FlowDetails.tsx Co-authored-by: Jon Koops <jonkoops@gmail.com> * Update src/authentication/FlowDetails.tsx Co-authored-by: Jon Koops <jonkoops@gmail.com> * Update src/authentication/FlowDetails.tsx Co-authored-by: Jon Koops <jonkoops@gmail.com> * fixed labels * merge fix * make execution of these parrallel * added some tests * Update src/authentication/components/FlowRequirementDropdown.tsx Co-authored-by: Jon Koops <jonkoops@gmail.com> * more review changes * fixed merge error Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-08-09 08:47:34 +00:00
import authenticationHelp from "./authentication/help";
import userFederation from "./user-federation/messages";
import userFederationHelp from "./user-federation/help";
import identityProviders from "./identity-providers/messages";
import identityProvidersHelp from "./identity-providers/help";
const initOptions = {
defaultNS: "common",
resources: {
en: {
...common,
...help,
...dashboard,
...clients,
...clientsHelp,
...clientScopes,
...clientScopesHelp,
...groups,
...realm,
...roles,
...groups,
...users,
...usersHelp,
...sessions,
...userFederation,
...events,
...realmSettings,
...realmSettingsHelp,
...authentication,
Initial version of the authentication section (#887) * initial version of create authentication screen * initial version of authentication details * added flow details labels to view header * not in use fix * create execution tree * fixed collapsable row layout * fix drag and drop expand * fix merge error * move to modal * diff and post drag and drop changes * fixed locating the parent row * move "live text" for d&d to common messages * firefox fix * initial version of the diagram * use dagre to layout automatically * moved to sperate file * conditional node * now renders subflows sequential * changed to render sequential or parallel flows * fixed render of sub flows * added button edge, drawer and selectable nodes * add requirement dropdown * also do move so we can merge * also do move so we can merge * fixed merge * added refresh * change requirement * fixed merge error * now uses the new routes * Split out routes into multiple files * Update src/authentication/AuthenticationSection.tsx Co-authored-by: Jon Koops <jonkoops@gmail.com> * Update src/authentication/FlowDetails.tsx Co-authored-by: Jon Koops <jonkoops@gmail.com> * Update src/authentication/FlowDetails.tsx Co-authored-by: Jon Koops <jonkoops@gmail.com> * Update src/authentication/FlowDetails.tsx Co-authored-by: Jon Koops <jonkoops@gmail.com> * Update src/authentication/FlowDetails.tsx Co-authored-by: Jon Koops <jonkoops@gmail.com> * fixed labels * merge fix * make execution of these parrallel * added some tests * Update src/authentication/components/FlowRequirementDropdown.tsx Co-authored-by: Jon Koops <jonkoops@gmail.com> * more review changes * fixed merge error Co-authored-by: Jon Koops <jonkoops@gmail.com>
2021-08-09 08:47:34 +00:00
...authenticationHelp,
...identityProviders,
...identityProvidersHelp,
...userFederation,
...userFederationHelp,
},
},
lng: "en",
fallbackLng: "en",
interpolation: {
escapeValue: false,
},
};
i18n
.use(initReactI18next)
// .use(backend)
.init(initOptions);
export default i18n;