()
| 33 | ]; |
| 34 | |
| 35 | export function getHelpURL(): string { |
| 36 | if (isEdge && isMobile) { |
| 37 | return `${HELP_URL}/mobile/`; |
| 38 | } |
| 39 | const locale = getUILanguage(); |
| 40 | const matchLocale = helpLocales.find((hl) => hl === locale) || helpLocales.find((hl) => locale.startsWith(hl)) || 'en'; |
| 41 | return `${HELP_URL}/${matchLocale}/`; |
| 42 | } |
| 43 | |
| 44 | export function getBlogPostURL(postId: string): string { |
| 45 | return `${BLOG_URL}${postId}/`; |
no test coverage detected