TASKS-1823 WebManager module

This commit is contained in:
Igor Martyniuk
2026-08-28 08:35:58 +00:00
parent fdb2cf3837
commit c93d8c025b
654 changed files with 26232 additions and 6075 deletions
+11
View File
@@ -0,0 +1,11 @@
import { getPathname } from '#i18n/navigation';
import type { LanguageAlternative } from '../types';
export function localeHref(alternative: LanguageAlternative): string {
const path = alternative.path.split('/').filter(Boolean).join('/');
return getPathname({
locale: alternative.locale,
href: path ? `/${path}` : '/'
});
}