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