(item: { text: LText }, lang: string)
| 25 | } |
| 26 | |
| 27 | export 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 | |
| 34 | export function isExternal(link: { link?: string }) { |
| 35 | return (link.link?.startsWith("https://") || link.link?.startsWith("http://")) ?? false; |
no outgoing calls
no test coverage detected
searching dependent graphs…