Skip to content

Commit

Permalink
remove ember-intl and format numbers using ember-helper-locale-number
Browse files Browse the repository at this point in the history
  • Loading branch information
lizkrznarich committed Jan 5, 2023
1 parent 0ca91f6 commit 797c691
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 1,639 deletions.
5 changes: 0 additions & 5 deletions app/routes/application.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default Route.extend({
intl: service(),

beforeModel() {
return this.intl.setLocale(['en-us']);
}
});
2 changes: 1 addition & 1 deletion app/templates/organizations/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="container-fluid">
{{#if model}}
{{#if (gt model.meta.total 1)}}
<h4 class="ml-3">{{format-number model.meta.total}} Organizations</h4>
<h4 class="ml-3">{{decimal-format model.meta.total}} Organizations</h4>
<p class="small ml-3"><i>Are we missing an organization you're looking for? <a target="_blank" rel="noopener" href="http://curation-request.ror.org/">Submit a request to add it</a></i></p>
{{/if}}
<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"ember-cli-uglify": "^2.1.0",
"ember-data": "~3.7.0",
"ember-export-application-global": "^2.0.0",
"ember-intl": "^3.5.0",
"ember-helper-locale-number": "^1.0.0",
"ember-load-initializers": "^2.1.2",
"ember-maybe-import-regenerator": "^0.1.6",
"ember-moment": "^10.0.0",
Expand Down
Loading

0 comments on commit 797c691

Please sign in to comment.