(locale: SupportedLocale, key: string)
| 13 | export type SupportedLocale = keyof typeof messages |
| 14 | |
| 15 | export function t(locale: SupportedLocale, key: string): string { |
| 16 | return (messages[locale] && messages[locale][key]) || messages[defaultLocale][key] |
| 17 | } |
| 18 | |
| 19 | export function f(name: string, locale: string, ext: string) { |
| 20 | if (locale === defaultLocale) |
no outgoing calls
no test coverage detected