MCPcopy Create free account
hub / github.com/effector/effector / isLocalizedLink

Function isLocalizedLink

documentation/src/languages.ts:38–45  ·  view source on GitHub ↗
(link: { link?: string })

Source from the content-addressed store, hash-verified

36}
37
38export function isLocalizedLink(link: { link?: string }) {
39 for (const code of KNOWN_LANGUAGE_CODES) {
40 if (link.link?.startsWith(`/${code}`)) {
41 return true;
42 }
43 }
44 return false;
45}
46
47export function createLink(item: { text: LText; link: string }, lang: string): string {
48 if (isExternal(item)) {

Callers 1

createLinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…