diff --git a/source/background/services/config.ts b/source/background/services/config.ts index 84abd9eb..95c6e2ca 100644 --- a/source/background/services/config.ts +++ b/source/background/services/config.ts @@ -5,6 +5,7 @@ import { naiveClone } from "../../shared/library/clone.js"; const DEFAULTS: Configuration = { entryIcons: true, inputButtonDefault: InputButtonType.LargeButton, + language: null, saveNewLogins: true, theme: "light", useSystemTheme: true diff --git a/source/popup/components/pages/SettingsPage.tsx b/source/popup/components/pages/SettingsPage.tsx index ae140ca8..d3bd39f9 100644 --- a/source/popup/components/pages/SettingsPage.tsx +++ b/source/popup/components/pages/SettingsPage.tsx @@ -105,6 +105,21 @@ export function SettingsPage() { )} {config && ( + + {/* */} + diff --git a/source/popup/hooks/languages.ts b/source/popup/hooks/languages.ts new file mode 100644 index 00000000..466f8d47 --- /dev/null +++ b/source/popup/hooks/languages.ts @@ -0,0 +1,12 @@ +import { useMemo } from "react"; +import { TRANSLATIONS } from "../../shared/i18n/trans.js"; + +export interface LanguageOption { + key: string | null; + name: string; +} + +export function useLanguageOptions(): Array { + const languages = useMemo(() => [], []); + return languages; +} diff --git a/source/shared/i18n/translations/en.json b/source/shared/i18n/translations/en.json index 3d79bdb2..7877becc 100644 --- a/source/shared/i18n/translations/en.json +++ b/source/shared/i18n/translations/en.json @@ -24,6 +24,7 @@ }, "section": { "advanced": "Advanced Settings", + "application": "Application", "forms": "Forms", "logins": "Logins", "privacy": "Privacy", diff --git a/source/shared/library/version.ts b/source/shared/library/version.ts index bb427629..5fdac726 100644 --- a/source/shared/library/version.ts +++ b/source/shared/library/version.ts @@ -1,4 +1,4 @@ // Do not edit this file - it is generated automatically at build time -export const BUILD_DATE = "2024-04-07"; +export const BUILD_DATE = "2024-04-08"; export const VERSION = "3.1.0"; diff --git a/source/shared/types.ts b/source/shared/types.ts index ec17f796..85fe3dd2 100644 --- a/source/shared/types.ts +++ b/source/shared/types.ts @@ -97,6 +97,7 @@ export type ChildElements = ChildElement | Array; export interface Configuration { entryIcons: boolean; inputButtonDefault: InputButtonType; + language: string | null; saveNewLogins: boolean; theme: "light" | "dark"; useSystemTheme: boolean;