mirror of
https://github.com/tcgdex/compiler.git
synced 2025-04-22 10:42:09 +00:00
11 lines
255 B
TypeScript
11 lines
255 B
TypeScript
import Tag from "../db/interfaces/Tag";
|
|
import { Langs } from "../db/interfaces/LangList";
|
|
import { tagSimple } from "./tags/tag";
|
|
|
|
export function tagToTagSimple(tag: Tag, lang: Langs): tagSimple {
|
|
return {
|
|
id: tag,
|
|
name: Tag.toLang(tag, lang)
|
|
}
|
|
}
|