mirror of
https://github.com/type-challenges/type-challenges.git
synced 2026-01-18 14:36:47 +00:00
9 lines
255 B
TypeScript
9 lines
255 B
TypeScript
import { defaultLocale } from '../locales'
|
|
|
|
export function resolveFilePath(dir: string, name: string, ext: string, locale: string) {
|
|
if (locale === defaultLocale)
|
|
return `${dir}/${name}.${ext}`
|
|
else
|
|
return `${dir}/${name}.${locale}.${ext}`
|
|
}
|