@bigbinary/neeto-commons-frontend 2.1.6 → 2.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/initializers.d.ts CHANGED
@@ -64,18 +64,20 @@ export const globalProps: GlobalPropsType;
64
64
  /** @deprecated use useDisplayErrorPage from react-utils bundle */
65
65
  /**
66
66
  *
67
- * This hook will return true if any API request fails with 404 or 403 status.
67
+ * The useDisplayErrorPage hook is a utility that allows you to conditionally
68
68
  *
69
- * Until any such API response is received, it will return false. It can be used
69
+ * render an error page in your application based on the status codes of API
70
70
  *
71
- * to render ErrorPage conditionally. Refer:
71
+ * responses.
72
72
  *
73
- * axios error response handler
73
+ * The following code snippet demonstrates the usage of useDisplayErrorPage in
74
74
  *
75
- * for more details.
75
+ * conditionally rendering an error page.
76
76
  *
77
77
  * @example
78
78
  *
79
+ * import { useDisplayErrorPage } from "@bigbinary/neeto-commons-frontend/react-utils";
80
+ *
79
81
  * const App = () => {
80
82
  * const isError = useDisplayErrorPage();
81
83
  *
package/initializers.js CHANGED
@@ -2420,7 +2420,6 @@ var initializeI18n = function initializeI18n(resources) {
2420
2420
  translation: de
2421
2421
  }
2422
2422
  }),
2423
- supportedLngs: ["en", "de"],
2424
2423
  fallbackLng: "en",
2425
2424
  interpolation: {
2426
2425
  escapeValue: false,