Add "empty" to i18n

This commit is contained in:
Gucheng Wang
2023-03-19 20:13:07 +08:00
parent 98f962f818
commit 89d29c2519
14 changed files with 15 additions and 5 deletions

View File

@ -182,7 +182,7 @@ class ProductListPage extends BaseListPage {
render: (text, record, index) => {
const providers = text;
if (providers.length === 0) {
return "(empty)";
return `(${i18next.t("general:empty")})`;
}
const half = Math.floor((providers.length + 1) / 2);