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