compiler/endpoints/TagUtil.ts
Florian Bouillon b5ce0c9b93
Updated compiler and trying to make ci work again
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
2020-03-16 22:40:00 +01:00

11 lines
323 B
TypeScript

import Tag, { TagSimple } from "@tcgdex/sdk/interfaces/Tag";
import { Langs } from "@tcgdex/sdk/interfaces/LangList";
import TranslationUtil from "@tcgdex/sdk/TranslationUtil";
export function tagToTagSimple(tag: Tag, lang: Langs): TagSimple {
return {
id: tag,
name: TranslationUtil.translate("tag", tag, lang)
}
}