chore: add missing translations

This commit is contained in:
Amruth Pillai
2026-05-27 23:31:58 +02:00
parent c6a654191c
commit b491582637
125 changed files with 2807 additions and 606 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ const buttonVariants = cva(
variant: {
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
outline:
"border-border bg-transparent hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground",
"border-input bg-transparent hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground",
secondary:
"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
ghost: "hover:bg-muted hover:text-foreground",
+4 -6
View File
@@ -3,15 +3,13 @@ import userEvent from "@testing-library/user-event";
import { describe, expect, it } from "vitest";
import { ConfirmDialogProvider, useConfirm } from "./use-confirm";
const ConfirmRunner = ({
onResult,
title,
options,
}: {
type ConfirmRunnerProps = {
onResult: (v: boolean) => void;
title: string;
options?: Parameters<ReturnType<typeof useConfirm>>[1];
}) => {
};
const ConfirmRunner = ({ onResult, title, options }: ConfirmRunnerProps) => {
const confirm = useConfirm();
return (
<button
+5 -1
View File
@@ -27,9 +27,13 @@ type ConfirmContextType = {
confirm: (title: string, options?: ConfirmOptions) => Promise<boolean>;
};
type ConfirmDialogProviderProps = {
children: React.ReactNode;
};
const ConfirmContext = React.createContext<ConfirmContextType | null>(null);
export function ConfirmDialogProvider({ children }: { children: React.ReactNode }) {
export function ConfirmDialogProvider({ children }: ConfirmDialogProviderProps) {
const [state, setState] = React.useState<ConfirmState>({
open: false,
resolve: null,
+4 -6
View File
@@ -3,15 +3,13 @@ import userEvent from "@testing-library/user-event";
import { describe, expect, it } from "vitest";
import { PromptDialogProvider, usePrompt } from "./use-prompt";
const PromptRunner = ({
onResult,
title,
options,
}: {
type PromptRunnerProps = {
onResult: (v: string | null) => void;
title: string;
options?: Parameters<ReturnType<typeof usePrompt>>[1];
}) => {
};
const PromptRunner = ({ onResult, title, options }: PromptRunnerProps) => {
const prompt = usePrompt();
return (
<button
+5 -1
View File
@@ -31,9 +31,13 @@ type PromptContextType = {
prompt: (title: string, options?: PromptOptions) => Promise<string | null>;
};
type PromptDialogProviderProps = {
children: React.ReactNode;
};
const PromptContext = React.createContext<PromptContextType | null>(null);
export function PromptDialogProvider({ children }: { children: React.ReactNode }) {
export function PromptDialogProvider({ children }: PromptDialogProviderProps) {
const inputRef = React.useRef<HTMLInputElement>(null);
const [state, setState] = React.useState<PromptState>({