Skip to content

Commit

Permalink
Merge pull request #753 from CodeForAfrica/bugfix/change-stars-text
Browse files Browse the repository at this point in the history
@/charterafrica Bugfix/change stars text
  • Loading branch information
koechkevin committed Jul 4, 2024
2 parents 209b2f9 + 2c7a8d5 commit aaf91ef
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/charterafrica/contrib/dokku/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM codeforafrica/charterafrica-ui:0.1.26
FROM codeforafrica/charterafrica-ui:0.1.27
2 changes: 1 addition & 1 deletion apps/charterafrica/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "charterafrica",
"version": "0.1.26",
"version": "0.1.27",
"private": true,
"author": "Code for Africa <[email protected]>",
"description": "This is the official code for https://charter.africa site",
Expand Down
3 changes: 2 additions & 1 deletion apps/charterafrica/src/lib/data/common/processPageTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ async function processPageSingleTool(page, api, context) {
commitText: filterLabels.lastCommit,
forksText: filterLabels.forks,
starsText: filterLabels.stars,
starsAscendingText: filterLabels["+stars"],
collectionText: filterLabels.collection,
activeText: filterLabels.activeText,
collection: tool.classification,
Expand Down Expand Up @@ -190,7 +191,7 @@ async function processPageTools(page, api, context) {
{ value: "-theme", label: filterLabels["-theme"] },
{ value: "views", label: filterLabels.views },
{ value: "-views", label: filterLabels["-views"] },
{ value: "stars", label: filterLabels.stars },
{ value: "stars", label: filterLabels["+stars"] },
{ value: "-stars", label: filterLabels["-stars"] },
{ value: "name", label: filterLabels.name },
],
Expand Down
9 changes: 6 additions & 3 deletions apps/charterafrica/src/utils/translationConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const labelsPerLocale = {
"-topic": "Topic Z-A",
views: "Views Ascending",
"-views": "Views Descending",
stars: "Stars Ascending",
stars: "Stars",
"+stars": "Stars Ascending",
"-stars": "Stars Descending",
name: "Name",
goToRepo: "Go to Repo",
Expand Down Expand Up @@ -40,7 +41,8 @@ const labelsPerLocale = {
"-topic": "Sujet Z-A",
views: "Vues ascendantes",
"-views": "Vues descendant",
stars: "Étoiles ascendant",
stars: "Étoiles",
"+stars": "Étoiles ascendant",
"-stars": "Stars descendant",
name: "Nom",
"-name": "Nom Z-A",
Expand Down Expand Up @@ -75,7 +77,8 @@ const labelsPerLocale = {
"-topic": "Tópico Z-A",
views: "Visualizações ascendentes",
"-views": "Vistas descendentes",
stars: "Estrelas ascendendo",
stars: "Estrelas",
"+stars": "Estrelas ascendendo",
"-stars": "Estrelas descendentes",
name: "Nome",
"-name": "Nome Z-A",
Expand Down

0 comments on commit aaf91ef

Please sign in to comment.