Files
suwayomi-material-you-webui/src/features/migration/Migration.constants.ts

27 lines
872 B
TypeScript
Raw Normal View History

2024-09-30 04:01:23 +02:00
/*
* Copyright (C) Contributors to the Suwayomi project
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
2026-03-11 00:11:29 +01:00
import type { MessageDescriptor } from '@lingui/core';
import { msg } from '@lingui/core/macro';
2025-08-15 22:02:58 +02:00
import { SortBy, SortOrder } from '@/features/migration/Migration.types.ts';
2024-10-05 16:09:34 +02:00
export const sortByToTranslation: Record<SortBy, MessageDescriptor> = {
[SortBy.SOURCE_NAME]: msg`By source name`,
[SortBy.MANGA_COUNT]: msg`By manga count`,
2024-09-30 04:01:23 +02:00
};
export const sortOrderToTranslation: Record<SortBy, MessageDescriptor> = {
[SortOrder.ASC]: msg`Ascending`,
[SortOrder.DESC]: msg`Descending`,
2024-09-30 04:01:23 +02:00
};
export const DEFAULT_SORT_SETTINGS = {
sortBy: SortBy.SOURCE_NAME,
sortOrder: SortOrder.ASC,
};