Skip to content

Commit

Permalink
Use mithril rich handler properly
Browse files Browse the repository at this point in the history
  • Loading branch information
askvortsov1 committed Apr 18, 2021
1 parent 9d5d950 commit f54c288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/common/Translator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RichMessageFormatter } from '@askvortsov/rich-icu-message-formatter';
import { RichMessageFormatter, mithrilRichHandler } from '@askvortsov/rich-icu-message-formatter';
import { pluralTypeHandler, selectTypeHandler } from '@ultraq/icu-message-formatter';
import username from './helpers/username';
import extract from './utils/extract';
Expand All @@ -13,7 +13,7 @@ export default class Translator {
*/
this.translations = {};

this.formatter = new RichMessageFormatter(null, this.formatterTypeHandlers(), fillTags);
this.formatter = new RichMessageFormatter(null, this.formatterTypeHandlers(), mithrilRichHandler);
}

formatterTypeHandlers() {
Expand Down

0 comments on commit f54c288

Please sign in to comment.