feat: update RU i18n locale (#1422)

* feat: Fix i18n and RU locale

* fix: eslint issues

* change the position of deps

---------

Co-authored-by: CorrectRoadH <a778917369@gmail.com>
This commit is contained in:
Dmitry Shemin
2023-04-01 14:35:25 +07:00
committed by GitHub
parent d21abfc60c
commit b03778fa73
14 changed files with 169 additions and 59 deletions

View File

@ -1,11 +1,13 @@
import { useState, useRef } from "react";
import Icon from "./Icon";
import useDebounce from "../hooks/useDebounce";
import { useTranslation } from "react-i18next";
interface ResourceSearchBarProps {
setQuery: (queryText: string) => void;
}
const ResourceSearchBar = ({ setQuery }: ResourceSearchBarProps) => {
const { t } = useTranslation();
const [queryText, setQueryText] = useState("");
const inputRef = useRef<HTMLInputElement>(null);
@ -29,7 +31,7 @@ const ResourceSearchBar = ({ setQuery }: ResourceSearchBarProps) => {
<input
className="flex ml-2 w-24 grow text-sm outline-none bg-transparent dark:text-gray-200"
type="text"
placeholder="Search resource "
placeholder={t("resources.search-bar-placeholder")}
ref={inputRef}
value={queryText}
onChange={handleTextQueryInput}