UNPKG

converse.js

Version:
29 lines (25 loc) 706 B
import { sprintf } from 'sprintf-js'; /** * @namespace i18n */ const i18nStub = { // eslint-disable-next-line @typescript-eslint/no-empty-function async initialize () {}, /** * Overridable string wrapper method which can be used to provide i18n * support. * * The default implementation in @converse/headless simply calls sprintf * with the passed in arguments. * * If you install the full version of Converse, then this method gets * overwritten in src/i18n/index.js to return a translated string. * @method __ * @private * @memberOf i18n */ __ (...args) { return sprintf(...args); } }; export default i18nStub;