UNPKG

armisa-models

Version:
55 lines (54 loc) 1.8 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Language = void 0; class Language { constructor(mainStateManager, id, name, rightToLeft) { this.id = 0; this.isRightToLeft = false; this.name = 'blank'; this.caption = ''; this.shortCaption = ''; this.flag = ''; if (name === 1) { this.id = id; this.isRightToLeft = rightToLeft; this.name = 'English'; this.caption = 'English'; this.shortCaption = 'EN'; this.flag = './images/flag/AM40.png'; } else if (name === 2) { this.id = id; this.isRightToLeft = rightToLeft; this.name = 'Arabic'; this.caption = 'العربی'; this.shortCaption = 'عر'; this.flag = './images/flag/AR40.png'; } else if (name === 3) { this.id = id; this.isRightToLeft = rightToLeft; this.name = 'France'; this.caption = 'France'; this.shortCaption = 'FR'; this.flag = './images/flag/FR40.png'; } else if (name === 4) { this.id = id; this.isRightToLeft = rightToLeft; this.name = 'Spanish'; this.caption = 'Spanish'; this.shortCaption = 'SP'; this.flag = './images/flag/SP40.png'; } else { this.id = id; this.isRightToLeft = rightToLeft; this.name = 'Persian'; this.caption = 'فارسی'; this.shortCaption = 'فا'; this.flag = './images/flag/IR40.png'; } } } exports.Language = Language;