'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var api = require('./api.js');

/**
 * Returns the `I18nTranslate` interface used to translate strings.
 */
function useTranslate() {
  const api$1 = api.useApi();
  return api$1.i18n.translate.bind(api$1.i18n);
}

exports.useTranslate = useTranslate;
