* `feat: added internationalization lib, added english labels` * `fixes from code review` * `feat: add crowdin github actions` * `fix: added support for i18n in testing. Fixed broken tests` * `fix: missing translations` * `removed unneded import` * `more components updated with missing translations` * `fixed lint issue` * `Refactor: updated how translations are scoped, updated all references` * `fixing broken tests` * `feat: added language switcher, updated some translations` * `fixed linting issues` * `reverting vite config` * `add english group id's to command palette` * `updated PR template for i18n`
17 lines
512 B
TypeScript
17 lines
512 B
TypeScript
import { useBackupReminder } from "@core/hooks/useKeyBackupReminder.tsx";
|
|
import { useDevice } from "@core/stores/deviceStore.ts";
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
export const KeyBackupReminder = () => {
|
|
const { setDialogOpen } = useDevice();
|
|
const { t } = useTranslation("dialog");
|
|
|
|
useBackupReminder({
|
|
message: t("pkiBackup.description"),
|
|
onAccept: () => setDialogOpen("pkiBackup", true),
|
|
enabled: true,
|
|
});
|
|
// deno-lint-ignore jsx-no-useless-fragment
|
|
return <></>;
|
|
};
|