mapcomplete/Customizations/Questions/bike/ShopDiy.ts

19 lines
560 B
TypeScript
Raw Normal View History

2020-07-21 12:14:56 +02:00
import {Tag} from "../../../Logic/TagsFilter";
import Translations from "../../../UI/i18n/Translations";
2020-07-31 17:38:03 +02:00
import {TagRenderingOptions} from "../../TagRenderingOptions";
2020-07-21 12:14:56 +02:00
2020-07-29 15:55:50 +02:00
export default class ShopDiy extends TagRenderingOptions {
2020-07-21 12:14:56 +02:00
constructor() {
const key = 'service:bicycle:diy'
2020-07-21 23:31:41 +02:00
const to = Translations.t.cyclofix.shop.diy
2020-07-21 12:14:56 +02:00
super({
question: to.question,
2020-07-21 12:14:56 +02:00
mappings: [
{k: new Tag(key, "yes"), txt: to.yes},
{k: new Tag(key, "no"), txt: to.no},
2020-07-21 12:14:56 +02:00
]
});
}
}