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

Function getTextLocalized

documentation/src/languages.ts:27–32  ·  view source on GitHub ↗
(item: { text: LText }, lang: string)

Source from the content-addressed store, hash-verified

25}
26
27export function getTextLocalized(item: { text: LText }, lang: string): string {
28 if (lang in item.text) {
29 return item.text[lang as "en" | "ru" | "uz"]!;
30 }
31 return item.text.en;
32}
33
34export function isExternal(link: { link?: string }) {
35 return (link.link?.startsWith("https://") || link.link?.startsWith("http://")) ?? false;

Callers 2

getLocalizedPanelSidebarFunction · 0.90
TableOfContentsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…