mirror of
https://github.com/tcgdex/compiler.git
synced 2025-04-22 10:42:09 +00:00
11 lines
344 B
TypeScript
11 lines
344 B
TypeScript
import Type, { TypeSimple } from "@tcgdex/sdk/interfaces/Type";
|
|
import LangList, { Langs } from "@tcgdex/sdk/interfaces/LangList";
|
|
import TranslationUtil from "@tcgdex/sdk/TranslationUtil";
|
|
|
|
export function typeToTypeSimple(type: Type, lang: Langs): TypeSimple {
|
|
return {
|
|
id: type,
|
|
name: TranslationUtil.translate("type", type, lang)
|
|
}
|
|
}
|