+ translate(text: string): string {
+ const translations = options.translations;
+ return translations[text] || text;
+ },
+ error(error: string|Error): void {
+ const message = error instanceof Error ? error.message : error;
+ window.$events.error(message); // TODO - Translate
+ },