* Init support of i18n and English and mandarin * Update common.js (#1320) * add General Appearance and Chat setting zh translate (#1414) * add config zh translate (#1461) * patch some translation pages * Update locality fixes * update: complete login page Mandarin translation. (#1709) update: complete Mandarin translation. * complete translation * update github to run validator * bump to test workflow failure * bump to fix tests * update workflow * refactor lang selector support * add Spanish and French * add dictionaries --------- Co-authored-by: GetOffer.help <13744916+getofferhelp@users.noreply.github.com> Co-authored-by: AIR <129256286+KochabStar@users.noreply.github.com> Co-authored-by: Ezio T <ezio5600@gmail.com>
30 lines
921 B
JavaScript
30 lines
921 B
JavaScript
import { useTranslation } from "react-i18next";
|
|
|
|
export default function WorkspaceName({ workspace, setHasChanges }) {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<div>
|
|
<div className="flex flex-col">
|
|
<label htmlFor="name" className="block input-label">
|
|
{t("common.workspaces-name")}
|
|
</label>
|
|
<p className="text-white text-opacity-60 text-xs font-medium py-1.5">
|
|
{t("general.names.description")}
|
|
</p>
|
|
</div>
|
|
<input
|
|
name="name"
|
|
type="text"
|
|
minLength={2}
|
|
maxLength={80}
|
|
defaultValue={workspace?.name}
|
|
className="bg-zinc-900 text-white placeholder:text-white/20 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5"
|
|
placeholder="My Workspace"
|
|
required={true}
|
|
autoComplete="off"
|
|
onChange={() => setHasChanges(true)}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|