How to use the ember-inflector.inflector function in ember-inflector

To help you get started, we’ve selected a few ember-inflector 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 emberobserver / client / app / initializers / inflections.js View on Github external
export function initialize(/* application */) {
  Inflector.inflector.uncountable('github-stats');
}
github NREL / api-umbrella / src / api-umbrella / admin-ui / app / initializers / inflections.js View on Github external
export function initialize() {
  // So the Api model doesn't try to singularize the subSettings hasMany
  // relationship (which leads to it trying to find the non-existent
  // "api/sub-setting" model).
  Inflector.inflector.irregular('sub-settings', 'sub-settings');
}
github Flexberry / ember-flexberry-designer / tests / dummy / app / models / custom-inflector-rules.js View on Github external
import Inflector from 'ember-inflector';

const inflector = Inflector.inflector;

inflector.irregular('configuration', 'Configurations');
inflector.irregular('association', 'Associations');
inflector.irregular('aggregation', 'Aggregations');
inflector.irregular('inheritance', 'Inheritances');
inflector.irregular('generation', 'Generations');
inflector.irregular('definition', 'Definitions');
inflector.irregular('repository', 'Repositorys');
inflector.irregular('subsystem', 'Subsystems');
inflector.irregular('attribute', 'Attributes');
inflector.irregular('following', 'Followings');
inflector.irregular('parameter', 'Parameters');
inflector.irregular('filelink', 'Filelinks');
inflector.irregular('property', 'Propertys');
inflector.irregular('profile', 'Profiles');
inflector.irregular('setting', 'Settings');
github ilios / frontend / app / initializers / inflector.js View on Github external
export function initialize() {
  Inflector.inflector.irregular('vocabulary', 'vocabularies');
  Inflector.inflector.uncountable('aamc-pcrs');
}
github hummingbird-me / hummingbird-client / app / initializers / inflections.js View on Github external
export function initialize() {
  Inflector.inflector.uncountable('anime');
  Inflector.inflector.uncountable('manga');
}
github aptible / dashboard.aptible.com / app / adapters / organization-profile.js View on Github external
pathForType: function(type) {
    const underscored = Ember.String.underscore(type);
    return Inflector.inflector.pluralize(underscored);
  }
});
github hummingbird-me / hummingbird-client / app / initializers / inflections.js View on Github external
export function initialize() {
  Inflector.inflector.uncountable('anime');
  Inflector.inflector.uncountable('manga');
}
github aptible / dashboard.aptible.com / app / adapters / billing-detail.js View on Github external
pathForType: function(type) {
    const underscored = Ember.String.underscore(type);
    return Inflector.inflector.pluralize(underscored);
  }
});
github travis-ci / travis-web / app / initializers / configure-inflector.js View on Github external
initialize: function () {
    const inflector = Inflector.inflector;
    inflector.uncountable('permissions');
    inflector.irregular('cache', 'caches');
  }
};
github ilios / frontend / app / initializers / inflector.js View on Github external
export function initialize() {
  Inflector.inflector.irregular('vocabulary', 'vocabularies');
  Inflector.inflector.uncountable('aamc-pcrs');
}

ember-inflector

The default blueprint for Embroider v2 addons.

MIT
Latest version published 2 months ago

Package Health Score

81 / 100
Full package analysis