mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-11-12 21:44:22 +08:00
15 lines
413 B
TypeScript
15 lines
413 B
TypeScript
import { locales } from '@/i18n/config';
|
|
import { getRuntimeTranslator } from '@/i18n/runtime';
|
|
|
|
export function isLogStorageDisabledMessage(message: string): boolean {
|
|
const normalized = message.toLowerCase();
|
|
return (
|
|
message.includes('ClickHouse') ||
|
|
locales.some((locale) =>
|
|
normalized.includes(
|
|
getRuntimeTranslator(locale)('disabled_f95ea7f4').toLowerCase(),
|
|
),
|
|
)
|
|
);
|
|
}
|