Skip to content

Commit 3e4fccd

Browse files
committed
fix(compare): rename facet i18n keys to camelCase for convention consistency
1 parent 2693e16 commit 3e4fccd

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

app/composables/useFacetSelection.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,22 +123,22 @@ export function useFacetSelection(queryParam = 'facets') {
123123
chartable_scatter: false,
124124
},
125125
githubStars: {
126-
label: t(`compare.facets.items.github_stars.label`),
127-
description: t(`compare.facets.items.github_stars.description`),
126+
label: t(`compare.facets.items.githubStars.label`),
127+
description: t(`compare.facets.items.githubStars.description`),
128128
chartable: true,
129129
chartable_scatter: true,
130130
formatter: v => compactNumberFormatter.value.format(v),
131131
},
132132
githubIssues: {
133-
label: t(`compare.facets.items.github_issues.label`),
134-
description: t(`compare.facets.items.github_issues.description`),
133+
label: t(`compare.facets.items.githubIssues.label`),
134+
description: t(`compare.facets.items.githubIssues.description`),
135135
chartable: true,
136136
chartable_scatter: true,
137137
formatter: v => compactNumberFormatter.value.format(v),
138138
},
139139
createdAt: {
140-
label: t(`compare.facets.items.created_at.label`),
141-
description: t(`compare.facets.items.created_at.description`),
140+
label: t(`compare.facets.items.createdAt.label`),
141+
description: t(`compare.facets.items.createdAt.description`),
142142
chartable: false,
143143
chartable_scatter: false,
144144
formatter: v => new Date(v).toLocaleDateString(),

i18n/locales/en.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,15 +1326,15 @@
13261326
"label": "Vulnerabilities",
13271327
"description": "Known security vulnerabilities"
13281328
},
1329-
"github_stars": {
1329+
"githubStars": {
13301330
"label": "GitHub Stars",
13311331
"description": "Number of stars on the GitHub repository"
13321332
},
1333-
"github_issues": {
1333+
"githubIssues": {
13341334
"label": "GitHub Issues",
13351335
"description": "Number of issues on the GitHub repository"
13361336
},
1337-
"created_at": {
1337+
"createdAt": {
13381338
"label": "Created At",
13391339
"description": "When the package was created"
13401340
}

i18n/schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3982,7 +3982,7 @@
39823982
},
39833983
"additionalProperties": false
39843984
},
3985-
"github_stars": {
3985+
"githubStars": {
39863986
"type": "object",
39873987
"properties": {
39883988
"label": {
@@ -3994,7 +3994,7 @@
39943994
},
39953995
"additionalProperties": false
39963996
},
3997-
"github_issues": {
3997+
"githubIssues": {
39983998
"type": "object",
39993999
"properties": {
40004000
"label": {
@@ -4006,7 +4006,7 @@
40064006
},
40074007
"additionalProperties": false
40084008
},
4009-
"created_at": {
4009+
"createdAt": {
40104010
"type": "object",
40114011
"properties": {
40124012
"label": {

0 commit comments

Comments
 (0)