How to use the ember-intl/utils/register-helper function in ember-intl

To help you get started, we’ve selected a few ember-intl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ember-intl / ember-intl / app / initializers / ember-intl-legacy.js View on Github external
export function initialize(registry, app = {}) {
  registerHelper('format-date', FormatDate, registry);
  registerHelper('format-time', FormatTime, registry);
  registerHelper('format-relative', FormatRelative, registry);
  registerHelper('format-number', FormatNumber, registry);
  registerHelper('format-html-message', FormatHtmlMessage, registry);
  registerHelper('format-message', FormatMessage, registry);
  registerHelper('t', FormatMessage, registry);
  registerHelper('l', LiteralHelper, registry);

  if (app.instanceInitializer) {
    return;
  }

  // for backwards compatability < 1.12
  instanceInitializer({
    container: registry
  });
}
github ember-intl / ember-intl / app / initializers / ember-intl-legacy.js View on Github external
export function initialize(registry, app = {}) {
  registerHelper('format-date', FormatDate, registry);
  registerHelper('format-time', FormatTime, registry);
  registerHelper('format-relative', FormatRelative, registry);
  registerHelper('format-number', FormatNumber, registry);
  registerHelper('format-html-message', FormatHtmlMessage, registry);
  registerHelper('format-message', FormatMessage, registry);
  registerHelper('t', FormatMessage, registry);
  registerHelper('l', LiteralHelper, registry);

  if (app.instanceInitializer) {
    return;
  }

  // for backwards compatability < 1.12
  instanceInitializer({
    container: registry
  });
}
github ember-intl / ember-intl / app / initializers / ember-intl-legacy.js View on Github external
export function initialize(registry, app = {}) {
  registerHelper('format-date', FormatDate, registry);
  registerHelper('format-time', FormatTime, registry);
  registerHelper('format-relative', FormatRelative, registry);
  registerHelper('format-number', FormatNumber, registry);
  registerHelper('format-html-message', FormatHtmlMessage, registry);
  registerHelper('format-message', FormatMessage, registry);
  registerHelper('t', FormatMessage, registry);
  registerHelper('l', LiteralHelper, registry);

  if (app.instanceInitializer) {
    return;
  }

  // for backwards compatability < 1.12
  instanceInitializer({
    container: registry
  });
}
github ember-intl / ember-intl / app / initializers / ember-intl-legacy.js View on Github external
export function initialize(registry, app = {}) {
  registerHelper('format-date', FormatDate, registry);
  registerHelper('format-time', FormatTime, registry);
  registerHelper('format-relative', FormatRelative, registry);
  registerHelper('format-number', FormatNumber, registry);
  registerHelper('format-html-message', FormatHtmlMessage, registry);
  registerHelper('format-message', FormatMessage, registry);
  registerHelper('t', FormatMessage, registry);
  registerHelper('l', LiteralHelper, registry);

  if (app.instanceInitializer) {
    return;
  }

  // for backwards compatability < 1.12
  instanceInitializer({
    container: registry
  });
}
github ember-intl / ember-intl / app / initializers / ember-intl-legacy.js View on Github external
export function initialize(registry, app = {}) {
  registerHelper('format-date', FormatDate, registry);
  registerHelper('format-time', FormatTime, registry);
  registerHelper('format-relative', FormatRelative, registry);
  registerHelper('format-number', FormatNumber, registry);
  registerHelper('format-html-message', FormatHtmlMessage, registry);
  registerHelper('format-message', FormatMessage, registry);
  registerHelper('t', FormatMessage, registry);
  registerHelper('l', LiteralHelper, registry);

  if (app.instanceInitializer) {
    return;
  }

  // for backwards compatability < 1.12
  instanceInitializer({
    container: registry
  });
}
github ember-intl / ember-intl / app / initializers / ember-intl-legacy.js View on Github external
export function initialize(registry, app = {}) {
  registerHelper('format-date', FormatDate, registry);
  registerHelper('format-time', FormatTime, registry);
  registerHelper('format-relative', FormatRelative, registry);
  registerHelper('format-number', FormatNumber, registry);
  registerHelper('format-html-message', FormatHtmlMessage, registry);
  registerHelper('format-message', FormatMessage, registry);
  registerHelper('t', FormatMessage, registry);
  registerHelper('l', LiteralHelper, registry);

  if (app.instanceInitializer) {
    return;
  }

  // for backwards compatability < 1.12
  instanceInitializer({
    container: registry
  });
}
github ember-intl / ember-intl / app / initializers / ember-intl-legacy.js View on Github external
export function initialize(registry, app = {}) {
  registerHelper('format-date', FormatDate, registry);
  registerHelper('format-time', FormatTime, registry);
  registerHelper('format-relative', FormatRelative, registry);
  registerHelper('format-number', FormatNumber, registry);
  registerHelper('format-html-message', FormatHtmlMessage, registry);
  registerHelper('format-message', FormatMessage, registry);
  registerHelper('t', FormatMessage, registry);
  registerHelper('l', LiteralHelper, registry);

  if (app.instanceInitializer) {
    return;
  }

  // for backwards compatability < 1.12
  instanceInitializer({
    container: registry
  });
github ember-intl / ember-intl / app / initializers / ember-intl-legacy.js View on Github external
export function initialize(registry, app = {}) {
  registerHelper('format-date', FormatDate, registry);
  registerHelper('format-time', FormatTime, registry);
  registerHelper('format-relative', FormatRelative, registry);
  registerHelper('format-number', FormatNumber, registry);
  registerHelper('format-html-message', FormatHtmlMessage, registry);
  registerHelper('format-message', FormatMessage, registry);
  registerHelper('t', FormatMessage, registry);
  registerHelper('l', LiteralHelper, registry);

  if (app.instanceInitializer) {
    return;
  }

  // for backwards compatability < 1.12
  instanceInitializer({
    container: registry
  });
}