diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker.tsx index e41277101b..fc6b70e8a0 100644 --- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker.tsx +++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/time-range-picker.tsx @@ -30,10 +30,9 @@ const TimeRangePicker: FC = ({ const isCustom = false const renderRangeTrigger = useCallback((item: Item | null, isOpen: boolean) => { - // todo: custom i18n and last 30days i18n return (
-
{isCustom ? 'Custom' : item?.name}
+
{isCustom ? t('appLog.filter.period.custom') : item?.name}
) diff --git a/web/i18n/en-US/app-log.ts b/web/i18n/en-US/app-log.ts index 946d8ffcb7..e00e1cc675 100644 --- a/web/i18n/en-US/app-log.ts +++ b/web/i18n/en-US/app-log.ts @@ -59,6 +59,7 @@ const translation = { period: { today: 'Today', last7days: 'Last 7 Days', + last30days: 'Last 30 Days', last4weeks: 'Last 4 weeks', last3months: 'Last 3 months', last12months: 'Last 12 months', @@ -66,6 +67,7 @@ const translation = { quarterToDate: 'Quarter to date', yearToDate: 'Year to date', allTime: 'All time', + custom: 'Custom', }, annotation: { all: 'All', diff --git a/web/i18n/ja-JP/app-log.ts b/web/i18n/ja-JP/app-log.ts index 714481c8d1..157483fc93 100644 --- a/web/i18n/ja-JP/app-log.ts +++ b/web/i18n/ja-JP/app-log.ts @@ -59,6 +59,7 @@ const translation = { period: { today: '今日', last7days: '過去 7 日間', + last30days: '過去 30 日間', last4weeks: '過去 4 週間', last3months: '過去 3 ヶ月', last12months: '過去 12 ヶ月', diff --git a/web/i18n/zh-Hans/app-log.ts b/web/i18n/zh-Hans/app-log.ts index 26c5c915c5..e4f441e25b 100644 --- a/web/i18n/zh-Hans/app-log.ts +++ b/web/i18n/zh-Hans/app-log.ts @@ -59,6 +59,7 @@ const translation = { period: { today: '今天', last7days: '过去 7 天', + last30days: '过去 30 天', last4weeks: '过去 4 周', last3months: '过去 3 月', last12months: '过去 12 月', @@ -66,6 +67,7 @@ const translation = { quarterToDate: '本季度至今', yearToDate: '本年至今', allTime: '所有时间', + custom: '自定义', }, annotation: { all: '全部',