mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-04-23 11:22:10 +00:00
17 lines
251 B
TypeScript
17 lines
251 B
TypeScript
type LangList<T> = {
|
|
fr?: T
|
|
en?: T
|
|
es?: T
|
|
it?: T
|
|
}
|
|
|
|
namespace LangList {
|
|
export function insert(from: LangList<any>, el: any, lang: string) {
|
|
if (typeof from !== "object") from = {}
|
|
from[lang] = el
|
|
return from
|
|
}
|
|
}
|
|
|
|
export default LangList
|