Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add message when there are no products in a category #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion messages/context.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"store/quickorder.category.addButton": "store/quickorder.category.addButton",
"store/quickorder.category.loading": "store/quickorder.category.loading",
"store/quickorder.category.noneSelection": "store/quickorder.category.noneSelection",
"store/quickorder.category.noProducts": "store/quickorder.category.noProducts",
"store/quickorder.invalidPattern": "store/quickorder.invalidPattern",
"store/quickorder.review.label.content": "store/quickorder.review.label.content",
"store/quickorder.review.label.lineNumber": "store/quickorder.review.label.lineNumber",
Expand All @@ -55,4 +56,4 @@
"store/toaster.cart.error": "store/toaster.cart.error",
"store/toaster.cart.seeCart": "store/toaster.cart.seeCart",
"store/toaster.cart.success": "store/toaster.cart.success"
}
}
1 change: 1 addition & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"store/quickorder.category.addButton": "Add items to Cart",
"store/quickorder.category.loading": "Loading...",
"store/quickorder.category.noneSelection": "Enter some quantity on the items",
"store/quickorder.category.noProducts": "No products",
"store/quickorder.invalidPattern": "Invalid pattern",
"store/quickorder.review.label.content": "Content",
"store/quickorder.review.label.lineNumber": "#",
Expand Down
3 changes: 2 additions & 1 deletion messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"store/quickorder.category.addButton": "Add items to Cart",
"store/quickorder.category.loading": "Loading...",
"store/quickorder.category.noneSelection": "Enter some quantity on the items",
"store/quickorder.category.noProducts": "Sin productos",
"store/quickorder.invalidPattern": "Formato no válido",
"store/quickorder.review.label.content": "Contenido",
"store/quickorder.review.label.lineNumber": "#",
Expand All @@ -55,4 +56,4 @@
"store/toaster.cart.error": "Error al agregar productos al carrito",
"store/toaster.cart.seeCart": "Ver el carrito",
"store/toaster.cart.success": "Productos agregados correctamente"
}
}
3 changes: 2 additions & 1 deletion messages/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"store/quickorder.category.addButton": "Adicionar itens ao carrinho",
"store/quickorder.category.loading": "Carregando...",
"store/quickorder.category.noneSelection": "Informe alguma quantidade nos items desejados",
"store/quickorder.category.noProducts": "Sem produtos",
"store/quickorder.invalidPattern": "Formato inválido",
"store/quickorder.review.label.content": "Conteúdo",
"store/quickorder.review.label.lineNumber": "#",
Expand All @@ -55,4 +56,4 @@
"store/toaster.cart.error": "Erro adicionando produtos ao carrinho",
"store/toaster.cart.seeCart": "Ver o carrinho",
"store/toaster.cart.success": "Produtos adicionados com sucesso"
}
}
3 changes: 2 additions & 1 deletion messages/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"store/quickorder.category.addButton": "Adauga articole in carucior",
"store/quickorder.category.loading": "Se incarca...",
"store/quickorder.category.noneSelection": "Introduceti cantitati",
"store/quickorder.category.noProducts": "Fără produse",
"store/quickorder.invalidPattern": "Pattern Invalid",
"store/quickorder.review.label.content": "Continut",
"store/quickorder.review.label.lineNumber": "#",
Expand All @@ -55,4 +56,4 @@
"store/toaster.cart.error": "Eroare la adaugarea produselor in cos",
"store/toaster.cart.seeCart": "Vezi cos",
"store/toaster.cart.success": "Produse adaugate in cos"
}
}
4 changes: 3 additions & 1 deletion react/CategoryBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,9 @@ const CategoryBlock: StorefrontFunctionComponent<WrappedComponentProps &
)
})
) : (
<span>No products</span>
<span>
<FormattedMessage id="store/quickorder.category.noProducts" />
</span>
)
}

Expand Down