application-amicale/constants/Update.js

26 lines
576 B
JavaScript
Raw Normal View History

2020-03-11 21:04:17 +01:00
import i18n from "i18n-js";
export default class Update {
static number = 5;
static icon = 'surround-sound-2-0';
static instance: Update | null = null;
constructor() {
this.title = i18n.t('intro.updateSlide.title');
this.description = i18n.t('intro.updateSlide.text');
}
/**
* Get this class instance or create one if none is found
* @returns {Update}
*/
static getInstance(): Update {
return Update.instance === null ?
Update.instance = new Update() :
Update.instance;
}
};