mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-19 14:21:06 +08:00

* feat: show page name in document title using React Helmet * fix: add translation support for page titles * feat: title is updated --------- Co-authored-by: Palash Gupta <palashgdev@gmail.com>
10 lines
222 B
TypeScript
10 lines
222 B
TypeScript
import ROUTES from 'constants/routes';
|
|
|
|
export function getRouteKey(pathname: string): string {
|
|
const [routeKey] = Object.entries(ROUTES).find(
|
|
([, value]) => value === pathname,
|
|
) || ['DEFAULT'];
|
|
|
|
return routeKey;
|
|
}
|