, id: string) => {
const selectedIndex = selected.indexOf(id);
let newSelected: readonly string[] = [];
if (selectedIndex === -1) {
@@ -311,7 +309,7 @@ export const InventoryPage = () => {
setPage(newPage);
};
- const handleChangeRowsPerPage = (event: any, newValue: number | null) => {
+ const handleChangeRowsPerPage = (_event: any, newValue: number | null) => {
setRowsPerPage(parseInt(newValue!.toString(), 10));
setPage(0);
};
@@ -330,8 +328,8 @@ export const InventoryPage = () => {
return (
<>
- {t("inventory-subtitle")}
- {t("inventory-header")}
+ {t("inventory")}
+ {t("inventory-subtitle")}
}
@@ -435,24 +433,12 @@ export const InventoryPage = () => {
{row.stock}
-
- {row.stockLabel}
-
|
{row.location}
diff --git a/frontend/src/pages/Storages.tsx b/frontend/src/pages/Storages.tsx
index f71288b..e014815 100644
--- a/frontend/src/pages/Storages.tsx
+++ b/frontend/src/pages/Storages.tsx
@@ -67,7 +67,7 @@ export const Storages = () => {
>
- | {t("name")} |
+ {t("storage-name")} |
{t("description")} |
{t("created-at")} |
{t("updated-at")} |
diff --git a/frontend/src/utils/i18n/locales/en/en.json b/frontend/src/utils/i18n/locales/en/en.json
index 4ea442b..e05444a 100644
--- a/frontend/src/utils/i18n/locales/en/en.json
+++ b/frontend/src/utils/i18n/locales/en/en.json
@@ -1,6 +1,33 @@
{
+ "app-title": "Stockhome",
+ "add": "Add",
+ "storages": "Storages",
+ "rows-per-page": "Rows per page",
+ "details": "Details",
"username": "Username",
"password": "Password",
"eu001": "Wrong username or password!",
- "login": "Login"
+ "login": "Login",
+ "product-name": "Product name",
+ "price": "Price",
+ "stock": "Stock",
+ "storage-place": "Storage place",
+ "expiry-date": "Expiry Date",
+ "bottling-date": "Bottling Date",
+ "inventory": "Inventory",
+ "actions": "Actions",
+ "description": "Description",
+ "product-details": "Product Details",
+ "save": "Save",
+ "profile": "Profile",
+ "settings": "Settings",
+ "storage-delete-info": "WARNING: If you remove a storage all items/products that are stored in this storage will also get removed. This cannot be undone!",
+ "storage-name": "Storage name",
+ "created-at": "Created at",
+ "updated-at": "Updated at",
+ "delete": "Delete",
+ "amount": "Amount",
+ "inventory-subtitle": "Here you can inspect all of your stored items.",
+ "add-product": "Add product",
+ "add-product-subtitle": "Here you can enter information for a new product."
}
\ No newline at end of file
|