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

Function createChangeLangLinks

documentation/src/languages.ts:63–68  ·  view source on GitHub ↗
({ slug }: { slug: string })

Source from the content-addressed store, hash-verified

61}
62
63export function createChangeLangLinks({ slug }: { slug: string }) {
64 return Object.entries(KNOWN_LANGUAGES).map(([name, code]) => ({
65 text: { en: name },
66 link: slug === "/" ? `/${code}` : `/${code}/${slug}`,
67 }));
68}
69
70export const translations = {
71 docs: { text: { en: "Docs", ru: "Меню" } },

Callers

nothing calls this directly

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…