From 98167b50dc5c5d9e93c2eb29af8df822e0a0d38f Mon Sep 17 00:00:00 2001 From: abias Date: Tue, 23 May 2023 19:31:33 -0400 Subject: [PATCH] Add translations --- src/shared/components/home/rate-limit-form.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/shared/components/home/rate-limit-form.tsx b/src/shared/components/home/rate-limit-form.tsx index d4b68be..8f2a1a8 100644 --- a/src/shared/components/home/rate-limit-form.tsx +++ b/src/shared/components/home/rate-limit-form.tsx @@ -18,7 +18,6 @@ const rateLimitTypes = [ interface RateLimitsProps { handleRateLimit: FormEventHandler; handleRateLimitPerSecond: FormEventHandler; - rateLimitLabel: string; rateLimitValue?: number; rateLimitPerSecondValue?: number; } @@ -49,14 +48,13 @@ interface RateLimitFormState { function RateLimits({ handleRateLimit, handleRateLimitPerSecond, - rateLimitLabel, rateLimitPerSecondValue, rateLimitValue, }: RateLimitsProps) { return (
-
Rate Limit Options
+
{i18n.t("rate_limit_header")}
({ key: rateLimitType, - label: rateLimitType, + label: i18n.t(`rate_limit_${rateLimitType}`), getNode: () => (