refactor(i18n): Optimize service pagination internationalization copy
- Added service pagination related copy in English and Chinese translation files - Updated type definitions to include new translation fields - Modified the ServicesPagination component to use the newly added translation fields
This commit is contained in:
@@ -80,9 +80,9 @@ export function ServicesPagination({
|
||||
</SelectContent>
|
||||
</Select>
|
||||
<span className="text-sm text-muted-foreground whitespace-nowrap">
|
||||
{totalItems > 0
|
||||
? `${startItem}-${endItem} of ${totalItems} ${t("services") || "services"}`
|
||||
: `0 ${t("services") || "services"}`
|
||||
{totalItems > 0
|
||||
? t("servicesPagination", {"startItem": startItem, "endItem": endItem, "totalItems": totalItems})
|
||||
: t("servicesPaginationNoService")
|
||||
}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -84,4 +84,6 @@ export const maintenanceTranslations: MaintenanceTranslations = {
|
||||
retry: 'Retry',
|
||||
loadingServerData: 'Loading server data...',
|
||||
retrievingYourInformation: 'Please wait while we retrieve your information...',
|
||||
servicesPagination: '{startItem}-{endItem} of {totalItems} services',
|
||||
servicesPaginationNoService: '0 services',
|
||||
};
|
||||
|
||||
@@ -82,4 +82,6 @@ export interface MaintenanceTranslations {
|
||||
retry: string;
|
||||
loadingServerData: string;
|
||||
retrievingYourInformation: string;
|
||||
servicesPagination: string;
|
||||
servicesPaginationNoService: string;
|
||||
}
|
||||
|
||||
@@ -84,4 +84,6 @@ export const maintenanceTranslations: MaintenanceTranslations = {
|
||||
retry: '重试',
|
||||
loadingServerData: '正在加载服务器数据...',
|
||||
retrievingYourInformation: '正在获取您的信息,请稍候...',
|
||||
servicesPagination: '{startItem}-{endItem}, 共 {totalItems} 个服务',
|
||||
servicesPaginationNoService: '0 服务',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user