mirror of https://github.com/langgenius/dify.git
chore: some i18n
This commit is contained in:
parent
2cd322af21
commit
92ab453a5a
|
|
@ -30,10 +30,9 @@ const TimeRangePicker: FC<Props> = ({
|
|||
const isCustom = false
|
||||
|
||||
const renderRangeTrigger = useCallback((item: Item | null, isOpen: boolean) => {
|
||||
// todo: custom i18n and last 30days i18n
|
||||
return (
|
||||
<div className={cn('flex h-8 cursor-pointer items-center space-x-1.5 rounded-lg bg-components-input-bg-normal pl-3 pr-2', isOpen && 'bg-state-base-hover-alt')}>
|
||||
<div className='system-sm-regular text-components-input-text-filled'>{isCustom ? 'Custom' : item?.name}</div>
|
||||
<div className='system-sm-regular text-components-input-text-filled'>{isCustom ? t('appLog.filter.period.custom') : item?.name}</div>
|
||||
<RiArrowDownSLine className={cn('size-4 text-text-quaternary', isOpen && 'text-text-secondary')} />
|
||||
</div>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ const translation = {
|
|||
period: {
|
||||
today: '今日',
|
||||
last7days: '過去 7 日間',
|
||||
last30days: '過去 30 日間',
|
||||
last4weeks: '過去 4 週間',
|
||||
last3months: '過去 3 ヶ月',
|
||||
last12months: '過去 12 ヶ月',
|
||||
|
|
|
|||
|
|
@ -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: '全部',
|
||||
|
|
|
|||
Loading…
Reference in New Issue