From b3751cf71ca5d2f8cd6b09f66320a48280ddcb4b Mon Sep 17 00:00:00 2001 From: gabriellsh Date: Mon, 10 Jun 2024 12:54:04 -0300 Subject: [PATCH 01/10] improve message --- .../server/cronPruneMessages.ts | 16 +-- .../InfoPanel/RetentionPolicyCallout.tsx | 23 +--- .../client/hooks/usePruneWarningMessage.ts | 105 ++++++++++++++++++ .../room/body/RetentionPolicyWarning.tsx | 31 +----- .../client/views/room/body/RoomBody.tsx | 2 +- .../contextualBar/Info/RoomInfo/RoomInfo.tsx | 8 +- .../teams/contextualBar/info/TeamsInfo.tsx | 8 +- ...etCronAdvancedTimerFromPrecisionSetting.ts | 12 ++ packages/i18n/src/locales/en.i18n.json | 8 +- 9 files changed, 137 insertions(+), 76 deletions(-) create mode 100644 apps/meteor/client/hooks/usePruneWarningMessage.ts create mode 100644 apps/meteor/lib/getCronAdvancedTimerFromPrecisionSetting.ts diff --git a/apps/meteor/app/retention-policy/server/cronPruneMessages.ts b/apps/meteor/app/retention-policy/server/cronPruneMessages.ts index d12b734c8906..337691bfbe57 100644 --- a/apps/meteor/app/retention-policy/server/cronPruneMessages.ts +++ b/apps/meteor/app/retention-policy/server/cronPruneMessages.ts @@ -2,6 +2,7 @@ import type { IRoomWithRetentionPolicy } from '@rocket.chat/core-typings'; import { cronJobs } from '@rocket.chat/cron'; import { Rooms } from '@rocket.chat/models'; +import { getCronAdvancedTimerFromPrecisionSetting } from '../../../lib/getCronAdvancedTimerFromPrecisionSetting'; import { cleanRoomHistory } from '../../lib/server/functions/cleanRoomHistory'; import { settings } from '../../settings/server'; @@ -79,19 +80,6 @@ async function job(): Promise { } } -function getSchedule(precision: '0' | '1' | '2' | '3'): string { - switch (precision) { - case '0': - return '*/30 * * * *'; // 30 minutes - case '1': - return '0 * * * *'; // hour - case '2': - return '0 */6 * * *'; // 6 hours - case '3': - return '0 0 * * *'; // day - } -} - const pruneCronName = 'Prune old messages by retention policy'; async function deployCron(precision: string): Promise { @@ -138,7 +126,7 @@ settings.watchMultiple( const precision = (settings.get('RetentionPolicy_Advanced_Precision') && settings.get('RetentionPolicy_Advanced_Precision_Cron')) || - getSchedule(settings.get('RetentionPolicy_Precision')); + getCronAdvancedTimerFromPrecisionSetting(settings.get('RetentionPolicy_Precision')); return deployCron(precision); }, diff --git a/apps/meteor/client/components/InfoPanel/RetentionPolicyCallout.tsx b/apps/meteor/client/components/InfoPanel/RetentionPolicyCallout.tsx index be513e477cd9..d55cac747add 100644 --- a/apps/meteor/client/components/InfoPanel/RetentionPolicyCallout.tsx +++ b/apps/meteor/client/components/InfoPanel/RetentionPolicyCallout.tsx @@ -1,27 +1,16 @@ +import type { IRoom } from '@rocket.chat/core-typings'; import { Callout } from '@rocket.chat/fuselage'; -import { useTranslation } from '@rocket.chat/ui-contexts'; -import type { FC } from 'react'; import React from 'react'; -import { useFormattedRelativeTime } from '../../hooks/useFormattedRelativeTime'; +import { usePruneWarningMessage } from '../../hooks/usePruneWarningMessage'; -type RetentionPolicyCalloutProps = { - filesOnly: boolean; - excludePinned: boolean; - maxAge: number; -}; - -const RetentionPolicyCallout: FC = ({ filesOnly, excludePinned, maxAge }) => { - const t = useTranslation(); - const time = useFormattedRelativeTime(maxAge); +const RetentionPolicyCallout = ({ room }: { room: IRoom }) => { + const message = usePruneWarningMessage(room); return ( - +
- {filesOnly && excludePinned &&

{t('RetentionPolicy_RoomWarning_FilesOnly', { time })}

} - {filesOnly && !excludePinned &&

{t('RetentionPolicy_RoomWarning_UnpinnedFilesOnly', { time })}

} - {!filesOnly && excludePinned &&

{t('RetentionPolicy_RoomWarning', { time })}

} - {!filesOnly && !excludePinned &&

{t('RetentionPolicy_RoomWarning_Unpinned', { time })}

} +

{message}

); diff --git a/apps/meteor/client/hooks/usePruneWarningMessage.ts b/apps/meteor/client/hooks/usePruneWarningMessage.ts new file mode 100644 index 000000000000..b2b65a0f922a --- /dev/null +++ b/apps/meteor/client/hooks/usePruneWarningMessage.ts @@ -0,0 +1,105 @@ +import type { IRoom } from '@rocket.chat/core-typings'; +import { useSafely } from '@rocket.chat/fuselage-hooks'; +import type { TranslationKey } from '@rocket.chat/ui-contexts'; +import { useSetting, useTranslation, useLanguage } from '@rocket.chat/ui-contexts'; +import { sendAt } from 'cron'; +import intlFormat from 'date-fns/intlFormat'; +import { useEffect, useState } from 'react'; + +import { getCronAdvancedTimerFromPrecisionSetting } from '../../lib/getCronAdvancedTimerFromPrecisionSetting'; +import { useRetentionPolicy } from '../views/room/hooks/useRetentionPolicy'; +import { useFormattedRelativeTime } from './useFormattedRelativeTime'; + +const getMessage = ({ filesOnly, excludePinned }: { filesOnly: boolean; excludePinned: boolean }): TranslationKey => { + if (filesOnly) { + return excludePinned + ? 'RetentionPolicy_RoomWarning_FilesOnly_NextRunDate' + : 'RetentionPolicy_RoomWarning_UnpinnedFilesOnly_NextRunDate'; + } + + return excludePinned ? 'RetentionPolicy_RoomWarning_NextRunDate' : 'RetentionPolicy_RoomWarning_Unpinned_NextRunDate'; +}; + +type CronPrecisionSetting = '0' | '1' | '2' | '3'; +const getNextRunDate = ({ + enableAdvancedCronTimer, + cronPrecision, + advancedCronTimer, +}: { + enableAdvancedCronTimer: boolean; + cronPrecision: CronPrecisionSetting; + advancedCronTimer: string; +}) => { + if (enableAdvancedCronTimer) { + return sendAt(advancedCronTimer); + } + + return sendAt(getCronAdvancedTimerFromPrecisionSetting(cronPrecision)); +}; + +const useNextRunDate = ({ + enableAdvancedCronTimer, + advancedCronTimer, + cronPrecision, +}: { + enableAdvancedCronTimer: boolean; + cronPrecision: CronPrecisionSetting; + advancedCronTimer: string; +}) => { + const [nextRunDate, setNextRunDate] = useSafely(useState(getNextRunDate({ enableAdvancedCronTimer, advancedCronTimer, cronPrecision }))); + const lang = useLanguage(); + + useEffect(() => { + const timeoutBetweenRunAndNow = nextRunDate.valueOf() - Date.now() + 5000; // wait 5s to get next run date + + const timeout = setTimeout( + () => setNextRunDate(getNextRunDate({ enableAdvancedCronTimer, advancedCronTimer, cronPrecision })), + timeoutBetweenRunAndNow, + ); + + return () => clearTimeout(timeout); + }, [advancedCronTimer, cronPrecision, enableAdvancedCronTimer, nextRunDate, setNextRunDate]); + + return intlFormat( + new Date(nextRunDate.valueOf()), + { + localeMatcher: 'best fit', + year: 'numeric', + month: 'long', + day: 'numeric', + hour: 'numeric', + minute: 'numeric', + }, + { + locale: lang, + }, + ); +}; + +export const usePruneWarningMessage = (room: IRoom) => { + const retention = useRetentionPolicy(room); + if (!retention) { + throw new Error('usePruneWarningMessage - No room provided'); + } + + const { maxAge, filesOnly, excludePinned } = retention; + + const cronPrecision = String(useSetting('RetentionPolicy_Precision')) as CronPrecisionSetting; + + const t = useTranslation(); + + const enableAdvancedCronTimer = Boolean(useSetting('RetentionPolicy_Advanced_Precision')); + const advancedCronTimer = String(useSetting('RetentionPolicy_Advanced_Precision_Cron')); + + const message = getMessage({ filesOnly, excludePinned }); + + const nextRunDate = useNextRunDate({ + enableAdvancedCronTimer, + advancedCronTimer, + cronPrecision, + }); + + const maxAgeFormatted = useFormattedRelativeTime(maxAge); + + return t(message, { maxAge: maxAgeFormatted, nextRunDate }); +}; diff --git a/apps/meteor/client/views/room/body/RetentionPolicyWarning.tsx b/apps/meteor/client/views/room/body/RetentionPolicyWarning.tsx index 193c8fa7bb6b..33d84a35b939 100644 --- a/apps/meteor/client/views/room/body/RetentionPolicyWarning.tsx +++ b/apps/meteor/client/views/room/body/RetentionPolicyWarning.tsx @@ -1,35 +1,15 @@ +import type { IRoom } from '@rocket.chat/core-typings'; import { Icon } from '@rocket.chat/fuselage'; import { useTranslation } from '@rocket.chat/ui-contexts'; import type { ReactElement } from 'react'; import React from 'react'; -import { useFormattedRelativeTime } from '../../../hooks/useFormattedRelativeTime'; +import { usePruneWarningMessage } from '../../../hooks/usePruneWarningMessage'; -type RetentionPolicyWarningProps = { - filesOnly: boolean; - excludePinned: boolean; - maxAge: number; -}; - -const RetentionPolicyWarning = ({ filesOnly, excludePinned, maxAge }: RetentionPolicyWarningProps): ReactElement => { +const RetentionPolicyWarning = ({ room }: { room: IRoom }): ReactElement => { const t = useTranslation(); - const time = useFormattedRelativeTime(maxAge); - if (filesOnly) { - return ( -
- {' '} - {excludePinned - ? t('RetentionPolicy_RoomWarning_UnpinnedFilesOnly', { time }) - : t('RetentionPolicy_RoomWarning_FilesOnly', { time })} -
- ); - } + const message = usePruneWarningMessage(room); return (
- {' '} - {excludePinned ? t('RetentionPolicy_RoomWarning_Unpinned', { time }) : t('RetentionPolicy_RoomWarning', { time })} + {message}
); }; diff --git a/apps/meteor/client/views/room/body/RoomBody.tsx b/apps/meteor/client/views/room/body/RoomBody.tsx index 0535b65c6cf1..31f8440643b7 100644 --- a/apps/meteor/client/views/room/body/RoomBody.tsx +++ b/apps/meteor/client/views/room/body/RoomBody.tsx @@ -291,7 +291,7 @@ const RoomBody = (): ReactElement => {
  • {isLoadingMoreMessages ? : null}
  • ) : (
  • - {retentionPolicy?.isActive ? : null} + {retentionPolicy?.isActive ? : null}
  • )} diff --git a/apps/meteor/client/views/room/contextualBar/Info/RoomInfo/RoomInfo.tsx b/apps/meteor/client/views/room/contextualBar/Info/RoomInfo/RoomInfo.tsx index 5c45e8d095f9..99edb04e8c31 100644 --- a/apps/meteor/client/views/room/contextualBar/Info/RoomInfo/RoomInfo.tsx +++ b/apps/meteor/client/views/room/contextualBar/Info/RoomInfo/RoomInfo.tsx @@ -135,13 +135,7 @@ const RoomInfo = ({ room, icon, onClickBack, onClickClose, onClickEnterRoom, onC )} - {retentionPolicy?.isActive && ( - - )} + {retentionPolicy?.isActive && } diff --git a/apps/meteor/client/views/teams/contextualBar/info/TeamsInfo.tsx b/apps/meteor/client/views/teams/contextualBar/info/TeamsInfo.tsx index 5a38722cfc42..e5202f070320 100644 --- a/apps/meteor/client/views/teams/contextualBar/info/TeamsInfo.tsx +++ b/apps/meteor/client/views/teams/contextualBar/info/TeamsInfo.tsx @@ -190,13 +190,7 @@ const TeamsInfo = ({ )} - {retentionPolicy?.isActive && ( - - )} + {retentionPolicy?.isActive && } diff --git a/apps/meteor/lib/getCronAdvancedTimerFromPrecisionSetting.ts b/apps/meteor/lib/getCronAdvancedTimerFromPrecisionSetting.ts new file mode 100644 index 000000000000..e83db4838e4e --- /dev/null +++ b/apps/meteor/lib/getCronAdvancedTimerFromPrecisionSetting.ts @@ -0,0 +1,12 @@ +export function getCronAdvancedTimerFromPrecisionSetting(precision: '0' | '1' | '2' | '3'): string { + switch (precision) { + case '0': + return '*/30 * * * *'; // 30 minutes + case '1': + return '0 * * * *'; // hour + case '2': + return '0 */6 * * *'; // 6 hours + case '3': + return '0 0 * * *'; // day + } +} diff --git a/packages/i18n/src/locales/en.i18n.json b/packages/i18n/src/locales/en.i18n.json index f6f85e2ca008..9f11703f2746 100644 --- a/packages/i18n/src/locales/en.i18n.json +++ b/packages/i18n/src/locales/en.i18n.json @@ -4527,10 +4527,10 @@ "RetentionPolicy_MaxAge_Groups": "Maximum message age in private groups", "RetentionPolicy_Precision": "Timer Precision", "RetentionPolicy_Precision_Description": "How often the prune timer should run. Setting this to a more precise value makes channels with fast retention timers work better, but might cost extra processing power on large communities.", - "RetentionPolicy_RoomWarning": "Messages older than {{time}} are automatically pruned here", - "RetentionPolicy_RoomWarning_FilesOnly": "Files older than {{time}} are automatically pruned here (messages stay intact)", - "RetentionPolicy_RoomWarning_Unpinned": "Unpinned messages older than {{time}} are automatically pruned here", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Unpinned files older than {{time}} are automatically pruned here (messages stay intact)", + "RetentionPolicy_RoomWarning_NextRunDate": "Messages older than {{maxAge}} will be pruned on {{nextRunDate}}", + "RetentionPolicy_RoomWarning_FilesOnly_NextRunDate": "Files older than {{maxAge}} will be pruned on {{nextRunDate}}.", + "RetentionPolicy_RoomWarning_Unpinned_NextRunDate": "Unpinned messages older than {{maxAge}} will be pruned on {{nextRunDate}}.", + "RetentionPolicy_RoomWarning_UnpinnedFilesOnly_NextRunDate": "Unpinned files older than {{maxAge}} will be pruned on {{nextRunDate}}.", "RetentionPolicyRoom_Enabled": "Automatically prune old messages", "RetentionPolicyRoom_ExcludePinned": "Exclude pinned messages", "RetentionPolicyRoom_FilesOnly": "Prune files only, keep messages", From 536fad3d9adc73ba01675d19b361cbced0d434c7 Mon Sep 17 00:00:00 2001 From: gabriellsh Date: Tue, 11 Jun 2024 10:28:27 -0300 Subject: [PATCH 02/10] Add module declaration --- apps/meteor/client/definitions/cron.d.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 apps/meteor/client/definitions/cron.d.ts diff --git a/apps/meteor/client/definitions/cron.d.ts b/apps/meteor/client/definitions/cron.d.ts new file mode 100644 index 000000000000..25c4be4f97a7 --- /dev/null +++ b/apps/meteor/client/definitions/cron.d.ts @@ -0,0 +1,3 @@ +declare module 'cron' { + export declare function sendAt(precision: string): Moment; +} From af9621df221ccaeaf9d4cbea86467035f2d40679 Mon Sep 17 00:00:00 2001 From: gabriellsh Date: Tue, 11 Jun 2024 15:46:21 -0300 Subject: [PATCH 03/10] fix type --- .../meteor/client/components/InfoPanel/InfoPanel.stories.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/meteor/client/components/InfoPanel/InfoPanel.stories.tsx b/apps/meteor/client/components/InfoPanel/InfoPanel.stories.tsx index 39242161ed46..1d8987995e8c 100644 --- a/apps/meteor/client/components/InfoPanel/InfoPanel.stories.tsx +++ b/apps/meteor/client/components/InfoPanel/InfoPanel.stories.tsx @@ -2,6 +2,7 @@ import type { ComponentMeta, ComponentStory } from '@storybook/react'; import React from 'react'; import InfoPanel from '.'; +import { createFakeRoom } from '../../../tests/mocks/data'; import RetentionPolicyCallout from './RetentionPolicyCallout'; export default { @@ -20,6 +21,8 @@ export default { }, } as ComponentMeta; +const fakeRoom = createFakeRoom(); + export const Default: ComponentStory = () => ( @@ -52,7 +55,7 @@ export const Default: ComponentStory = () => ( - + ); From 90c0839a35f44f655816b308ae326299ce029b0d Mon Sep 17 00:00:00 2001 From: gabriellsh Date: Wed, 12 Jun 2024 12:10:24 -0300 Subject: [PATCH 04/10] fix inverted message --- apps/meteor/client/hooks/usePruneWarningMessage.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/meteor/client/hooks/usePruneWarningMessage.ts b/apps/meteor/client/hooks/usePruneWarningMessage.ts index b2b65a0f922a..bb1eec5a5989 100644 --- a/apps/meteor/client/hooks/usePruneWarningMessage.ts +++ b/apps/meteor/client/hooks/usePruneWarningMessage.ts @@ -13,11 +13,11 @@ import { useFormattedRelativeTime } from './useFormattedRelativeTime'; const getMessage = ({ filesOnly, excludePinned }: { filesOnly: boolean; excludePinned: boolean }): TranslationKey => { if (filesOnly) { return excludePinned - ? 'RetentionPolicy_RoomWarning_FilesOnly_NextRunDate' - : 'RetentionPolicy_RoomWarning_UnpinnedFilesOnly_NextRunDate'; + ? 'RetentionPolicy_RoomWarning_UnpinnedFilesOnly_NextRunDate' + : 'RetentionPolicy_RoomWarning_FilesOnly_NextRunDate'; } - return excludePinned ? 'RetentionPolicy_RoomWarning_NextRunDate' : 'RetentionPolicy_RoomWarning_Unpinned_NextRunDate'; + return excludePinned ? 'RetentionPolicy_RoomWarning_Unpinned_NextRunDate' : 'RetentionPolicy_RoomWarning_NextRunDate'; }; type CronPrecisionSetting = '0' | '1' | '2' | '3'; @@ -50,7 +50,7 @@ const useNextRunDate = ({ const lang = useLanguage(); useEffect(() => { - const timeoutBetweenRunAndNow = nextRunDate.valueOf() - Date.now() + 5000; // wait 5s to get next run date + const timeoutBetweenRunAndNow = nextRunDate.valueOf() - Date.now(); const timeout = setTimeout( () => setNextRunDate(getNextRunDate({ enableAdvancedCronTimer, advancedCronTimer, cronPrecision })), From 75599bc1926af141ac7b3d5c1c7865fb54027ba9 Mon Sep 17 00:00:00 2001 From: gabriellsh Date: Wed, 12 Jun 2024 12:10:57 -0300 Subject: [PATCH 05/10] add tests --- .../hooks/usePruneWarningMessage.spec.ts | 182 ++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 apps/meteor/client/hooks/usePruneWarningMessage.spec.ts diff --git a/apps/meteor/client/hooks/usePruneWarningMessage.spec.ts b/apps/meteor/client/hooks/usePruneWarningMessage.spec.ts new file mode 100644 index 000000000000..b24581a75067 --- /dev/null +++ b/apps/meteor/client/hooks/usePruneWarningMessage.spec.ts @@ -0,0 +1,182 @@ +import { mockAppRoot } from '@rocket.chat/mock-providers'; +import { renderHook } from '@testing-library/react-hooks'; + +import { createFakeRoom } from '../../tests/mocks/data'; +import { usePruneWarningMessage } from './usePruneWarningMessage'; + +const createMock = ({ + enabled = true, + filesOnly = false, + doNotPrunePinned = false, + appliesToChannels = false, + TTLChannels = 60000, + appliesToGroups = false, + TTLGroups = 60000, + appliesToDMs = false, + TTLDMs = 60000, + precision = '0', + advancedPrecision = false, + advancedPrecisionCron = '*/30 * * * *', +} = {}) => { + return mockAppRoot() + .withTranslations('en', 'core', { + RetentionPolicy_RoomWarning_NextRunDate: '{{maxAge}} {{nextRunDate}}', + RetentionPolicy_RoomWarning_Unpinned_NextRunDate: 'Unpinned {{maxAge}} {{nextRunDate}}', + RetentionPolicy_RoomWarning_FilesOnly_NextRunDate: 'FilesOnly {{maxAge}} {{nextRunDate}}', + RetentionPolicy_RoomWarning_UnpinnedFilesOnly_NextRunDate: 'UnpinnedFilesOnly {{maxAge}} {{nextRunDate}}', + }) + .withSetting('RetentionPolicy_Enabled', enabled) + .withSetting('RetentionPolicy_FilesOnly', filesOnly) + .withSetting('RetentionPolicy_DoNotPrunePinned', doNotPrunePinned) + .withSetting('RetentionPolicy_AppliesToChannels', appliesToChannels) + .withSetting('RetentionPolicy_TTL_Channels', TTLChannels) + .withSetting('RetentionPolicy_AppliesToGroups', appliesToGroups) + .withSetting('RetentionPolicy_TTL_Groups', TTLGroups) + .withSetting('RetentionPolicy_AppliesToDMs', appliesToDMs) + .withSetting('RetentionPolicy_TTL_DMs', TTLDMs) + .withSetting('RetentionPolicy_Precision', precision) + .withSetting('RetentionPolicy_Advanced_Precision', advancedPrecision) + .withSetting('RetentionPolicy_Advanced_Precision_Cron', advancedPrecisionCron) + .build(); +}; + +jest.useFakeTimers(); + +const setDate = (minutes = 1, hours = 0, date = 1) => { + // June 12, 2024, 12:00 AM + const fakeDate = new Date(); + fakeDate.setFullYear(2024); + fakeDate.setMonth(5); + fakeDate.setDate(date); + fakeDate.setHours(hours); + fakeDate.setMinutes(minutes); + fakeDate.setSeconds(0); + jest.setSystemTime(fakeDate); +}; + +describe('usePruneWarningMessage hook', () => { + describe('Cron timer and precision', () => { + it('Should update the message after the nextRunDate has passaed', async () => { + setDate(); + const fakeRoom = createFakeRoom({ t: 'c' }); + const { result } = renderHook(() => usePruneWarningMessage(fakeRoom), { + wrapper: createMock({ + appliesToChannels: true, + TTLChannels: 60000, + }), + }); + expect(result.current).toEqual('a minute June 1, 2024, 12:30 AM'); + jest.advanceTimersByTime(31 * 60 * 1000); + expect(result.current).toEqual('a minute June 1, 2024, 1:00 AM'); + }); + + it('Should return the default warning with precision set to every_hour', () => { + const fakeRoom = createFakeRoom({ t: 'c' }); + setDate(); + const { result } = renderHook(() => usePruneWarningMessage(fakeRoom), { + wrapper: createMock({ + appliesToChannels: true, + TTLChannels: 60000, + precision: '1', + }), + }); + expect(result.current).toEqual('a minute June 1, 2024, 1:00 AM'); + }); + + it('Should return the default warning with precision set to every_six_hours', () => { + const fakeRoom = createFakeRoom({ t: 'c' }); + setDate(); + const { result } = renderHook(() => usePruneWarningMessage(fakeRoom), { + wrapper: createMock({ + appliesToChannels: true, + TTLChannels: 60000, + precision: '2', + }), + }); + expect(result.current).toEqual('a minute June 1, 2024, 6:00 AM'); + }); + + it('Should return the default warning with precision set to every_day', () => { + const fakeRoom = createFakeRoom({ t: 'c' }); + setDate(); + const { result } = renderHook(() => usePruneWarningMessage(fakeRoom), { + wrapper: createMock({ + appliesToChannels: true, + TTLChannels: 60000, + precision: '3', + }), + }); + expect(result.current).toEqual('a minute June 2, 2024, 12:00 AM'); + }); + + it('Should return the default warning with advanced precision', () => { + const fakeRoom = createFakeRoom({ t: 'c' }); + setDate(); + const { result } = renderHook(() => usePruneWarningMessage(fakeRoom), { + wrapper: createMock({ + appliesToChannels: true, + TTLChannels: 60000, + advancedPrecision: true, + advancedPrecisionCron: '0 0 1 */1 *', + }), + }); + expect(result.current).toEqual('a minute July 1, 2024, 12:00 AM'); + }); + }); + + describe('Channels, no override', () => { + it('Should return the default warning', () => { + const fakeRoom = createFakeRoom({ t: 'c' }); + setDate(); + const { result } = renderHook(() => usePruneWarningMessage(fakeRoom), { + wrapper: createMock({ + appliesToChannels: true, + TTLChannels: 60000, + }), + }); + expect(result.current).toEqual('a minute June 1, 2024, 12:30 AM'); + }); + + it('Should return the unpinned messages warning', () => { + const fakeRoom = createFakeRoom({ t: 'c' }); + setDate(); + const { result } = renderHook(() => usePruneWarningMessage(fakeRoom), { + wrapper: createMock({ + appliesToChannels: true, + TTLChannels: 60000, + doNotPrunePinned: true, + }), + }); + expect(result.current).toEqual('Unpinned a minute June 1, 2024, 12:30 AM'); + }); + + it('Should return the files only warning', () => { + const fakeRoom = createFakeRoom({ t: 'c' }); + setDate(); + + const { result } = renderHook(() => usePruneWarningMessage(fakeRoom), { + wrapper: createMock({ + appliesToChannels: true, + TTLChannels: 60000, + filesOnly: true, + }), + }); + expect(result.current).toEqual('FilesOnly a minute June 1, 2024, 12:30 AM'); + }); + + it('Should return the unpinned files only warning', () => { + const fakeRoom = createFakeRoom({ t: 'c' }); + setDate(); + + const { result } = renderHook(() => usePruneWarningMessage(fakeRoom), { + wrapper: createMock({ + appliesToChannels: true, + TTLChannels: 60000, + filesOnly: true, + doNotPrunePinned: true, + }), + }); + expect(result.current).toEqual('UnpinnedFilesOnly a minute June 1, 2024, 12:30 AM'); + }); + }); +}); From 527a595e06f2186505e564d23497ed3879be98ef Mon Sep 17 00:00:00 2001 From: gabriellsh Date: Wed, 12 Jun 2024 13:15:37 -0300 Subject: [PATCH 06/10] Remove translations --- packages/i18n/src/locales/af.i18n.json | 4 ---- packages/i18n/src/locales/ar.i18n.json | 4 ---- packages/i18n/src/locales/az.i18n.json | 4 ---- packages/i18n/src/locales/be-BY.i18n.json | 4 ---- packages/i18n/src/locales/bg.i18n.json | 4 ---- packages/i18n/src/locales/bs.i18n.json | 4 ---- packages/i18n/src/locales/ca.i18n.json | 4 ---- packages/i18n/src/locales/cs.i18n.json | 4 ---- packages/i18n/src/locales/cy.i18n.json | 4 ---- packages/i18n/src/locales/da.i18n.json | 4 ---- packages/i18n/src/locales/de-AT.i18n.json | 4 ---- packages/i18n/src/locales/de-IN.i18n.json | 4 ---- packages/i18n/src/locales/de.i18n.json | 4 ---- packages/i18n/src/locales/el.i18n.json | 4 ---- packages/i18n/src/locales/eo.i18n.json | 4 ---- packages/i18n/src/locales/es.i18n.json | 4 ---- packages/i18n/src/locales/fa.i18n.json | 4 ++-- packages/i18n/src/locales/fi.i18n.json | 4 ---- packages/i18n/src/locales/fr.i18n.json | 4 ---- packages/i18n/src/locales/hr.i18n.json | 4 ---- packages/i18n/src/locales/hu.i18n.json | 4 ---- packages/i18n/src/locales/id.i18n.json | 4 ---- packages/i18n/src/locales/it.i18n.json | 4 ---- packages/i18n/src/locales/ja.i18n.json | 4 ---- packages/i18n/src/locales/ka-GE.i18n.json | 4 ---- packages/i18n/src/locales/km.i18n.json | 4 ---- packages/i18n/src/locales/ko.i18n.json | 4 ---- packages/i18n/src/locales/ku.i18n.json | 6 +----- packages/i18n/src/locales/lo.i18n.json | 4 ---- packages/i18n/src/locales/lt.i18n.json | 4 ---- packages/i18n/src/locales/lv.i18n.json | 4 ---- packages/i18n/src/locales/mn.i18n.json | 4 ---- packages/i18n/src/locales/ms-MY.i18n.json | 4 ---- packages/i18n/src/locales/nl.i18n.json | 4 ---- packages/i18n/src/locales/no.i18n.json | 4 ---- packages/i18n/src/locales/pl.i18n.json | 4 ---- packages/i18n/src/locales/pt-BR.i18n.json | 4 ---- packages/i18n/src/locales/pt.i18n.json | 4 ---- packages/i18n/src/locales/ro.i18n.json | 4 ---- packages/i18n/src/locales/ru.i18n.json | 4 ---- packages/i18n/src/locales/sk-SK.i18n.json | 4 ---- packages/i18n/src/locales/sl-SI.i18n.json | 4 ---- packages/i18n/src/locales/sq.i18n.json | 4 ---- packages/i18n/src/locales/sr.i18n.json | 4 ---- packages/i18n/src/locales/sv.i18n.json | 4 ---- packages/i18n/src/locales/ta-IN.i18n.json | 4 ---- packages/i18n/src/locales/th-TH.i18n.json | 4 ---- packages/i18n/src/locales/tr.i18n.json | 4 ---- packages/i18n/src/locales/uk.i18n.json | 4 ---- packages/i18n/src/locales/vi-VN.i18n.json | 4 ---- packages/i18n/src/locales/zh-HK.i18n.json | 2 +- packages/i18n/src/locales/zh-TW.i18n.json | 4 ---- packages/i18n/src/locales/zh.i18n.json | 4 ---- 53 files changed, 4 insertions(+), 208 deletions(-) diff --git a/packages/i18n/src/locales/af.i18n.json b/packages/i18n/src/locales/af.i18n.json index 17c3a8bd13cd..fe3a0b4cfc83 100644 --- a/packages/i18n/src/locales/af.i18n.json +++ b/packages/i18n/src/locales/af.i18n.json @@ -2068,10 +2068,6 @@ "RetentionPolicy_MaxAge": "Maksimum boodskap ouderdom", "RetentionPolicy_Precision": "Timer Precision", "RetentionPolicy_Precision_Description": "Hoe gereeld moet die snoei-timer hardloop. Om dit tot 'n meer presiese waarde te stel, maak kanale met vinnige retentietydperke beter, maar kan ekstra verwerkingskrag op groot gemeenskappe kos.", - "RetentionPolicy_RoomWarning": "Boodskappe ouer as {{time}} word hier outomaties gesnoei", - "RetentionPolicy_RoomWarning_FilesOnly": "Lêers ouer as {{time}} word outomaties snoei hier (boodskappe bly ongeskonde)", - "RetentionPolicy_RoomWarning_Unpinned": "Ongepakte boodskappe ouer as {{time}} word hier outomaties gesnoei", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Ongepakte lêers ouer as {{time}} word hier outomaties gesnoei (boodskappe bly ongeskonde)", "RetentionPolicyRoom_Enabled": "Snoei ou boodskappe outomaties", "RetentionPolicyRoom_ExcludePinned": "Sluit uitgespelde boodskappe uit", "RetentionPolicyRoom_FilesOnly": "Snoei slegs lêers, hou boodskappe", diff --git a/packages/i18n/src/locales/ar.i18n.json b/packages/i18n/src/locales/ar.i18n.json index 6b2b8289cfef..a043c30c2856 100644 --- a/packages/i18n/src/locales/ar.i18n.json +++ b/packages/i18n/src/locales/ar.i18n.json @@ -3557,10 +3557,6 @@ "RetentionPolicy_MaxAge": "الحد الأقصى لعمر الرسائل", "RetentionPolicy_Precision": "دقة المؤقت", "RetentionPolicy_Precision_Description": "عدد المرات التي يجب فيها تشغيل مؤقت التنقيح. يؤدي تعيين هذا إلى قيمة أكثر دقة إلى جعل القنوات ذات مؤقتات الاستبقاء السريعة تعمل بشكل أفضل، ولكنها قد تكلف قوة معالجة إضافية على المجتمعات الكبيرة.", - "RetentionPolicy_RoomWarning": "يتم تنقيح الرسائل الأقدم من {{time}} تلقائيًا هنا", - "RetentionPolicy_RoomWarning_FilesOnly": "يتم تنقيح الملفات الأقدم من {{time}} تلقائيًا هنا (تظل الرسائل سليمة)", - "RetentionPolicy_RoomWarning_Unpinned": "يتم تنقيح الرسائل غير المثبتة الأقدم من {{time}} تلقائيًا هنا", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "يتم تنقيح الملفات غير المثبتة الأقدم من {{time}} تلقائيًا هنا (تظل الرسائل سليمة)", "RetentionPolicyRoom_Enabled": "تنقيح الرسائل القديمة تلقائيًا", "RetentionPolicyRoom_ExcludePinned": "استبعاد الرسائل المثبتة", "RetentionPolicyRoom_FilesOnly": "تنقيح الملفات فقط، والاحتفاظ بالرسائل", diff --git a/packages/i18n/src/locales/az.i18n.json b/packages/i18n/src/locales/az.i18n.json index 4d70431dfcde..75d6b68ecff1 100644 --- a/packages/i18n/src/locales/az.i18n.json +++ b/packages/i18n/src/locales/az.i18n.json @@ -2068,10 +2068,6 @@ "RetentionPolicy_MaxAge": "Maksimum mesaj yaşı", "RetentionPolicy_Precision": "Timer dəqiqliyi", "RetentionPolicy_Precision_Description": "Hədəf çəkicinin necə tez-tez istifadə etməsi lazımdır. Bunu daha dəqiq bir dəyərə təyin etmək, sürətli saxlama sayğacları olan kanalları daha yaxşı işlədir, lakin böyük icmalarda əlavə işləmə gücünə səbəb ola bilər.", - "RetentionPolicy_RoomWarning": "{{time}}-dən çox olan mesajlar avtomatik olaraq burda kəsilir", - "RetentionPolicy_RoomWarning_FilesOnly": "{{time}}-dən çox olan fayllar avtomatik olaraq burulmuşdur (mesajlar dəyişməz qalır)", - "RetentionPolicy_RoomWarning_Unpinned": "{{time}}-dən daha köhnəlməmiş mesajlar avtomatik olaraq buradan kəsilir", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "{{time}}-dən daha eski olan açılmamış fayllar avtomatik olaraq burulmuş (mesajlar dəyişməz qalır)", "RetentionPolicyRoom_Enabled": "Avtomatik olaraq köhnə mesajlar budayın", "RetentionPolicyRoom_ExcludePinned": "Səslənən mesajları həddindən kənarlaşdırın", "RetentionPolicyRoom_FilesOnly": "Yalnız faylları daraltın, mesajları saxlayın", diff --git a/packages/i18n/src/locales/be-BY.i18n.json b/packages/i18n/src/locales/be-BY.i18n.json index 8f44ae85d615..11a1d1c60b52 100644 --- a/packages/i18n/src/locales/be-BY.i18n.json +++ b/packages/i18n/src/locales/be-BY.i18n.json @@ -2085,10 +2085,6 @@ "RetentionPolicy_MaxAge": "Максімальны ўзрост паведамлення", "RetentionPolicy_Precision": "таймер Precision", "RetentionPolicy_Precision_Description": "Як часта таймер чарнасліў павінен працаваць. Ўстаноўка гэтага больш дакладнага значэнне робіць каналы з хуткімі таймерамі захоўвання лепш працаваць, але могуць каштаваць дадатковых вылічальных магутнасцяў на вялікіх супольнасцях.", - "RetentionPolicy_RoomWarning": "Паведамлення старэй {{time}} аўтаматычна абразаюць тут", - "RetentionPolicy_RoomWarning_FilesOnly": "Файлы старэй {{time}} аўтаматычна абразаннем тут (паведамленні застаюцца некранутымі)", - "RetentionPolicy_RoomWarning_Unpinned": "Незамацаваныя паведамлення старэй {{time}} аўтаматычна абразаюць тут", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Незамацаваныя файлы старэй {{time}} аўтаматычна абразаннем тут (паведамленні застаюцца некранутымі)", "RetentionPolicyRoom_Enabled": "Аўтаматычна абрэзаць старыя паведамленні", "RetentionPolicyRoom_ExcludePinned": "Выключыць ўскладалі паведамлення", "RetentionPolicyRoom_FilesOnly": "толькі Выдаляць файлы, захоўваць паведамленні", diff --git a/packages/i18n/src/locales/bg.i18n.json b/packages/i18n/src/locales/bg.i18n.json index 4cdac92ed503..c148b5c14b17 100644 --- a/packages/i18n/src/locales/bg.i18n.json +++ b/packages/i18n/src/locales/bg.i18n.json @@ -2065,10 +2065,6 @@ "RetentionPolicy_MaxAge": "Максимална възраст на съобщенията", "RetentionPolicy_Precision": "Точност на таймера", "RetentionPolicy_Precision_Description": "Колко често трябва да се изпълнява таймерът за подрязване. Задаването на това с по-точна стойност прави каналите с бързи таймери за задържане да работят по-добре, но може да струва допълнителна мощност за обработка на големи общности.", - "RetentionPolicy_RoomWarning": "По-стари от {{time}} са автоматично подрязани тук", - "RetentionPolicy_RoomWarning_FilesOnly": "Файловете, по-стари от {{time}}, са автоматично подрязани тук (съобщенията остават непокътнати)", - "RetentionPolicy_RoomWarning_Unpinned": "Незаключените съобщения, по-стари от {{time}}, са автоматично подрязани тук", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Незапалените файлове, по-стари от {{time}}, са автоматично подрязани тук (съобщенията остават непокътнати)", "RetentionPolicyRoom_Enabled": "Автоматично прерязване на старите съобщения", "RetentionPolicyRoom_ExcludePinned": "Изключете закачените съобщения", "RetentionPolicyRoom_FilesOnly": "Премахвайте само файлове, запазете съобщенията", diff --git a/packages/i18n/src/locales/bs.i18n.json b/packages/i18n/src/locales/bs.i18n.json index b762f784f92e..c0a14e86d2b2 100644 --- a/packages/i18n/src/locales/bs.i18n.json +++ b/packages/i18n/src/locales/bs.i18n.json @@ -2062,10 +2062,6 @@ "RetentionPolicy_MaxAge": "Maksimalna dob poruka", "RetentionPolicy_Precision": "Preciznost mjerača", "RetentionPolicy_Precision_Description": "Koliko često bi trebao trajati mjerač vremena. Postavljanje na precizniju vrijednost čini kanale s brzim retencijskim vremenskim razmacima bolji, ali mogu koštati dodatnu snagu obrade u velikim zajednicama.", - "RetentionPolicy_RoomWarning": "Poruke starije od {{time}} ovdje su automatski izrezane", - "RetentionPolicy_RoomWarning_FilesOnly": "Datoteke starije od {{time}} ovdje su automatski izrezane (poruke ostaju netaknute)", - "RetentionPolicy_RoomWarning_Unpinned": "Ovdje su automatski obrezane poruke nepovezane poruke koje su starije od {{time}}", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Neotkrivene datoteke starijih od {{time}} ovdje su automatski izrezane (poruke ostaju netaknute)", "RetentionPolicyRoom_Enabled": "Automatski obrišite stare poruke", "RetentionPolicyRoom_ExcludePinned": "Izuzmite prikvačene poruke", "RetentionPolicyRoom_FilesOnly": "Spusti samo datoteke, zadržite poruke", diff --git a/packages/i18n/src/locales/ca.i18n.json b/packages/i18n/src/locales/ca.i18n.json index 8c4ac5013df4..5caecf77c620 100644 --- a/packages/i18n/src/locales/ca.i18n.json +++ b/packages/i18n/src/locales/ca.i18n.json @@ -3495,10 +3495,6 @@ "RetentionPolicy_MaxAge": "Antiguitat màxima de l'missatge", "RetentionPolicy_Precision": "Precisió del temporitzador", "RetentionPolicy_Precision_Description": "Amb quina freqüència ha de funcionar el comptador de poda. Establir això en un valor més precís fa que els canals amb temporitzadors de retenció ràpids funcionin millor, però podria costar potència de processament addicional en comunitats grans.", - "RetentionPolicy_RoomWarning": "Els missatges anteriors a {{time}} s'eliminen automàticament aquí", - "RetentionPolicy_RoomWarning_FilesOnly": "Els fitxers anteriors a {{time}} s'eliminen automàticament aquí (els missatges romanen intactes)", - "RetentionPolicy_RoomWarning_Unpinned": "Els missatges no fixats anteriors a {{time}} s'eliminaran automàticament aquí", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Els fitxers no fixats anteriors a {{time}} s'eliminen automàticament aquí (els missatges romanen intactes)", "RetentionPolicyRoom_Enabled": "Esborrar missatges antics automàticament", "RetentionPolicyRoom_ExcludePinned": "Exclou els missatges fixats", "RetentionPolicyRoom_FilesOnly": "Esborri només arxius, mantingui missatges", diff --git a/packages/i18n/src/locales/cs.i18n.json b/packages/i18n/src/locales/cs.i18n.json index 48e14e4ce412..040fd18936df 100644 --- a/packages/i18n/src/locales/cs.i18n.json +++ b/packages/i18n/src/locales/cs.i18n.json @@ -2983,10 +2983,6 @@ "RetentionPolicy_MaxAge": "Maximální stáří zprávy", "RetentionPolicy_Precision": "Přesnost časovače", "RetentionPolicy_Precision_Description": "Jak často by měl časovač pročištění spustit. Nastavením této hodnoty na přesnější hodnotu pracují kanály s rychlejšími retenčními časovači lépe, ale v případě velkých komunit by to mohlo stát další procesní výkon.", - "RetentionPolicy_RoomWarning": "Zprávy starší než {{time}} jsou zde automaticky pročištěny", - "RetentionPolicy_RoomWarning_FilesOnly": "Soubory starší než {{time}} jsou zde automaticky pročištěny (zpráv se netýká)", - "RetentionPolicy_RoomWarning_Unpinned": "Nepřipnuté zprávy starší než {{time}} jsou zde automaticky pročištěny", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Nepřipnuté soubory starší než {{time}} jsou zde automaticky pročištěny (zpráv se netýká)", "RetentionPolicyRoom_Enabled": "Automaticky pročišťovat staré zprávy", "RetentionPolicyRoom_ExcludePinned": "Vyloučit připnuté zprávy", "RetentionPolicyRoom_FilesOnly": "Pročistit pouze soubory, zprávy ponechat", diff --git a/packages/i18n/src/locales/cy.i18n.json b/packages/i18n/src/locales/cy.i18n.json index 4c251affef70..862bc0c9face 100644 --- a/packages/i18n/src/locales/cy.i18n.json +++ b/packages/i18n/src/locales/cy.i18n.json @@ -2063,10 +2063,6 @@ "RetentionPolicy_MaxAge": "Uchafswm oedran neges", "RetentionPolicy_Precision": "Precision Timer", "RetentionPolicy_Precision_Description": "Pa mor aml y dylai'r amserydd prîn redeg. Mae gosod hyn i werth mwy manwl yn gwneud sianelau gydag amseryddion cadw cyflym yn gweithio'n well, ond gallant gostio pŵer prosesu ychwanegol ar gymunedau mawr.", - "RetentionPolicy_RoomWarning": "Mae negeseuon hŷn na {{time}} yn cael eu prunedu'n awtomatig yma", - "RetentionPolicy_RoomWarning_FilesOnly": "Mae ffeiliau hŷn na {{time}} yn cael eu prunedu'n awtomatig yma (mae negeseuon yn aros yn gyfan)", - "RetentionPolicy_RoomWarning_Unpinned": "Mae negeseuon heb eu penodi yn hŷn na {{time}} yn cael eu prunedu'n awtomatig yma", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Mae ffeiliau heb eu pennu yn hŷn na {{time}} yn cael eu prunedu'n awtomatig yma (mae negeseuon yn aros yn gyfan)", "RetentionPolicyRoom_Enabled": "Gwthio hen negeseuon yn awtomatig", "RetentionPolicyRoom_ExcludePinned": "Eithrio negeseuon wedi'u pinnio", "RetentionPolicyRoom_FilesOnly": "Gwahardd ffeiliau yn unig, cadwch negeseuon", diff --git a/packages/i18n/src/locales/da.i18n.json b/packages/i18n/src/locales/da.i18n.json index cc517986cfdc..55fe42056e52 100644 --- a/packages/i18n/src/locales/da.i18n.json +++ b/packages/i18n/src/locales/da.i18n.json @@ -3083,10 +3083,6 @@ "RetentionPolicy_MaxAge": "Maksimal meddelelsesalder", "RetentionPolicy_Precision": "Timer Precision", "RetentionPolicy_Precision_Description": "Hvor ofte sletnings-timeren skal køre. Indstilling af dette til en mere præcis værdi gør kanaler med hurtige opbevarings-timere bedre, men kan koste ekstra procestid på store communities.", - "RetentionPolicy_RoomWarning": "Meddelelser ældre end {{time}} slettes automatisk her", - "RetentionPolicy_RoomWarning_FilesOnly": "Filer ældre end {{time}} beskæres automatisk her (meddelelserne forbliver intakte)", - "RetentionPolicy_RoomWarning_Unpinned": "Upinnede meddelelser ældre end {{time}} slettes automatisk her", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Unpinned filer ældre end {{time}} beskæres automatisk her (meddelelserne forbliver intakte)", "RetentionPolicyRoom_Enabled": "Beskær automatisk gamle beskeder", "RetentionPolicyRoom_ExcludePinned": "Ekskluder pinnede meddelelser", "RetentionPolicyRoom_FilesOnly": "Beskær kun filer, hold meddelelser", diff --git a/packages/i18n/src/locales/de-AT.i18n.json b/packages/i18n/src/locales/de-AT.i18n.json index 81e4d6e814b4..6d629b557af1 100644 --- a/packages/i18n/src/locales/de-AT.i18n.json +++ b/packages/i18n/src/locales/de-AT.i18n.json @@ -2071,10 +2071,6 @@ "RetentionPolicy_MaxAge": "Maximales Nachrichtenalter", "RetentionPolicy_Precision": "Timer-Präzision", "RetentionPolicy_Precision_Description": "Wie oft sollte der Prune Timer laufen? Wenn Sie dies auf einen präziseren Wert setzen, werden Kanäle mit schnellen Retention-Timern zwar besser, in großen Communities jedoch möglicherweise zusätzliche Verarbeitungsleistung.", - "RetentionPolicy_RoomWarning": "Nachrichten, die älter als {{time}} sind, werden hier automatisch gelöscht", - "RetentionPolicy_RoomWarning_FilesOnly": "Dateien älter als {{time}} werden hier automatisch bereinigt (Nachrichten bleiben erhalten)", - "RetentionPolicy_RoomWarning_Unpinned": "Nicht gepinnte Nachrichten, die älter als {{time}} sind, werden hier automatisch bereinigt", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Nicht gepinnte Dateien älter als {{time}} werden hier automatisch beschnitten (Nachrichten bleiben erhalten)", "RetentionPolicyRoom_Enabled": "Alte Nachrichten automatisch löschen", "RetentionPolicyRoom_ExcludePinned": "Pinned-Nachrichten ausschließen", "RetentionPolicyRoom_FilesOnly": "Bereinigen Sie nur Dateien, behalten Sie Nachrichten", diff --git a/packages/i18n/src/locales/de-IN.i18n.json b/packages/i18n/src/locales/de-IN.i18n.json index a5573e38e29a..32fee348394e 100644 --- a/packages/i18n/src/locales/de-IN.i18n.json +++ b/packages/i18n/src/locales/de-IN.i18n.json @@ -2352,10 +2352,6 @@ "RetentionPolicy_MaxAge": "Maximales Nachrichtenalter", "RetentionPolicy_Precision": "Timer-Präzision", "RetentionPolicy_Precision_Description": "Wie oft sollte der Prune Timer laufen? Wenn Du dies auf einen genauen Wert setzt, werden Kanäle mit schnellen Retention-Timern zwar besser, in großen Communities jedoch möglicherweise zusätzliche Verarbeitungsleistung.", - "RetentionPolicy_RoomWarning": "Nachrichten, die älter als {{time}} sind, werden hier automatisch gelöscht", - "RetentionPolicy_RoomWarning_FilesOnly": "Dateien älter als {{time}} werden hier automatisch bereinigt (Nachrichten bleiben erhalten)", - "RetentionPolicy_RoomWarning_Unpinned": "Nicht gepinnte Nachrichten, die älter als {{time}} sind, werden hier automatisch bereinigt", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Nicht gepinnte Dateien älter als {{time}} werden hier automatisch bereinigt. (Nachrichten bleiben erhalten)", "RetentionPolicyRoom_Enabled": "Alte Nachrichten automatisch löschen", "RetentionPolicyRoom_ExcludePinned": "Pinned-Nachrichten ausschließen", "RetentionPolicyRoom_FilesOnly": "Bereinige nur Dateien, behalte Nachrichten", diff --git a/packages/i18n/src/locales/de.i18n.json b/packages/i18n/src/locales/de.i18n.json index d986e9be0126..776ec6961bd9 100644 --- a/packages/i18n/src/locales/de.i18n.json +++ b/packages/i18n/src/locales/de.i18n.json @@ -3992,10 +3992,6 @@ "RetentionPolicy_MaxAge": "Maximales Nachrichtenalter", "RetentionPolicy_Precision": "Timer-Präzision", "RetentionPolicy_Precision_Description": "Wie oft sollte der Bereinigungs-Timer laufen? Wenn Sie dies auf einen präziseren Wert setzen, werden Kanäle mit schnellen Aufbewahrungs-Timern zwar besser, in großen Communitys jedoch möglicherweise zusätzliche Verarbeitungsleistung.", - "RetentionPolicy_RoomWarning": "Nachrichten, die älter als {{time}} sind, werden hier automatisch gelöscht", - "RetentionPolicy_RoomWarning_FilesOnly": "Dateien älter als {{time}} werden hier automatisch bereinigt (Nachrichten bleiben erhalten)", - "RetentionPolicy_RoomWarning_Unpinned": "Nicht angeheftete Nachrichten, die älter als {{time}} sind, werden hier automatisch bereinigt", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Nicht angeheftete Dateien älter als {{time}} werden hier automatisch bereinigt. (Nachrichten bleiben erhalten)", "RetentionPolicyRoom_Enabled": "Alte Nachrichten automatisch löschen", "RetentionPolicyRoom_ExcludePinned": "Angeheftete Nachrichten ausschließen", "RetentionPolicyRoom_FilesOnly": "Nur Dateien bereinigen, Nachrichten behalten", diff --git a/packages/i18n/src/locales/el.i18n.json b/packages/i18n/src/locales/el.i18n.json index 916c8fd1230a..935ce3be7e0f 100644 --- a/packages/i18n/src/locales/el.i18n.json +++ b/packages/i18n/src/locales/el.i18n.json @@ -2076,10 +2076,6 @@ "RetentionPolicy_MaxAge": "Μέγιστη ηλικία μηνύματος", "RetentionPolicy_Precision": "Χρονόμετρο ακρίβειας", "RetentionPolicy_Precision_Description": "Πόσο συχνά πρέπει να τρέχει ο χρονομετρητής. Η ρύθμιση αυτή σε μια πιο ακριβή τιμή καθιστά τα κανάλια με χρονοδιακόπτες γρήγορης συγκράτησης να λειτουργούν καλύτερα, αλλά μπορεί να κοστίζουν επιπλέον ισχύ επεξεργασίας σε μεγάλες κοινότητες.", - "RetentionPolicy_RoomWarning": "Τα μηνύματα μεγαλύτερα από {{time}} είναι αυτόματα κλαδεμένα εδώ", - "RetentionPolicy_RoomWarning_FilesOnly": "Αρχεία μεγαλύτερα από {{time}} είναι αυτόματα κλαδεμένα εδώ (τα μηνύματα παραμένουν άθικτα)", - "RetentionPolicy_RoomWarning_Unpinned": "Τα unpinned μηνύματα μεγαλύτερα από το {{time}} είναι αυτόματα κλαδεμένα εδώ", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Τα unpinned αρχεία μεγαλύτερα από {{time}} είναι αυτόματα κλαδεμένα εδώ (τα μηνύματα παραμένουν άθικτα)", "RetentionPolicyRoom_Enabled": "Αυτόματη περικοπή παλιών μηνυμάτων", "RetentionPolicyRoom_ExcludePinned": "Εξαιρούνται τα καρφιτσωμένα μηνύματα", "RetentionPolicyRoom_FilesOnly": "Κλαδέψτε αρχεία μόνο, κρατήστε τα μηνύματα", diff --git a/packages/i18n/src/locales/eo.i18n.json b/packages/i18n/src/locales/eo.i18n.json index d4c49a53443d..f41c951ddf48 100644 --- a/packages/i18n/src/locales/eo.i18n.json +++ b/packages/i18n/src/locales/eo.i18n.json @@ -2068,10 +2068,6 @@ "RetentionPolicy_MaxAge": "Maksimuma mesaĝo", "RetentionPolicy_Precision": "Timer Precizeco", "RetentionPolicy_Precision_Description": "Kiom ofte la pruntempa temporilo devus kuri. Fiksante ĉi tion al pli preciza valoro faras kanalojn kun rapidaj retencaj tempoj pli bone funkcii, sed povus kosti ekstra prilabor-potencon en grandaj komunumoj.", - "RetentionPolicy_RoomWarning": "Mesaĝoj pli malnovaj ol {{time}} aŭtomate pritondas ĉi tie", - "RetentionPolicy_RoomWarning_FilesOnly": "Dosieroj pli malnovaj ol {{time}} aŭtomate pruntiĝas ĉi tie (mesaĝoj restas nerompitaj)", - "RetentionPolicy_RoomWarning_Unpinned": "Senpagaj mesaĝoj pli malnovaj ol {{time}} estas aŭtomate pruntitaj ĉi tie", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Unpinned dosieroj pli malnovaj ol {{time}} estas aŭtomate pruntitaj ĉi tie (mesaĝoj restas nerompitaj)", "RetentionPolicyRoom_Enabled": "Aŭtomate prunti malnovajn mesaĝojn", "RetentionPolicyRoom_ExcludePinned": "Ekskludi kovritajn mesaĝojn", "RetentionPolicyRoom_FilesOnly": "Senpaga dosieroj nur, konservu mesaĝojn", diff --git a/packages/i18n/src/locales/es.i18n.json b/packages/i18n/src/locales/es.i18n.json index d11855fa2e0b..313ee11766bf 100644 --- a/packages/i18n/src/locales/es.i18n.json +++ b/packages/i18n/src/locales/es.i18n.json @@ -3545,10 +3545,6 @@ "RetentionPolicy_MaxAge": "Antigüedad máxima de mensaje", "RetentionPolicy_Precision": "Precisión del temporizador", "RetentionPolicy_Precision_Description": "Frecuencia con la que debe ejecutarse el temporizador de retirada. Establecer esto en un valor más preciso hace que los canales con temporizadores de retención rápidos funcionen mejor, pero podría exigir potencia de procesamiento adicional en comunidades grandes.", - "RetentionPolicy_RoomWarning": "Los mensajes anteriores a {{time}} se retiran automáticamente aquí", - "RetentionPolicy_RoomWarning_FilesOnly": "Los archivos anteriores a {{time}} se retiran automáticamente aquí (los mensajes permanecen intactos)", - "RetentionPolicy_RoomWarning_Unpinned": "Los mensajes no fijados anteriores a {{time}} se retiran automáticamente aquí", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Los archivos no fijados anteriores a {{time}} se retiran automáticamente aquí (los mensajes permanecen intactos)", "RetentionPolicyRoom_Enabled": "Retirar mensajes antiguos automáticamente", "RetentionPolicyRoom_ExcludePinned": "Excluir mensajes fijados", "RetentionPolicyRoom_FilesOnly": "Retirar solo archivos, mantener mensajes", diff --git a/packages/i18n/src/locales/fa.i18n.json b/packages/i18n/src/locales/fa.i18n.json index 64bd0a055090..206fec1f5461 100644 --- a/packages/i18n/src/locales/fa.i18n.json +++ b/packages/i18n/src/locales/fa.i18n.json @@ -2380,8 +2380,8 @@ "RetentionPolicy_MaxAge": "حداکثر سن پیام", "RetentionPolicy_Precision": "تایمر دقیق", "RetentionPolicy_Precision_Description": "هر چند وقت یکبار تایمر بره باید اجرا شود تنظیم این به یک مقدار دقیق تر باعث می شود کانال های با تایمر نگهداری سریع کار بهتر، اما ممکن است پردازش قدرت اضافی در جوامع بزرگ هزینه.", - "RetentionPolicy_RoomWarning": "پیام های قدیمی تر از%s به طور خودکار در اینجا بریده می شوند", - "RetentionPolicy_RoomWarning_Unpinned": "پیغامهای غیر مسدود شده قدیمیتر از%s به صورت خودکار در اینجا برچیده میشوند", + + "RetentionPolicyRoom_Enabled": "پیام های قدیمی را به طور خودکار خرد کنید", "RetentionPolicyRoom_ExcludePinned": "پیام های پین شده را حذف کنید", "RetentionPolicyRoom_FilesOnly": "فقط پرونده ها را ببندید، پیام ها را نگه دارید", diff --git a/packages/i18n/src/locales/fi.i18n.json b/packages/i18n/src/locales/fi.i18n.json index e994e45e87f6..0026c5199402 100644 --- a/packages/i18n/src/locales/fi.i18n.json +++ b/packages/i18n/src/locales/fi.i18n.json @@ -4071,10 +4071,6 @@ "RetentionPolicy_MaxAge": "Viestin maksimi-ikä", "RetentionPolicy_Precision": "Ajastimen tarkkuus", "RetentionPolicy_Precision_Description": "Karsinta-ajastimen suoritustiheys. Tarkan arvon määritys toimii paremmin kanavilla, joilla on nopeat säilytysajastimet, mutta käsittelyteho saattaa kärsiä suurissa yhteisöissä.", - "RetentionPolicy_RoomWarning": "Viestit, jotka ovat vanhempia kuin {{time}}, karsitaan automaattisesti tässä kohdassa", - "RetentionPolicy_RoomWarning_FilesOnly": "Tiedostot, jotka ovat vanhempia kuin {{time}}, karsitaan täällä automaattisesti (viestit säilyvät ennallaan)", - "RetentionPolicy_RoomWarning_Unpinned": "Kiinnittämättömät viestit, jotka ovat vanhempia kuin {{time}}, karsitaan automaattisesti tässä kohdassa", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Kiinnittämättömät viestit, jotka ovat vanhempia kuin {{time}}, karsitaan automaattisesti tässä (viestit säilyvät ennallaan)", "RetentionPolicyRoom_Enabled": "Karsi vanhat viestit automaattisesti", "RetentionPolicyRoom_ExcludePinned": "Älä sisällytä kiinnitettyjä viestejä", "RetentionPolicyRoom_FilesOnly": "Karsi vain tiedostot, pidä viestit", diff --git a/packages/i18n/src/locales/fr.i18n.json b/packages/i18n/src/locales/fr.i18n.json index 0343ebcf082e..b79660384677 100644 --- a/packages/i18n/src/locales/fr.i18n.json +++ b/packages/i18n/src/locales/fr.i18n.json @@ -3546,10 +3546,6 @@ "RetentionPolicy_MaxAge": "Âge maximal des messages", "RetentionPolicy_Precision": "Précision du temporisateur", "RetentionPolicy_Precision_Description": "Fréquence d'exécution du temporisateur d'élagage. Une valeur plus précise améliore le fonctionnement des canaux avec des temporisateurs de rétention rapides, mais le coût en termes de puissance de traitement peut être élevé pour les grandes communautés.", - "RetentionPolicy_RoomWarning": "Les messages plus anciens que {{time}} sont automatiquement élagués ici", - "RetentionPolicy_RoomWarning_FilesOnly": "Les fichiers plus anciens que {{time}} sont automatiquement élagués ici (les messages restent intacts)", - "RetentionPolicy_RoomWarning_Unpinned": "Les messages non épinglés plus anciens que {{time}} sont automatiquement élagués ici", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Les fichiers non épinglés plus anciens que {{time}} sont automatiquement élagués ici (les messages restent intacts)", "RetentionPolicyRoom_Enabled": "Élaguer automatiquement les anciens messages", "RetentionPolicyRoom_ExcludePinned": "Exclure les messages épinglés", "RetentionPolicyRoom_FilesOnly": "Élaguer uniquement les fichiers, conserver les messages", diff --git a/packages/i18n/src/locales/hr.i18n.json b/packages/i18n/src/locales/hr.i18n.json index 61c0c443bf9a..4d77095ef86c 100644 --- a/packages/i18n/src/locales/hr.i18n.json +++ b/packages/i18n/src/locales/hr.i18n.json @@ -2200,10 +2200,6 @@ "RetentionPolicy_MaxAge": "Maksimalna dob poruka", "RetentionPolicy_Precision": "Preciznost mjerača", "RetentionPolicy_Precision_Description": "Koliko često bi trebao trajati mjerač vremena. Postavljanje na precizniju vrijednost čini kanale s brzim retencijskim vremenskim razmacima bolji, ali mogu koštati dodatnu snagu obrade u velikim zajednicama.", - "RetentionPolicy_RoomWarning": "Poruke starije od {{time}} ovdje su automatski izrezane", - "RetentionPolicy_RoomWarning_FilesOnly": "Datoteke starije od {{time}} ovdje su automatski izrezane (poruke ostaju netaknute)", - "RetentionPolicy_RoomWarning_Unpinned": "Ovdje su automatski obrezane poruke nepovezane poruke koje su starije od {{time}}", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Neotkrivene datoteke starijih od {{time}} ovdje su automatski izrezane (poruke ostaju netaknute)", "RetentionPolicyRoom_Enabled": "Automatski obrišite stare poruke", "RetentionPolicyRoom_ExcludePinned": "Izuzmite prikvačene poruke", "RetentionPolicyRoom_FilesOnly": "Spusti samo datoteke, zadržite poruke", diff --git a/packages/i18n/src/locales/hu.i18n.json b/packages/i18n/src/locales/hu.i18n.json index b978c8991d69..141ab17ec3dc 100644 --- a/packages/i18n/src/locales/hu.i18n.json +++ b/packages/i18n/src/locales/hu.i18n.json @@ -3912,10 +3912,6 @@ "RetentionPolicy_MaxAge": "Legnagyobb üzenetéletkor", "RetentionPolicy_Precision": "Időzítő pontossága", "RetentionPolicy_Precision_Description": "Milyen gyakran kell futnia a törlési időzítőnek. Ennek egy pontosabb értékre állítása a gyors visszatartási időzítőkkel rendelkező csatornákat jobban működővé teszi, de további feldolgozási teljesítménybe kerülhet nagy közösségeknél.", - "RetentionPolicy_RoomWarning": "Itt automatikusan törölve lesznek azok az üzenetek, amelyek régebbiek mint {{time}}", - "RetentionPolicy_RoomWarning_FilesOnly": "Itt automatikusan törölve lesznek azok a fájlok, amelyek régebbiek mint {{time}} (az üzenetek érintetlenek maradnak)", - "RetentionPolicy_RoomWarning_Unpinned": "Itt automatikusan törölve lesznek azok a nem kitűzött üzenetek, amelyek régebbiek mint {{time}}", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Itt automatikusan törölve lesznek azok a nem kitűzött fájlok, amelyek régebbiek mint {{time}} (az üzenetek érintetlenek maradnak)", "RetentionPolicyRoom_Enabled": "Régi üzenetek automatikus törlése", "RetentionPolicyRoom_ExcludePinned": "Rögzített üzenetek kizárása", "RetentionPolicyRoom_FilesOnly": "Csak fájlok törlése, üzenetek megtartása", diff --git a/packages/i18n/src/locales/id.i18n.json b/packages/i18n/src/locales/id.i18n.json index 3f03ef34e316..c0a9ed50b5c1 100644 --- a/packages/i18n/src/locales/id.i18n.json +++ b/packages/i18n/src/locales/id.i18n.json @@ -2076,10 +2076,6 @@ "RetentionPolicy_MaxAge": "Umur pesan maksimum", "RetentionPolicy_Precision": "Timer Presisi", "RetentionPolicy_Precision_Description": "Seberapa sering pewaktu pemangkas harus berjalan. Menyetel ini ke nilai yang lebih tepat membuat saluran dengan penghitung waktu cepat berfungsi lebih baik, tetapi mungkin memerlukan biaya daya pemrosesan tambahan pada komunitas besar.", - "RetentionPolicy_RoomWarning": "Pesan yang lebih lama dari {{time}} secara otomatis dipangkas di sini", - "RetentionPolicy_RoomWarning_FilesOnly": "File yang lebih lama dari {{time}} secara otomatis dipangkas di sini (pesan tetap utuh)", - "RetentionPolicy_RoomWarning_Unpinned": "Pesan tidak berlabel yang lebih lama dari {{time}} secara otomatis dipangkas di sini", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "File yang tidak ditumpuk lebih lama dari {{time}} secara otomatis dipangkas di sini (pesan tetap utuh)", "RetentionPolicyRoom_Enabled": "Secara otomatis memangkas pesan lama", "RetentionPolicyRoom_ExcludePinned": "Kecualikan pesan yang disematkan", "RetentionPolicyRoom_FilesOnly": "Pangkas file saja, simpan pesan", diff --git a/packages/i18n/src/locales/it.i18n.json b/packages/i18n/src/locales/it.i18n.json index 5f01a3d39a0b..27231d8758de 100644 --- a/packages/i18n/src/locales/it.i18n.json +++ b/packages/i18n/src/locales/it.i18n.json @@ -2587,10 +2587,6 @@ "RetentionPolicy_MaxAge": "Età massima del messaggio", "RetentionPolicy_Precision": "Precisione del timer", "RetentionPolicy_Precision_Description": "Con quale frequenza deve essere eseguito il timer di sfoltimento. Impostando questo ad un valore più preciso, i canali con timer di ritenzione veloce funzionano meglio, ma potrebbero costare una maggiore potenza di elaborazione su comunità di grandi dimensioni.", - "RetentionPolicy_RoomWarning": "I messaggi più vecchi di {{time}} vengono automaticamente eliminati qui", - "RetentionPolicy_RoomWarning_FilesOnly": "I file più vecchi di {{time}} vengono automaticamente eliminati qui (i messaggi rimangono intatti)", - "RetentionPolicy_RoomWarning_Unpinned": "I messaggi non pinati più vecchi di {{time}} vengono automaticamente eliminati qui", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "I file non pinati più vecchi di {{time}} vengono automaticamente eliminati qui (i messaggi rimangono intatti)", "RetentionPolicyRoom_Enabled": "Elimina automaticamente vecchi messaggi", "RetentionPolicyRoom_ExcludePinned": "Escludere i messaggi aggiunti", "RetentionPolicyRoom_FilesOnly": "Elimina solo i file, mantieni i messaggi", diff --git a/packages/i18n/src/locales/ja.i18n.json b/packages/i18n/src/locales/ja.i18n.json index befa051e6430..6e4f98e559d7 100644 --- a/packages/i18n/src/locales/ja.i18n.json +++ b/packages/i18n/src/locales/ja.i18n.json @@ -3508,10 +3508,6 @@ "RetentionPolicy_MaxAge": "メッセージ保持日数", "RetentionPolicy_Precision": "タイマー精度", "RetentionPolicy_Precision_Description": "整理タイマーの実行頻度。これをより精密な値に設定すると、保持タイマーが高速なチャネルの動作が改善されますが、大規模コミュニティでは追加の処理能力が必要になる可能性があります。", - "RetentionPolicy_RoomWarning": "ここでは、{{time}}経過したメッセージが自動的に整理されます。", - "RetentionPolicy_RoomWarning_FilesOnly": "ここでは、{{time}}経過したファイルが自動的に整理されます(メッセージはそのまま残ります)", - "RetentionPolicy_RoomWarning_Unpinned": "ここでは、{{time}}経過した固定されていないメッセージが自動的に整理されます", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "ここでは、{{time}}経過した固定されていないファイルが自動的に整理されます(メッセージはそのまま残ります)", "RetentionPolicyRoom_Enabled": "古いメッセージを自動的に整理", "RetentionPolicyRoom_ExcludePinned": "固定されたメッセージを除外", "RetentionPolicyRoom_FilesOnly": "ファイルのみを整理し、メッセージは残す", diff --git a/packages/i18n/src/locales/ka-GE.i18n.json b/packages/i18n/src/locales/ka-GE.i18n.json index 0fc46f0672b8..bb4737d8da80 100644 --- a/packages/i18n/src/locales/ka-GE.i18n.json +++ b/packages/i18n/src/locales/ka-GE.i18n.json @@ -2782,10 +2782,6 @@ "RetentionPolicy_FilesOnly_Description": "წაიშლება მხოლოდ ფაილები,შეტყობინებები დარჩება ადგილზე", "RetentionPolicy_MaxAge": "შეტყობინების მაქსიმალური ასაკი", "RetentionPolicy_Precision": "ტაიმერის სიზუსტე", - "RetentionPolicy_RoomWarning": "{{time}}– ზე ძველი შეტყობინებები ავტომატურად აქ-შეინახება", - "RetentionPolicy_RoomWarning_FilesOnly": "{{time}}– ზე ძველი ფაილები ავტომატურად აქ ინახება(შეტყობინებები არ დაზიანდება)", - "RetentionPolicy_RoomWarning_Unpinned": "{{time}}– ზე ძველი განპინული შეტყობინებები ავტომატურად შეინახება აქ", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "{{time}}– ზე ძველი განპინული ფაილები ავტომატურად აქ ინახება(შეტყობინებები არ დაზიანდება)", "RetentionPolicyRoom_ExcludePinned": "მიმაგრებული შეტყობინებების გამორიცხვა", "RetentionPolicyRoom_MaxAge": "შეტყობინების მაქსიმალური ასაკი დღეებში(დეფაულტი:{{_max}})", "RetentionPolicyRoom_OverrideGlobal": "გადახედეთ გლობალური შენახვის წესებს", diff --git a/packages/i18n/src/locales/km.i18n.json b/packages/i18n/src/locales/km.i18n.json index 0af204615eb6..c5e92acbf2cb 100644 --- a/packages/i18n/src/locales/km.i18n.json +++ b/packages/i18n/src/locales/km.i18n.json @@ -2384,10 +2384,6 @@ "RetentionPolicy_MaxAge": "អាយុសារអតិបរមា", "RetentionPolicy_Precision": "ការបញ្ជាក់ពេលវេលា", "RetentionPolicy_Precision_Description": "រយៈពេលប៉ុន្មានដែលអ្នកល្ពៅគួរតែដំណើរការ។ ការកំណត់នេះទៅជាតម្លៃច្បាស់លាស់បន្ថែមទៀតធ្វើឱ្យឆានែលដែលមានឧបករណ៍កំណត់ពេលរក្សាទុកយ៉ាងឆាប់រហ័សដំណើរការបានល្អប៉ុន្តែវាអាចធ្វើអោយចំណាយថាមពលដំណើរការបន្ថែមលើសហគមន៍ធំ ៗ ។", - "RetentionPolicy_RoomWarning": "សារដែលចាស់ជាង {{time}} ត្រូវបានកាត់ចេញដោយស្វ័យប្រវត្តិនៅទីនេះ", - "RetentionPolicy_RoomWarning_FilesOnly": "ឯកសារចាស់ជាង {{time}} ត្រូវបានកាត់ចេញដោយស្វ័យប្រវត្តិនៅទីនេះ (សារនៅដដែល។", - "RetentionPolicy_RoomWarning_Unpinned": "សារដែលមិនបានភ្ជាប់ដែលចាស់ជាង {{time}} ត្រូវបានកាត់ចេញដោយស្វ័យប្រវត្តិនៅទីនេះ", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "ឯកសារដែលមិនបានភ្ជាប់ចាស់ជាង {{time}} ត្រូវបានកាត់ចេញដោយស្វ័យប្រវត្តិនៅទីនេះ (សារនៅដដែល។", "RetentionPolicyRoom_Enabled": "លុបសារចាស់ដោយស្វ័យប្រវត្តិ", "RetentionPolicyRoom_ExcludePinned": "មិនរាប់បញ្ចូលសារដែលបានបញ្ចូល", "RetentionPolicyRoom_FilesOnly": "លុបឯកសារតែរក្សាសារ", diff --git a/packages/i18n/src/locales/ko.i18n.json b/packages/i18n/src/locales/ko.i18n.json index d8858baa3536..1b06b8917745 100644 --- a/packages/i18n/src/locales/ko.i18n.json +++ b/packages/i18n/src/locales/ko.i18n.json @@ -3036,10 +3036,6 @@ "RetentionPolicy_MaxAge": "최대 메시지 수명", "RetentionPolicy_Precision": "타이머 정밀도", "RetentionPolicy_Precision_Description": "정리 타이머가 실행되는 빈도. 이를 보다 정확한 값으로 설정하면 빠른 보존 타이머가 있는 채널이 더 잘 작동하지만, 대규모 커뮤니티에서는 처리 능력이 추가로 필요할 수 있습니다.", - "RetentionPolicy_RoomWarning": "{{time}} 이전의 메시지는 자동으로 정리됩니다.", - "RetentionPolicy_RoomWarning_FilesOnly": "{{time}} 이전의 파일은 자동으로 정리됩니다 (메시지는 그대로 유지됩니다).", - "RetentionPolicy_RoomWarning_Unpinned": "{{time}} 이전의 고정되지 않은 메시지는 자동으로 정리됩니다.", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "{{time}} 이전의 고정되지 않은 파일은 자동으로 정리됩니다 (메시지는 그대로 유지됩니다).", "RetentionPolicyRoom_Enabled": "오래된 메시지를 자동으로 정리합니다.", "RetentionPolicyRoom_ExcludePinned": "고정된 메시지 제외", "RetentionPolicyRoom_FilesOnly": "파일만 정리하고 메시지는 보존합니다.", diff --git a/packages/i18n/src/locales/ku.i18n.json b/packages/i18n/src/locales/ku.i18n.json index 62631e48995b..be5c5028cecd 100644 --- a/packages/i18n/src/locales/ku.i18n.json +++ b/packages/i18n/src/locales/ku.i18n.json @@ -2062,11 +2062,7 @@ "RetentionPolicy_FilesOnly_Description": "Tenê pelên wê jêbirin, peyamên xwe dê di cih de bimînin.", "RetentionPolicy_MaxAge": "Mesajê herî mezintir", "RetentionPolicy_Precision": "Timer Precision", - "RetentionPolicy_Precision_Description": "Heya caran timer prune divê diçin. Sazkirina vê nirxê bêtir rastîn dike ku kanalên bi timên bêdeng yên zûtir baş dixebite, lê dibe ku li ser civakên mezin.", - "RetentionPolicy_RoomWarning": "Messages ji hêla {{time}} mezintir têne hilweşandin", - "RetentionPolicy_RoomWarning_FilesOnly": "Pelên {{time}} ji mezintir {{time}} bixweber bixweber têne kirin", - "RetentionPolicy_RoomWarning_Unpinned": "Mesajên {{time}} ji hêla bêpinned ve tê veşartin", - "RetentionPolicyRoom_Enabled": "Peyamên kevnên xwe yên otomatîk dihêle", + "RetentionPolicy_Precision_Description": "Heya caran timer prune divê diçin. Sazkirina vê nirxê bêtir rastîn dike ku kanalên bi timên bêdeng yên zûtir baş dixebite, lê dibe ku li ser civakên mezin.", "RetentionPolicyRoom_Enabled": "Peyamên kevnên xwe yên otomatîk dihêle", "RetentionPolicyRoom_ExcludePinned": "Peyamên pinned", "RetentionPolicyRoom_FilesOnly": "Pelên tenê Prune, peyamên xwe biparêzin", "RetentionPolicyRoom_MaxAge": "Di rojan de herî mezintirîn mesaj (default: {{max}})", diff --git a/packages/i18n/src/locales/lo.i18n.json b/packages/i18n/src/locales/lo.i18n.json index d17edd53be57..4bc2481ca583 100644 --- a/packages/i18n/src/locales/lo.i18n.json +++ b/packages/i18n/src/locales/lo.i18n.json @@ -2106,10 +2106,6 @@ "RetentionPolicy_MaxAge": "Age message ສູງສຸດ", "RetentionPolicy_Precision": "Timer Precision", "RetentionPolicy_Precision_Description": "ເວລາທີ່ໃຊ້ເວລາມັນຄວນໃຊ້. ການຕັ້ງຄ່ານີ້ໃຫ້ມີມູນຄ່າທີ່ຊັດເຈນຫຼາຍເຮັດໃຫ້ຊ່ອງທີ່ມີເວລາເກັບຮັກສາໄວຂຶ້ນເຮັດວຽກດີຂຶ້ນແຕ່ອາດຈະມີຄ່າໃຊ້ຈ່າຍໃນການປະມວນຜົນພິເສດໃນຊຸມຊົນຂະຫນາດໃຫຍ່.", - "RetentionPolicy_RoomWarning": "ຂໍ້ຄວາມສູງກວ່າ {{time}} ຖືກຕັດເອົາໄວ້ອັດຕະໂນມັດຢູ່ທີ່ນີ້", - "RetentionPolicy_RoomWarning_FilesOnly": "ເອກະສານທີ່ເກົ່າກວ່າ {{time}} ຖືກຕັດອອກໂດຍອັດຕະໂນມັດຢູ່ນີ້ (ຂໍ້ຄວາມທີ່ຍັງຄົງຢູ່)", - "RetentionPolicy_RoomWarning_Unpinned": "ຂໍ້ຄວາມທີ່ unpinned ຫຼາຍກວ່າ {{time}} ຖືກຕັດໂດຍອັດຕະໂນມັດຢູ່ທີ່ນີ້", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "ໄຟລ໌ Unpinned ທີ່ເກົ່າກວ່າ {{time}} ຖືກຕັດໂດຍອັດຕະໂນມັດຢູ່ບ່ອນນີ້ (ຂໍ້ຄວາມທີ່ຍັງຄົງຢູ່)", "RetentionPolicyRoom_Enabled": "ລຶບຂໍ້ຄວາມເກົ່າອັດຕະໂນມັດ", "RetentionPolicyRoom_ExcludePinned": "ຍົກເວັ້ນຂໍ້ຄວາມທີ່ມີ PINned", "RetentionPolicyRoom_FilesOnly": "ໄຟລ໌ Prune ພຽງແຕ່ເກັບຂໍ້ຄວາມ", diff --git a/packages/i18n/src/locales/lt.i18n.json b/packages/i18n/src/locales/lt.i18n.json index 31cf7b65f3e4..65c075aa66be 100644 --- a/packages/i18n/src/locales/lt.i18n.json +++ b/packages/i18n/src/locales/lt.i18n.json @@ -2123,10 +2123,6 @@ "RetentionPolicy_MaxAge": "Maksimalus pranešimo amžius", "RetentionPolicy_Precision": "Laikmatis tikslumas", "RetentionPolicy_Precision_Description": "Kaip dažnai turi būti paleidžiamas kopūstų laikrodis. Jei norite nustatyti tikslesnę reikšmę, kanalai su greitojo saugojimo laikmačiais dirba geriau, bet didelėms bendruomenėms gali būti brangesta papildoma apdorojimo galia.", - "RetentionPolicy_RoomWarning": "Pranešimai, senesni nei {{time}}, automatiškai prisegami čia", - "RetentionPolicy_RoomWarning_FilesOnly": "Failai, senesni nei {{time}}, automatiškai prisegami čia (pranešimai lieka nepakitę)", - "RetentionPolicy_RoomWarning_Unpinned": "Nepakeisti pranešimai, senesni už {{time}}, automatiškai prisegami čia", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Atskirti failai, senesni už {{time}}, automatiškai prisegami čia (pranešimai lieka nepakitę).", "RetentionPolicyRoom_Enabled": "Automatiškai sunaikinti senus pranešimus", "RetentionPolicyRoom_ExcludePinned": "Išskirti prisegtus pranešimus", "RetentionPolicyRoom_FilesOnly": "Prune tik failus, saugo pranešimus", diff --git a/packages/i18n/src/locales/lv.i18n.json b/packages/i18n/src/locales/lv.i18n.json index 97857c9c7bfd..b06459434ffa 100644 --- a/packages/i18n/src/locales/lv.i18n.json +++ b/packages/i18n/src/locales/lv.i18n.json @@ -2081,10 +2081,6 @@ "RetentionPolicy_MaxAge": "Maksimālais ziņojumu vecums", "RetentionPolicy_Precision": "Taimera precizitāte", "RetentionPolicy_Precision_Description": "Cik bieži ir apgriešanas taimerim būtu jādarbojas? Iestatot to precīzāku ar vērtību, kanāli ar ātru saglabāšanas taimeri darbojas labāk, taču lielām grupām tas var prasīt vairāk apstrādes jaudas.", - "RetentionPolicy_RoomWarning": "Vēstules, kas ir vecākas par {{time}}, tiek automātiski apgrieztas šeit", - "RetentionPolicy_RoomWarning_FilesOnly": "Faili, kas vecāki par {{time}}, tiek automātiski apgriezti šeit (ziņojumi paliek neskarti)", - "RetentionPolicy_RoomWarning_Unpinned": "Nepiespraustie ziņojumi, kas vecāki par {{time}}, tiek automātiski apgriezti šeit", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Nepiespraustie faili, kas ir vecāki par {{time}}, tiek automātiski apgriezti šeit (ziņojumi paliek neskarti)", "RetentionPolicyRoom_Enabled": "Automātiski apgriež vecās ziņas", "RetentionPolicyRoom_ExcludePinned": "Izslēgt piespraustos ziņojumus", "RetentionPolicyRoom_FilesOnly": "Apgriezt tikai failus, saglabāt ziņojumus", diff --git a/packages/i18n/src/locales/mn.i18n.json b/packages/i18n/src/locales/mn.i18n.json index e37d0b090302..757fe0d9c356 100644 --- a/packages/i18n/src/locales/mn.i18n.json +++ b/packages/i18n/src/locales/mn.i18n.json @@ -2063,10 +2063,6 @@ "RetentionPolicy_MaxAge": "Мессежний хамгийн их нас", "RetentionPolicy_Precision": "Таймер Нарийвчлал", "RetentionPolicy_Precision_Description": "Пресс хийх хугацаа хэр их байх ёстой. Үүнийг илүү нарийвчлалтайгаар тогтоох нь түргэн хугацаанд хадгалах сувгууд нь илүү сайн ажиллана, гэхдээ томоохон бүлгүүдэд илүү их боловсруулах хүчин чадал шаарддаг.", - "RetentionPolicy_RoomWarning": "{{time}}-с хуучин мессежүүд автоматаар таслагдсан байна", - "RetentionPolicy_RoomWarning_FilesOnly": "{{time}}-с хуучин файлууд нь автоматаар уншсан (зурвасууд бүрэн бүтэн байна)", - "RetentionPolicy_RoomWarning_Unpinned": "{{time}}-ээс хуучин зурвасууд автоматаар таслагдсан байна", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "{{time}}-ээс хуучин файлууд нь автоматаар уншсан (зурвасууд бүрэн бүтэн байна)", "RetentionPolicyRoom_Enabled": "Хуучин зурвасуудыг автоматаар болгоно", "RetentionPolicyRoom_ExcludePinned": "Тэмдэглэсэн зурвасуудыг хасна уу", "RetentionPolicyRoom_FilesOnly": "Зөвхөн файлын файлууд, мессежүүдийг хадгал", diff --git a/packages/i18n/src/locales/ms-MY.i18n.json b/packages/i18n/src/locales/ms-MY.i18n.json index 399199b71140..aa8142905ec8 100644 --- a/packages/i18n/src/locales/ms-MY.i18n.json +++ b/packages/i18n/src/locales/ms-MY.i18n.json @@ -2075,10 +2075,6 @@ "RetentionPolicy_MaxAge": "Umur mesej maksimum", "RetentionPolicy_Precision": "Ketepatan pemasa", "RetentionPolicy_Precision_Description": "Berapa kerap pemasa prune perlu dijalankan. Menetapkan ini ke nilai yang lebih tepat menjadikan saluran dengan pemasa cepat pemasa berfungsi dengan lebih baik, tetapi mungkin memerlukan kuasa pemprosesan tambahan pada komuniti besar.", - "RetentionPolicy_RoomWarning": "Mesej yang lebih lama daripada {{time}} secara automatik dipangkas di sini", - "RetentionPolicy_RoomWarning_FilesOnly": "Fail lebih tua daripada {{time}} secara automatik dipangkas di sini (mesej tetap utuh)", - "RetentionPolicy_RoomWarning_Unpinned": "Mesej yang disipan lebih lama daripada {{time}} secara automatik dipangkas di sini", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Fail yang disandarkan lebih lama daripada {{time}} secara automatik dipangkas di sini (mesej tetap utuh)", "RetentionPolicyRoom_Enabled": "Buang mesej lama secara automatik", "RetentionPolicyRoom_ExcludePinned": "Kecualikan mesej yang disematkan", "RetentionPolicyRoom_FilesOnly": "Fail prune sahaja, simpan mesej", diff --git a/packages/i18n/src/locales/nl.i18n.json b/packages/i18n/src/locales/nl.i18n.json index d728696db8ef..5f14ee05179f 100644 --- a/packages/i18n/src/locales/nl.i18n.json +++ b/packages/i18n/src/locales/nl.i18n.json @@ -3536,10 +3536,6 @@ "RetentionPolicy_MaxAge": "Maximale berichtleeftijd", "RetentionPolicy_Precision": "Timer precisie", "RetentionPolicy_Precision_Description": "Hoe vaak de prune-timer moet worden uitgevoerd. Als u dit instelt op een nauwkeurigere waarde, werken kanalen met snelle retentietimers beter, maar kan dit extra verwerkingskracht kosten voor grote gemeenschappen.", - "RetentionPolicy_RoomWarning": "Berichten ouder dan {{time}} worden hier automatisch gesnoeid", - "RetentionPolicy_RoomWarning_FilesOnly": "Bestanden ouder dan {{time}} worden hier automatisch gesnoeid (berichten blijven intact)", - "RetentionPolicy_RoomWarning_Unpinned": "Niet-vastgezette berichten ouder dan {{time}} worden hier automatisch gesnoeid", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Niet-vastgezette bestanden ouder dan {{time}} worden hier automatisch gesnoeid (berichten blijven intact)", "RetentionPolicyRoom_Enabled": "Oude berichten automatisch snoeien", "RetentionPolicyRoom_ExcludePinned": "Sluit vastgezette berichten uit", "RetentionPolicyRoom_FilesOnly": "Alleen bestanden snoeien, berichten bewaren", diff --git a/packages/i18n/src/locales/no.i18n.json b/packages/i18n/src/locales/no.i18n.json index 45e3965e998d..442a4bc68284 100644 --- a/packages/i18n/src/locales/no.i18n.json +++ b/packages/i18n/src/locales/no.i18n.json @@ -3467,10 +3467,6 @@ "RetentionPolicy_MaxAge": "Maksimal meldingsalder", "RetentionPolicy_Precision": "Timer Precision", "RetentionPolicy_Precision_Description": "Hvor ofte prune timer skal løpe. Innstilling av dette til en mer presis verdi gjør at kanaler med raske retensjonstidtakere fungerer bedre, men kan koste ekstra prosessorkraft på store lokalsamfunn.", - "RetentionPolicy_RoomWarning": "Meldinger som er eldre enn {{time}} blir automatisk beskåret her", - "RetentionPolicy_RoomWarning_FilesOnly": "Filer eldre enn {{time}} blir automatisk beskjært her (meldingene forblir intakte)", - "RetentionPolicy_RoomWarning_Unpinned": "Unpinned meldinger eldre enn {{time}} blir automatisk beskåret her", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Unpinned filer eldre enn {{time}} blir automatisk beskåret her (meldingene forblir intakte)", "RetentionPolicyRoom_Enabled": "Beskjær automatisk gamle meldinger", "RetentionPolicyRoom_ExcludePinned": "Ekskluder pinnede meldinger", "RetentionPolicyRoom_FilesOnly": "Bare beskjyll filer, hold beskjeder", diff --git a/packages/i18n/src/locales/pl.i18n.json b/packages/i18n/src/locales/pl.i18n.json index 97240fbcb204..6f504619f8ce 100644 --- a/packages/i18n/src/locales/pl.i18n.json +++ b/packages/i18n/src/locales/pl.i18n.json @@ -3858,10 +3858,6 @@ "RetentionPolicy_MaxAge": "Maksymalny wiek wiadomości", "RetentionPolicy_Precision": "Precyzja zegara", "RetentionPolicy_Precision_Description": "Jak często powinien działać timer przycinania. Ustawienie tej wartości na bardziej precyzyjną powoduje, że kanały z szybkimi licznikami czasu przechowywania działają lepiej, ale mogą kosztować dodatkową moc obliczeniową w dużych społecznościach.", - "RetentionPolicy_RoomWarning": "Wiadomości starsze niż {{time}} są tutaj automatycznie przycinane", - "RetentionPolicy_RoomWarning_FilesOnly": "Pliki starsze niż {{time}} są automatycznie przycinane tutaj (wiadomości pozostają nienaruszone)", - "RetentionPolicy_RoomWarning_Unpinned": "Odpinane wiadomości starsze niż {{time}} są tutaj automatycznie przycinane", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Odpinane pliki starsze niż {{time}} są automatycznie przycinane tutaj (wiadomości pozostają nienaruszone)", "RetentionPolicyRoom_Enabled": "Automatycznie usuwaj stare wiadomości", "RetentionPolicyRoom_ExcludePinned": "Wyklucz podpięte wiadomości", "RetentionPolicyRoom_FilesOnly": "Przycinaj tylko pliki, zachowaj wiadomości", diff --git a/packages/i18n/src/locales/pt-BR.i18n.json b/packages/i18n/src/locales/pt-BR.i18n.json index 70c9496d44e4..ce98362e9d40 100644 --- a/packages/i18n/src/locales/pt-BR.i18n.json +++ b/packages/i18n/src/locales/pt-BR.i18n.json @@ -3638,10 +3638,6 @@ "RetentionPolicy_MaxAge": "A idade máxima da mensagem", "RetentionPolicy_Precision": "Precisão do temporizador", "RetentionPolicy_Precision_Description": "Quantas vezes o temporizador de remoção deve ser executado. Configurar um valor mais preciso faz com que os canais com temporizadores de retenção rápidos funcionem melhor, mas podem usar mais potência de processamento em grandes comunidades.", - "RetentionPolicy_RoomWarning": "Mensagens mais antigas que {{time}} serão automaticamente removidas daqui", - "RetentionPolicy_RoomWarning_FilesOnly": "Arquivos anteriores a {{time}} serão removidos automaticamente daqui (as mensagens permanecerão intactas)", - "RetentionPolicy_RoomWarning_Unpinned": "Mensagens não fixadas anteriores a {{time}} serão automaticamente removidas daqui", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Arquivos não fixados anteriores a {{time}} serão removidos automaticamente daqui (as mensagens permanecerão intactas)", "RetentionPolicyRoom_Enabled": "Remover automaticamente mensagens antigas", "RetentionPolicyRoom_ExcludePinned": "Excluir mensagens fixas", "RetentionPolicyRoom_FilesOnly": "Remover apenas arquivos, manter as mensagens", diff --git a/packages/i18n/src/locales/pt.i18n.json b/packages/i18n/src/locales/pt.i18n.json index 3d9a30a7e35a..2bc58d7fc19c 100644 --- a/packages/i18n/src/locales/pt.i18n.json +++ b/packages/i18n/src/locales/pt.i18n.json @@ -2404,10 +2404,6 @@ "RetentionPolicy_MaxAge": "A idade máxima da mensagem", "RetentionPolicy_Precision": "Precisão do temporizador", "RetentionPolicy_Precision_Description": "Quantas vezes o temporizador de remoção deve ser executado. Configurar isso para um valor mais preciso faz com que os canais com temporizadores de retenção rápidos funcionem melhor, mas podem custar um poder de processamento extra em grandes comunidades.", - "RetentionPolicy_RoomWarning": "Mensagens mais antigas que {{time}} são automaticamente removidas aqui", - "RetentionPolicy_RoomWarning_FilesOnly": "Arquivos mais antigos que {{time}} são removidos automaticamente aqui (as mensagens permanecem intactas)", - "RetentionPolicy_RoomWarning_Unpinned": "Mensagens soltas mais antigas que {{time}} são automaticamente removidas aqui", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Arquivos desafinados mais antigos que {{time}} são removidos automaticamente aqui (as mensagens permanecem intactas)", "RetentionPolicyRoom_Enabled": "Remover automaticamente mensagens antigas", "RetentionPolicyRoom_ExcludePinned": "Excluir mensagens fixas", "RetentionPolicyRoom_FilesOnly": "Remover apenas arquivos, mantenha mensagens", diff --git a/packages/i18n/src/locales/ro.i18n.json b/packages/i18n/src/locales/ro.i18n.json index 8c80df9b793f..2b5dcac528b0 100644 --- a/packages/i18n/src/locales/ro.i18n.json +++ b/packages/i18n/src/locales/ro.i18n.json @@ -2067,10 +2067,6 @@ "RetentionPolicy_MaxAge": "Vârsta maximă a mesajului", "RetentionPolicy_Precision": "Timp de precizie", "RetentionPolicy_Precision_Description": "Cât de des ar trebui să ruleze cronometrul pentru prune. Setarea acestei valori la o valoare mai precisă face ca canalele cu cronometre rapide să funcționeze mai bine, dar ar putea costa putere suplimentară de procesare pentru comunitățile mari.", - "RetentionPolicy_RoomWarning": "Mesajele mai vechi decât {{time}} sunt tăiate automat aici", - "RetentionPolicy_RoomWarning_FilesOnly": "Fișiere mai vechi de {{time}} sunt în mod automat tăiate aici (mesajele rămân intacte)", - "RetentionPolicy_RoomWarning_Unpinned": "Mesajele neacoperite mai vechi de {{time}} sunt tăiate automat aici", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Fișierele fixate mai sus decât {{time}} sunt tăiate automat aici (mesajele rămân intacte)", "RetentionPolicyRoom_Enabled": "Trasați automat mesajele vechi", "RetentionPolicyRoom_ExcludePinned": "Excludeți mesajele fixate", "RetentionPolicyRoom_FilesOnly": "Prune numai fișierele, păstrează mesajele", diff --git a/packages/i18n/src/locales/ru.i18n.json b/packages/i18n/src/locales/ru.i18n.json index 6a71f68572c3..56d72c4aa524 100644 --- a/packages/i18n/src/locales/ru.i18n.json +++ b/packages/i18n/src/locales/ru.i18n.json @@ -3711,10 +3711,6 @@ "RetentionPolicy_MaxAge": "Максимальное время жизни сообщений", "RetentionPolicy_Precision": "Точность таймера", "RetentionPolicy_Precision_Description": "Как часто должен запускаться таймер очистки. Установка этих значений позволяет каналам с более частыми таймерами очистки сообщений работать лучше, но может стоить дополнительных вычислительных мощностей на больших сообществах.", - "RetentionPolicy_RoomWarning": "Сообщения в этой комнате удаляются через {{time}}.", - "RetentionPolicy_RoomWarning_FilesOnly": "Файлы старше {{time}} в этой комнате автоматически удаляются. (сообщения остаются незатронутыми)", - "RetentionPolicy_RoomWarning_Unpinned": "Незакрепленные сообщения в этой комнате удаляются через {{time}}.", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Незакрепленные файлы старше {{time}} в этой комнате автоматически удаляются. (сообщения остаются незатронутыми)", "RetentionPolicyRoom_Enabled": "Автоматически удалять старые сообщения", "RetentionPolicyRoom_ExcludePinned": "Исключить закрепленные сообщения", "RetentionPolicyRoom_FilesOnly": "Удалять только файлы, сохранять сообщения", diff --git a/packages/i18n/src/locales/sk-SK.i18n.json b/packages/i18n/src/locales/sk-SK.i18n.json index ed4a68d97b24..13a823eb8bbc 100644 --- a/packages/i18n/src/locales/sk-SK.i18n.json +++ b/packages/i18n/src/locales/sk-SK.i18n.json @@ -2077,10 +2077,6 @@ "RetentionPolicy_MaxAge": "Maximálny vek správy", "RetentionPolicy_Precision": "Timer Precision", "RetentionPolicy_Precision_Description": "Ako často by mal spustiť časovač prerezávanie. Nastavenie tejto hodnoty na presnejšiu hodnotu umožňuje, aby kanály s rýchlymi retenčnými časovačmi fungovali lepšie, ale mohlo by to zapríčiniť mimoriadny výkon spracovania veľkých spoločenstiev.", - "RetentionPolicy_RoomWarning": "Správy staršie ako {{time}} sú automaticky prerezané tu", - "RetentionPolicy_RoomWarning_FilesOnly": "Súbory staršie ako {{time}} sú automaticky prerezané tu (správy zostanú neporušené)", - "RetentionPolicy_RoomWarning_Unpinned": "Zrušené správy staršie ako {{time}} sú automaticky prerezané tu", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Neopravené súbory staršie ako {{time}} sú automaticky prerezané tu (správy zostanú neporušené)", "RetentionPolicyRoom_Enabled": "Automaticky prerezávať staré správy", "RetentionPolicyRoom_ExcludePinned": "Vylúčte pripnuté správy", "RetentionPolicyRoom_FilesOnly": "Zrušte iba súbory, uložte správy", diff --git a/packages/i18n/src/locales/sl-SI.i18n.json b/packages/i18n/src/locales/sl-SI.i18n.json index 407d5b384545..bb17e5cbee1e 100644 --- a/packages/i18n/src/locales/sl-SI.i18n.json +++ b/packages/i18n/src/locales/sl-SI.i18n.json @@ -2057,10 +2057,6 @@ "RetentionPolicy_MaxAge": "Najvišja starost sporočila", "RetentionPolicy_Precision": "Časovna natančnost", "RetentionPolicy_Precision_Description": "Kako pogosto naj se izvaja časovni rezalnik. Če nastavite to na natančnejšo vrednost, postanejo kanali z hitrimi časovnimi časi boljši, vendar pa lahko pri večjih skupnostih stanejo dodatna procesna moč.", - "RetentionPolicy_RoomWarning": "Sporočila, starejša od {{time}}, so samodejno obrezana tukaj", - "RetentionPolicy_RoomWarning_FilesOnly": "Datoteke, starejše od {{time}}, so samodejno obrezane tukaj (sporočila ostanejo nedotaknjena)", - "RetentionPolicy_RoomWarning_Unpinned": "Neodgovorjena sporočila, starejša od {{time}}, so samodejno obrezana tukaj", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Neodločene datoteke, starejše od {{time}}, so samodejno obrezane tukaj (sporočila ostanejo nedotaknjena)", "RetentionPolicyRoom_Enabled": "Samodejno obrezovanje starih sporočil", "RetentionPolicyRoom_ExcludePinned": "Izključi prepovedana sporočila", "RetentionPolicyRoom_FilesOnly": "Samo poševne datoteke, obdržite sporočila", diff --git a/packages/i18n/src/locales/sq.i18n.json b/packages/i18n/src/locales/sq.i18n.json index c74d6e414f52..00a6b35d8a83 100644 --- a/packages/i18n/src/locales/sq.i18n.json +++ b/packages/i18n/src/locales/sq.i18n.json @@ -2067,10 +2067,6 @@ "RetentionPolicy_MaxAge": "Mosha maksimale e mesazhit", "RetentionPolicy_Precision": "Timer Precision", "RetentionPolicy_Precision_Description": "Sa shpesh koha duhet të funksionojë. Vendosja e kësaj me një vlerë më të saktë bën që kanalet me kohëmatësi të mbajtjes së shpejtë të funksionojnë më mirë, por mund të kushtojnë energji shtesë për përpunim në komunitetet e mëdha.", - "RetentionPolicy_RoomWarning": "Mesazhet më të vjetra se {{time}} shkurtohen automatikisht këtu", - "RetentionPolicy_RoomWarning_FilesOnly": "Dosjet më të vjetra se {{time}} janë shkurtuar automatikisht këtu (mesazhet mbeten të paprekura)", - "RetentionPolicy_RoomWarning_Unpinned": "Mesazhet e pambuluara më të vjetra se {{time}} shkurtohen automatikisht këtu", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Skedarët e çaktivizuar më të vjetër se {{time}} janë shkurtuar automatikisht këtu (mesazhet mbeten të paprekura)", "RetentionPolicyRoom_Enabled": "Automatikisht prishi mesazhet e vjetra", "RetentionPolicyRoom_ExcludePinned": "Përjashto mesazhet e mbështetura", "RetentionPolicyRoom_FilesOnly": "Prune vetëm fotografi, mbani mesazhe", diff --git a/packages/i18n/src/locales/sr.i18n.json b/packages/i18n/src/locales/sr.i18n.json index ba5bcceff14b..f02efa3acd54 100644 --- a/packages/i18n/src/locales/sr.i18n.json +++ b/packages/i18n/src/locales/sr.i18n.json @@ -1901,10 +1901,6 @@ "RetentionPolicy_MaxAge": "Максимална старост поруке", "RetentionPolicy_Precision": "Тимер Прецисион", "RetentionPolicy_Precision_Description": "Колико често би требало да се покрене тимер за резање. Постављањем ове на прецизну вриједност чини канале са брзим временским задржавањем боље функционирати, али би могла да коштају додатну моћ процесирања на великим заједницама.", - "RetentionPolicy_RoomWarning": "Порука старија од {{time}} аутоматски се обрезује овде", - "RetentionPolicy_RoomWarning_FilesOnly": "Датотеке старије од {{time}} су аутоматски обрезане овде (поруке остају нетакнуте)", - "RetentionPolicy_RoomWarning_Unpinned": "Неупозорене поруке старије од {{time}} аутоматски се обрезују овдје", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Неупуцене датотеке старије од {{time}} аутоматски су обрезане овде (поруке остају нетакнуте)", "RetentionPolicyRoom_Enabled": "Аутоматски пребрисати старе поруке", "RetentionPolicyRoom_ExcludePinned": "Искључите закачене поруке", "RetentionPolicyRoom_FilesOnly": "Обриши само датотеке, остави поруке", diff --git a/packages/i18n/src/locales/sv.i18n.json b/packages/i18n/src/locales/sv.i18n.json index 49febc00c9b8..1c673b1af2c5 100644 --- a/packages/i18n/src/locales/sv.i18n.json +++ b/packages/i18n/src/locales/sv.i18n.json @@ -4082,10 +4082,6 @@ "RetentionPolicy_MaxAge": "Maximal meddelandeålder", "RetentionPolicy_Precision": "Precision för timer", "RetentionPolicy_Precision_Description": "Hur ofta timern för gallring ska köras. Om du ställer in det här på ett mer exakt värde fungerar kanaler med snabba timers bättre, men det kan kosta extra processorkraft i stora communities.", - "RetentionPolicy_RoomWarning": "Meddelanden som är äldre än {{time}} gallras automatiskt här", - "RetentionPolicy_RoomWarning_FilesOnly": "Filer som är äldre än {{time}} gallras automatiskt här (meddelandena är intakta)", - "RetentionPolicy_RoomWarning_Unpinned": "Ej pinnade meddelanden äldre än {{time}} gallras automatiskt här", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Ej pinnade filer äldre än {{time}} gallras automatiskt här (meddelandena är intakta)", "RetentionPolicyRoom_Enabled": "Gallra automatiskt gamla meddelanden", "RetentionPolicyRoom_ExcludePinned": "Exkludera pinnade meddelanden", "RetentionPolicyRoom_FilesOnly": "Gallra bara filer, behåll meddelanden", diff --git a/packages/i18n/src/locales/ta-IN.i18n.json b/packages/i18n/src/locales/ta-IN.i18n.json index 0f4e8157d75b..9107ee1e26c3 100644 --- a/packages/i18n/src/locales/ta-IN.i18n.json +++ b/packages/i18n/src/locales/ta-IN.i18n.json @@ -2068,10 +2068,6 @@ "RetentionPolicy_MaxAge": "அதிகபட்ச செய்தி வயது", "RetentionPolicy_Precision": "டைமர் துல்லியம்", "RetentionPolicy_Precision_Description": "எப்படி அடிக்கடி கிள்ளுதல் டைமர் இயக்க வேண்டும். இது மிகவும் துல்லியமான மதிப்பை அமைப்பதன் மூலம் வேகமாக தக்கவைத்துக்கொள்ளும் நேரத்தை கொண்ட சேனல்கள் சிறப்பாக செயல்படுகின்றன, ஆனால் பெரிய சமூகங்களில் கூடுதல் செயலாக்க சக்தி செலவாகும்.", - "RetentionPolicy_RoomWarning": "{{time}} க்கும் மேற்பட்ட செய்திகள் தானாகவே சீரமைக்கப்படும்", - "RetentionPolicy_RoomWarning_FilesOnly": "{{time}} க்கும் பழைய கோப்புகள் தானாகவே சீரமைக்கப்படுகின்றன (செய்திகளை அப்படியே இருக்கவும்)", - "RetentionPolicy_RoomWarning_Unpinned": "{{time}} க்கும் பழையது மறுபெயரிடப்பட்ட செய்திகள் தானாகவே இங்கே சீரமைக்கப்படுகின்றன", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "{{time}} க்கும் பழையது பொருத்தப்படாத கோப்புகள் தானாகவே இங்கே சீரமைக்கப்படுகின்றன (செய்திகளை அப்படியே இருக்கவும்)", "RetentionPolicyRoom_Enabled": "பழைய செய்திகளை தானாக கிள்ளுகிறேன்", "RetentionPolicyRoom_ExcludePinned": "பின் செய்திகளை விலக்கவும்", "RetentionPolicyRoom_FilesOnly": "கோப்புகளை மட்டும் ப்ரூனே செய்யுங்கள், செய்திகளை வைத்திருக்கவும்", diff --git a/packages/i18n/src/locales/th-TH.i18n.json b/packages/i18n/src/locales/th-TH.i18n.json index 3f2da8e71594..d22a87659fa9 100644 --- a/packages/i18n/src/locales/th-TH.i18n.json +++ b/packages/i18n/src/locales/th-TH.i18n.json @@ -2061,10 +2061,6 @@ "RetentionPolicy_MaxAge": "อายุข้อความสูงสุด", "RetentionPolicy_Precision": "จับเวลาแม่นยำ", "RetentionPolicy_Precision_Description": "ควรจับเวลาลูกพรุนบ่อยแค่ไหน การตั้งค่านี้เป็นค่าที่แม่นยำยิ่งขึ้นทำให้ช่องที่มีตัวจับเวลาการเก็บรักษาอย่างรวดเร็วทำงานได้ดีขึ้น แต่อาจมีค่าใช้จ่ายเพิ่มขึ้นในชุมชนขนาดใหญ่", - "RetentionPolicy_RoomWarning": "ข้อความที่เก่ากว่า {{time}} จะถูกตัดแต่งโดยอัตโนมัติที่นี่", - "RetentionPolicy_RoomWarning_FilesOnly": "ไฟล์เก่ากว่า {{time}} จะถูกตัดแต่งโดยอัตโนมัติที่นี่ (ข้อความยังคงอยู่)", - "RetentionPolicy_RoomWarning_Unpinned": "ข้อความที่ไม่ได้รับการพักที่เก่ากว่า {{time}} จะถูกตัดแต่งโดยอัตโนมัติที่นี่", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "ไฟล์ที่ยกเลิกการปักหมุดที่เก่ากว่า {{time}} จะถูกตัดแต่งโดยอัตโนมัติที่นี่ (ข้อความยังคงอยู่)", "RetentionPolicyRoom_Enabled": "ตัดค่าข้อความเก่าโดยอัตโนมัติ", "RetentionPolicyRoom_ExcludePinned": "ไม่รวมข้อความตรึง", "RetentionPolicyRoom_FilesOnly": "Prune ไฟล์เท่านั้นเก็บข้อความ", diff --git a/packages/i18n/src/locales/tr.i18n.json b/packages/i18n/src/locales/tr.i18n.json index a8f99e52e7a8..7b6c78d1cbda 100644 --- a/packages/i18n/src/locales/tr.i18n.json +++ b/packages/i18n/src/locales/tr.i18n.json @@ -2466,10 +2466,6 @@ "RetentionPolicy_MaxAge": "Maksimum ileti yaşı", "RetentionPolicy_Precision": "Zamanlayıcı Hassasiyeti", "RetentionPolicy_Precision_Description": "Budama zamanlayıcı kaç kez çalıştırılmalıdır. Bunu daha hassas bir değere ayarlamak, hızlı saklama zamanlayıcılarına sahip kanalların daha iyi çalışmasını sağlar, ancak büyük topluluklarda ekstra işlem gücüne mal olabilir.", - "RetentionPolicy_RoomWarning": "{{time}}'den eski mesajlar otomatik olarak budanır", - "RetentionPolicy_RoomWarning_FilesOnly": "{{time}}'den eski dosyalar otomatik olarak budanır (mesajlar bozulmadan kalır)", - "RetentionPolicy_RoomWarning_Unpinned": "{{time}}'den eski sabit olmayan iletiler burada otomatik olarak budanır", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "{{time}}'den büyük olan sabitlenmemiş dosyalar otomatik olarak budanır (iletiler bozulmadan kalır)", "RetentionPolicyRoom_Enabled": "Eski iletileri otomatik olarak buda", "RetentionPolicyRoom_ExcludePinned": "Sabitlenmiş iletileri dışında tut", "RetentionPolicyRoom_FilesOnly": "Yalnızca dosyaları buda, iletileri koru", diff --git a/packages/i18n/src/locales/uk.i18n.json b/packages/i18n/src/locales/uk.i18n.json index 758a10b90555..572401cc2bf7 100644 --- a/packages/i18n/src/locales/uk.i18n.json +++ b/packages/i18n/src/locales/uk.i18n.json @@ -2604,10 +2604,6 @@ "RetentionPolicy_MaxAge": "Максимальний вік повідомлення", "RetentionPolicy_Precision": "Таймер точності", "RetentionPolicy_Precision_Description": "Як часто слід запускати таймер шкури. Якщо встановити це значення на більш точне значення, канали з таймерами швидкого утримання працюватимуть краще, однак вони можуть призвести до додаткової потужності обробки великих спільнот.", - "RetentionPolicy_RoomWarning": "Повідомлення, що перевищують {{time}}, автоматично скорочуються тут", - "RetentionPolicy_RoomWarning_FilesOnly": "Файли старіші ніж {{time}} автоматично обрізаються тут (повідомлення залишаються недоторканими)", - "RetentionPolicy_RoomWarning_Unpinned": "Відкріплені повідомлення старші за {{time}} автоматично обрізаються тут", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Розпаковані файли старіші ніж {{time}} автоматично обрізаються тут (повідомлення залишаються недоступними)", "RetentionPolicyRoom_Enabled": "Автоматично обрізати старі повідомлення", "RetentionPolicyRoom_ExcludePinned": "Виключити закріплені повідомлення", "RetentionPolicyRoom_FilesOnly": "Збригайте лише файли, зберігайте повідомлення", diff --git a/packages/i18n/src/locales/vi-VN.i18n.json b/packages/i18n/src/locales/vi-VN.i18n.json index 2f11927a2baf..1bfee9a0e7d7 100644 --- a/packages/i18n/src/locales/vi-VN.i18n.json +++ b/packages/i18n/src/locales/vi-VN.i18n.json @@ -2168,10 +2168,6 @@ "RetentionPolicy_MaxAge": "Độ tuổi tin nhắn tối đa", "RetentionPolicy_Precision": "Hẹn giờ chính xác", "RetentionPolicy_Precision_Description": "Tần suất bộ đếm thời gian prune sẽ chạy. Đặt giá trị này thành giá trị chính xác hơn giúp kênh có bộ hẹn giờ lưu trữ nhanh hoạt động tốt hơn, nhưng có thể tốn thêm sức mạnh xử lý trên các cộng đồng lớn.", - "RetentionPolicy_RoomWarning": "Thư cũ hơn {{time}} được tự động cắt xén tại đây", - "RetentionPolicy_RoomWarning_FilesOnly": "Các tệp cũ hơn {{time}} được tự động cắt bớt ở đây (thư vẫn nguyên vẹn)", - "RetentionPolicy_RoomWarning_Unpinned": "Các thư được bỏ ghim cũ hơn {{time}} được tự động cắt xén ở đây", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "Các tệp được bỏ ghim cũ hơn {{time}} được tự động cắt bớt ở đây (thư vẫn nguyên vẹn)", "RetentionPolicyRoom_Enabled": "Tự động cắt bớt các tin nhắn cũ", "RetentionPolicyRoom_ExcludePinned": "Loại trừ các thư đã ghim", "RetentionPolicyRoom_FilesOnly": "Chỉ tập tin Prune, giữ tin nhắn", diff --git a/packages/i18n/src/locales/zh-HK.i18n.json b/packages/i18n/src/locales/zh-HK.i18n.json index 5d4087ead2b4..ef00dac8c9ac 100644 --- a/packages/i18n/src/locales/zh-HK.i18n.json +++ b/packages/i18n/src/locales/zh-HK.i18n.json @@ -2092,7 +2092,7 @@ "RetentionPolicy_MaxAge": "最大邮件年龄", "RetentionPolicy_Precision": "定时精度", "RetentionPolicy_Precision_Description": "修剪计时器应该多久运行一次。将此设置为更精确的值会使具有快速保留计时器的通道更好地工作,但可能会对大型社区造成额外的处理能力。", - "RetentionPolicy_RoomWarning": "超过 {{time}} 的邮件会在此处自动删除", + "RetentionPolicyRoom_Enabled": "自动修剪旧邮件", "RetentionPolicyRoom_ExcludePinned": "排除固定消息", "RetentionPolicyRoom_FilesOnly": "仅修剪文件,保留消息", diff --git a/packages/i18n/src/locales/zh-TW.i18n.json b/packages/i18n/src/locales/zh-TW.i18n.json index 833c9f1e7561..1c0c9f4caa2e 100644 --- a/packages/i18n/src/locales/zh-TW.i18n.json +++ b/packages/i18n/src/locales/zh-TW.i18n.json @@ -3424,10 +3424,6 @@ "RetentionPolicy_MaxAge": "最大郵件年齡", "RetentionPolicy_Precision": "定時精度", "RetentionPolicy_Precision_Description": "修剪計時器應該多久運行一次。將此設置為更精確的值會使具有快速保留計時器的通道更好地工作,但可能會對大型社區造成額外的處理能力。", - "RetentionPolicy_RoomWarning": "超過 {{time}} 的郵件會在此處自動刪除", - "RetentionPolicy_RoomWarning_FilesOnly": "早於{{time}}的檔案會在這裡自動刪除(訊息保持不變)", - "RetentionPolicy_RoomWarning_Unpinned": "早於{{time}}的未固定消息會在此處自動刪除", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "早於{{time}}的未固定檔案會在此處自動刪除(郵件保持不變)", "RetentionPolicyRoom_Enabled": "自動修剪舊郵件", "RetentionPolicyRoom_ExcludePinned": "排除固定消息", "RetentionPolicyRoom_FilesOnly": "僅修剪檔案,保留訊息", diff --git a/packages/i18n/src/locales/zh.i18n.json b/packages/i18n/src/locales/zh.i18n.json index a302dcf6ce14..7c67c32cb221 100644 --- a/packages/i18n/src/locales/zh.i18n.json +++ b/packages/i18n/src/locales/zh.i18n.json @@ -3108,10 +3108,6 @@ "RetentionPolicy_MaxAge": "消息保持时限", "RetentionPolicy_Precision": "定时精度", "RetentionPolicy_Precision_Description": "修剪计时器应该多久运行一次。将此设置为更精确的值会使具有快速保留计时器的频道更好地工作,但对大型社区可能会消耗额外的处理能力。", - "RetentionPolicy_RoomWarning": "此会话中超过 {{time}} 的消息将会自动删除", - "RetentionPolicy_RoomWarning_FilesOnly": "此会话中超过 {{time}} 的文件将自动删除(消息保持不变)", - "RetentionPolicy_RoomWarning_Unpinned": "此会话中超过 {{time}} 的未固定消息将会自动删除", - "RetentionPolicy_RoomWarning_UnpinnedFilesOnly": "此会话中超过 {{time}} 的未固定文件将自动删除(消息保持不变)", "RetentionPolicyRoom_Enabled": "自动修剪旧消息", "RetentionPolicyRoom_ExcludePinned": "排除固定消息", "RetentionPolicyRoom_FilesOnly": "仅修剪文件,保留消息", From 37b7c9c3239f515e65b59c6df50f692bf08b4426 Mon Sep 17 00:00:00 2001 From: gabriellsh Date: Wed, 12 Jun 2024 13:27:03 -0300 Subject: [PATCH 07/10] Add tests to override --- .../hooks/usePruneWarningMessage.spec.ts | 57 ++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/apps/meteor/client/hooks/usePruneWarningMessage.spec.ts b/apps/meteor/client/hooks/usePruneWarningMessage.spec.ts index b24581a75067..fcd080bfb1f4 100644 --- a/apps/meteor/client/hooks/usePruneWarningMessage.spec.ts +++ b/apps/meteor/client/hooks/usePruneWarningMessage.spec.ts @@ -1,3 +1,4 @@ +import type { IRoomWithRetentionPolicy } from '@rocket.chat/core-typings'; import { mockAppRoot } from '@rocket.chat/mock-providers'; import { renderHook } from '@testing-library/react-hooks'; @@ -42,6 +43,20 @@ const createMock = ({ jest.useFakeTimers(); +const getRetentionRoomProps = (props: Partial = {}) => { + return { + retention: { + enabled: true, + overrideGlobal: true, + maxAge: 30, + filesOnly: false, + excludePinned: false, + ignoreThreads: false, + ...props, + }, + }; +}; + const setDate = (minutes = 1, hours = 0, date = 1) => { // June 12, 2024, 12:00 AM const fakeDate = new Date(); @@ -124,7 +139,7 @@ describe('usePruneWarningMessage hook', () => { }); }); - describe('Channels, no override', () => { + describe('No override', () => { it('Should return the default warning', () => { const fakeRoom = createFakeRoom({ t: 'c' }); setDate(); @@ -179,4 +194,44 @@ describe('usePruneWarningMessage hook', () => { expect(result.current).toEqual('UnpinnedFilesOnly a minute June 1, 2024, 12:30 AM'); }); }); + + describe('Overriden', () => { + it('Should return the default warning', () => { + const fakeRoom = createFakeRoom({ t: 'p', ...getRetentionRoomProps() }); + setDate(); + const { result } = renderHook(() => usePruneWarningMessage(fakeRoom), { + wrapper: createMock(), + }); + expect(result.current).toEqual('30 days June 1, 2024, 12:30 AM'); + }); + + it('Should return the unpinned messages warning', () => { + const fakeRoom = createFakeRoom({ t: 'p', ...getRetentionRoomProps({ excludePinned: true }) }); + setDate(); + const { result } = renderHook(() => usePruneWarningMessage(fakeRoom), { + wrapper: createMock(), + }); + expect(result.current).toEqual('Unpinned 30 days June 1, 2024, 12:30 AM'); + }); + + it('Should return the files only warning', () => { + const fakeRoom = createFakeRoom({ t: 'p', ...getRetentionRoomProps({ filesOnly: true }) }); + setDate(); + + const { result } = renderHook(() => usePruneWarningMessage(fakeRoom), { + wrapper: createMock(), + }); + expect(result.current).toEqual('FilesOnly 30 days June 1, 2024, 12:30 AM'); + }); + + it('Should return the unpinned files only warning', () => { + const fakeRoom = createFakeRoom({ t: 'p', ...getRetentionRoomProps({ excludePinned: true, filesOnly: true }) }); + setDate(); + + const { result } = renderHook(() => usePruneWarningMessage(fakeRoom), { + wrapper: createMock(), + }); + expect(result.current).toEqual('UnpinnedFilesOnly 30 days June 1, 2024, 12:30 AM'); + }); + }); }); From 89412a8d542ea2ace18f850b857cd4088f230c56 Mon Sep 17 00:00:00 2001 From: gabriellsh <40830821+gabriellsh@users.noreply.github.com> Date: Wed, 19 Jun 2024 10:46:03 -0300 Subject: [PATCH 08/10] create changeset --- .changeset/angry-garlics-visit.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/angry-garlics-visit.md diff --git a/.changeset/angry-garlics-visit.md b/.changeset/angry-garlics-visit.md new file mode 100644 index 000000000000..3a6464698e41 --- /dev/null +++ b/.changeset/angry-garlics-visit.md @@ -0,0 +1,6 @@ +--- +"@rocket.chat/meteor": patch +"@rocket.chat/i18n": patch +--- + +Improved Retention Policy Warning messages From dfdd5ac0a461ad405f2b47c830bd0b712c83ee0d Mon Sep 17 00:00:00 2001 From: gabriellsh Date: Fri, 21 Jun 2024 11:31:06 -0300 Subject: [PATCH 09/10] fix translation --- packages/i18n/src/locales/ku.i18n.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/i18n/src/locales/ku.i18n.json b/packages/i18n/src/locales/ku.i18n.json index be5c5028cecd..ee6422a47746 100644 --- a/packages/i18n/src/locales/ku.i18n.json +++ b/packages/i18n/src/locales/ku.i18n.json @@ -2062,7 +2062,8 @@ "RetentionPolicy_FilesOnly_Description": "Tenê pelên wê jêbirin, peyamên xwe dê di cih de bimînin.", "RetentionPolicy_MaxAge": "Mesajê herî mezintir", "RetentionPolicy_Precision": "Timer Precision", - "RetentionPolicy_Precision_Description": "Heya caran timer prune divê diçin. Sazkirina vê nirxê bêtir rastîn dike ku kanalên bi timên bêdeng yên zûtir baş dixebite, lê dibe ku li ser civakên mezin.", "RetentionPolicyRoom_Enabled": "Peyamên kevnên xwe yên otomatîk dihêle", + "RetentionPolicy_Precision_Description": "Heya caran timer prune divê diçin. Sazkirina vê nirxê bêtir rastîn dike ku kanalên bi timên bêdeng yên zûtir baş dixebite, lê dibe ku li ser civakên mezin.", + "RetentionPolicyRoom_Enabled": "Peyamên kevnên xwe yên otomatîk dihêle", "RetentionPolicyRoom_ExcludePinned": "Peyamên pinned", "RetentionPolicyRoom_FilesOnly": "Pelên tenê Prune, peyamên xwe biparêzin", "RetentionPolicyRoom_MaxAge": "Di rojan de herî mezintirîn mesaj (default: {{max}})", From 49092af267b47121be0659308636a2c72dac4366 Mon Sep 17 00:00:00 2001 From: gabriellsh Date: Fri, 21 Jun 2024 16:32:31 -0300 Subject: [PATCH 10/10] fix aria-label --- .../client/components/InfoPanel/RetentionPolicyCallout.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/meteor/client/components/InfoPanel/RetentionPolicyCallout.tsx b/apps/meteor/client/components/InfoPanel/RetentionPolicyCallout.tsx index d55cac747add..c27234f6d0db 100644 --- a/apps/meteor/client/components/InfoPanel/RetentionPolicyCallout.tsx +++ b/apps/meteor/client/components/InfoPanel/RetentionPolicyCallout.tsx @@ -1,14 +1,16 @@ import type { IRoom } from '@rocket.chat/core-typings'; import { Callout } from '@rocket.chat/fuselage'; +import { useTranslation } from '@rocket.chat/ui-contexts'; import React from 'react'; import { usePruneWarningMessage } from '../../hooks/usePruneWarningMessage'; const RetentionPolicyCallout = ({ room }: { room: IRoom }) => { const message = usePruneWarningMessage(room); + const t = useTranslation(); return ( - +

    {message}