mirror of
https://github.com/type-challenges/type-challenges.git
synced 2025-12-08 19:06:13 +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}`
|
|
}
|