keycloak-scim/src/i18n.ts
Erik Jan de Wit b9de247569
initial version of authentication section (#309)
* initial version of authentication section

* remove dialog for now should go to detail page

* added link and buildin label to first column

* added key attributes

* removed setTimeout workaround

* only delete when not in use

* Update src/authentication/messages.json

Co-authored-by: Stan Silvert <ssilvert@redhat.com>

* Update src/authentication/messages.json

Co-authored-by: Stan Silvert <ssilvert@redhat.com>

* refresh table on duplicate

Co-authored-by: Stan Silvert <ssilvert@redhat.com>
2021-01-26 14:39:01 -05:00

65 lines
1.8 KiB
TypeScript

import i18n from "i18next";
import { initReactI18next } from "react-i18next";
// import backend from "i18next-http-backend";
import common from "./common-messages.json";
import help from "./common-help.json";
import dashboard from "./dashboard/messages.json";
import clients from "./clients/messages.json";
import clientsHelp from "./clients/help.json";
import clientScopes from "./client-scopes/messages.json";
import clientScopesHelp from "./client-scopes/help.json";
import groups from "./groups/messages.json";
import realm from "./realm/messages.json";
import roles from "./realm-roles/messages.json";
import users from "./user/messages.json";
import sessions from "./sessions/messages.json";
import events from "./events/messages.json";
import realmSettings from "./realm-settings/messages.json";
import realmSettingsHelp from "./realm-settings/help.json";
import authentication from "./authentication/messages.json";
import storybook from "./stories/messages.json";
import userFederation from "./user-federation/messages.json";
import userFederationHelp from "./user-federation/help.json";
const initOptions = {
defaultNS: "common",
resources: {
en: {
...common,
...help,
...dashboard,
...clients,
...clientsHelp,
...clientScopes,
...clientScopesHelp,
...groups,
...realm,
...roles,
...groups,
...users,
...sessions,
...userFederation,
...events,
...realmSettings,
...realmSettingsHelp,
...authentication,
...storybook,
...userFederation,
...userFederationHelp,
},
},
lng: "en",
fallbackLng: "en",
interpolation: {
escapeValue: false,
},
};
i18n
.use(initReactI18next)
// .use(backend)
.init(initOptions);
export default i18n;