mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 19:17:09 +03:00
Merge pull request #526 from pulsar-edit/localize-package-numbers
Properly localize Download/Stargazer Counts within `settings-view`
This commit is contained in:
commit
a364065f69
@ -299,8 +299,9 @@ export default class PackageCard {
|
||||
this.refs.downloadIcon.classList.add('icon-git-branch')
|
||||
this.refs.downloadCount.textContent = this.pack.apmInstallSource.sha.substr(0, 8)
|
||||
} else {
|
||||
this.refs.stargazerCount.textContent = data.stargazers_count ? data.stargazers_count.toLocaleString() : ''
|
||||
this.refs.downloadCount.textContent = data.downloads ? data.downloads.toLocaleString() : ''
|
||||
|
||||
this.refs.stargazerCount.textContent = data.stargazers_count ? parseInt(data.stargazers_count).toLocaleString() : ''
|
||||
this.refs.downloadCount.textContent = data.downloads ? parseInt(data.downloads).toLocaleString() : ''
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user