TootComposer: use useAppLocale
All checks were successful
/ depoly (push) Successful in 1m25s

This commit is contained in:
thislight 2024-11-23 23:47:52 +08:00
parent 6895367fad
commit 4c717a0cb7
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -42,7 +42,7 @@ import {
import type { Account } from "../accounts/stores";
import "./TootComposer.css";
import BottomSheet from "~material/BottomSheet";
import { useLanguage } from "~platform/i18n";
import { useAppLocale } from "~platform/i18n";
import iso639_1 from "iso-639-1";
import ChooseTootLang from "./ChooseTootLang";
import type { mastodon } from "masto";
@ -98,7 +98,8 @@ const TootVisibilityPickerDialog: Component<{
style={{
"border-top": "1px solid #ddd",
background: "var(--tutu-color-surface)",
padding: "8px 16px calc(8px + var(--safe-area-inset-bottom, 0px))",
padding:
"8px 16px calc(8px + var(--safe-area-inset-bottom, 0px))",
width: "100%",
"text-align": "end",
}}
@ -232,7 +233,7 @@ const TootComposer: Component<{
const [permPicker, setPermPicker] = createSignal(false);
const [language, setLanguage] = createSignal("en");
const [langPickerOpen, setLangPickerOpen] = createSignal(false);
const appLanguage = useLanguage();
const { language: appLanguage } = useAppLocale();
const [openMenu, menuState] = createManagedMenuState();
const randomPlaceholder = useRandomChoice(() => [