({ page: 1, sorts: { timestamp: -1 } });
const { data, isValidating, error } = useActivityLogs(filters, {
@@ -90,6 +92,11 @@ export default () => {
}
+
+
+ {activity.event.replace(':', '.')}
+
+
;
+
+export default ({ ns, children, ...props }: Props) => {
+ const { t } = useTranslation(ns);
+
+ return (
+
+ {children}
+
+ );
+};
diff --git a/resources/scripts/i18n.ts b/resources/scripts/i18n.ts
index 4f68c6175..cc527d5ae 100644
--- a/resources/scripts/i18n.ts
+++ b/resources/scripts/i18n.ts
@@ -19,7 +19,8 @@ i18n
backend: {
backend: I18NextHttpBackend,
backendOption: {
- loadPath: `/locales/locale.json?locale={{lng}}&namespace={{ns}}&hash=${hash}`,
+ loadPath: '/locales/locale.json?locale={{lng}}&namespace={{ns}}',
+ queryStringParams: { hash },
allowMultiLoading: true,
} as BackendOptions,
} as Record,
@@ -30,6 +31,4 @@ i18n
},
});
-i18n.loadNamespaces([ 'validation' ]).catch(console.error);
-
export default i18n;