matching pre merge issue translation

This commit is contained in:
mrbusysky 2022-09-18 18:57:17 -07:00
parent b6cf6ee94a
commit e33f3231d0
3 changed files with 35 additions and 18 deletions

View File

@ -6,6 +6,8 @@ import Settings from "./pages/Settings";
// @ts-ignore // @ts-ignore
import { darkTheme, lightTheme } from "./styles/theme/index.css.ts"; import { darkTheme, lightTheme } from "./styles/theme/index.css.ts";
import './Translation/config';
const location = new ReactLocation(); const location = new ReactLocation();
function App() { function App() {
@ -21,7 +23,8 @@ function App() {
{ path: "/", element: <Home className={themeClass} /> }, { path: "/", element: <Home className={themeClass} /> },
{ path: "/settings", element: <Settings className={themeClass} /> }, { path: "/settings", element: <Settings className={themeClass} /> },
]} ]}
></Router> >
</Router>
); );
} }

View File

@ -14,6 +14,7 @@ import { useTranslation } from "react-i18next";
export default function MakeButton() { export default function MakeButton() {
const { t } = useTranslation(); const { t } = useTranslation();
const parallelCount = useImageCreate((state) => state.parallelCount); const parallelCount = useImageCreate((state) => state.parallelCount);
const builtRequest = useImageCreate((state) => state.builtRequest); const builtRequest = useImageCreate((state) => state.builtRequest);
const addNewImage = useImageQueue((state) => state.addNewImage); const addNewImage = useImageQueue((state) => state.addNewImage);
@ -81,7 +82,7 @@ export default function MakeButton() {
onClick={makeImages} onClick={makeImages}
disabled={hasQueue} disabled={hasQueue}
> >
{t("make-img-btn")} {t("home.make-img-btn")}
</button> </button>
); );
} }

File diff suppressed because one or more lines are too long