tr
This commit is contained in:
@@ -12,7 +12,6 @@ import {
|
||||
import { useModalVisibility } from "@/base/components/utils/modal";
|
||||
import {
|
||||
getLocaleInUse,
|
||||
pt,
|
||||
setLocaleInUse,
|
||||
supportedLocales,
|
||||
type SupportedLocale,
|
||||
@@ -186,17 +185,17 @@ const ThemeSelector = () => {
|
||||
// During SSR, mode is always undefined.
|
||||
if (!mode) return null;
|
||||
|
||||
// TODO(LM): Use translations, also remove unused t("CHOSE_THEME")
|
||||
// TODO(LM): Enable for all
|
||||
return (
|
||||
<Stack sx={{ gap: 1 }}>
|
||||
<Typography variant="small" sx={{ px: 1, color: "text.muted" }}>
|
||||
{pt("Theme")}
|
||||
{t("theme")}
|
||||
</Typography>
|
||||
<DropdownInput
|
||||
options={[
|
||||
{ label: pt("System"), value: "system" },
|
||||
{ label: pt("Light"), value: "light" },
|
||||
{ label: pt("Dark"), value: "dark" },
|
||||
{ label: t("system"), value: "system" },
|
||||
{ label: t("light"), value: "light" },
|
||||
{ label: t("dark"), value: "dark" },
|
||||
]}
|
||||
selected={mode}
|
||||
onSelect={setMode}
|
||||
|
||||
@@ -494,7 +494,6 @@
|
||||
"name_placeholder": "Name...",
|
||||
"root_level_file_with_folder_not_allowed": "Cannot create albums from file/folder mix",
|
||||
"root_level_file_with_folder_not_allowed_message": "<p>You have dragged and dropped a mixture of files and folders.</p><p>Please provide either only files, or only folders when selecting option to create separate albums</p>",
|
||||
"CHOSE_THEME": "Choose theme",
|
||||
"more_details": "More details",
|
||||
"ml_search": "Machine learning",
|
||||
"ml_search_description": "Ente supports on-device machine learning for face recognition, magic search and other advanced search features",
|
||||
@@ -650,5 +649,9 @@
|
||||
"developer_settings": "Developer settings",
|
||||
"server_endpoint": "Server endpoint",
|
||||
"more_information": "More information",
|
||||
"save": "Save"
|
||||
"save": "Save",
|
||||
"theme": "Theme",
|
||||
"system": "System",
|
||||
"light": "Light",
|
||||
"dark": "Dark"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user