diff --git a/apps/client/src/widgets/type_widgets/options/components/OptionsRow.css b/apps/client/src/widgets/type_widgets/options/components/OptionsRow.css
index 98778b96e..6eeaa1074 100644
--- a/apps/client/src/widgets/type_widgets/options/components/OptionsRow.css
+++ b/apps/client/src/widgets/type_widgets/options/components/OptionsRow.css
@@ -10,10 +10,16 @@
margin-bottom: 0 !important;
}
-.option-row > select {
+.option-row > select,
+.option-row > .dropdown {
width: 60%;
}
+.option-row > .dropdown button {
+ width: 100%;
+ text-align: start;
+}
+
.option-row:last-of-type {
border-bottom: unset;
}
diff --git a/apps/client/src/widgets/type_widgets/options/i18n.tsx b/apps/client/src/widgets/type_widgets/options/i18n.tsx
index 4e6ec61e8..bd2c4c9e1 100644
--- a/apps/client/src/widgets/type_widgets/options/i18n.tsx
+++ b/apps/client/src/widgets/type_widgets/options/i18n.tsx
@@ -1,4 +1,4 @@
-import { useMemo } from "preact/hooks";
+import { useMemo, useState } from "preact/hooks";
import { getAvailableLocales, t } from "../../../services/i18n";
import FormSelect from "../../react/FormSelect";
import OptionsRow from "./components/OptionsRow";
@@ -12,6 +12,9 @@ import RawHtml from "../../react/RawHtml";
import Admonition from "../../react/Admonition";
import Button from "../../react/Button";
import CheckboxList from "./components/CheckboxList";
+import FormDropdownList from "../../react/FormDropdownList";
+import Dropdown from "../../react/Dropdown";
+import { FormListItem } from "../../react/FormList";
export default function InternationalizationOptions() {
return (
@@ -57,12 +60,20 @@ function LocalizationOptions() {
}
function LocaleSelector({ id, locales, currentValue, onChange }: { id?: string; locales: Locale[], currentValue: string, onChange: (newLocale: string) => void }) {
- return ;
+ const [ activeLocale, setActiveLocale ] = useState(locales.find(l => l.id === currentValue));
+ return (
+
+ {locales.map(locale => (
+ {
+ setActiveLocale(locale);
+ onChange(locale.id);
+ }}
+ >{locale.name}
+ ))}
+
+ )
}
function DateSettings() {