Skip to content

Commit 502635d

Browse files
louckousseErrorname
authored andcommitted
📝 Correct a typo when there is only one view (#232)
1 parent 9c8b298 commit 502635d

File tree

1 file changed

+3
-1
lines changed
  • client/src/scenes/Question/scenes/Read/components/Views

1 file changed

+3
-1
lines changed

client/src/scenes/Question/scenes/Read/components/Views/Views.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Views = ({ value }) => {
1616

1717
return (
1818
<span className="views">
19-
{formattedValue} {intl('views')}
19+
{formattedValue} {formattedValue > 1 ? intl('views') : intl('view')}
2020
</span>
2121
)
2222
}
@@ -27,9 +27,11 @@ Views.propTypes = {
2727

2828
Views.translations = {
2929
en: {
30+
view: 'view',
3031
views: 'views'
3132
},
3233
fr: {
34+
view: 'vue',
3335
views: 'vues'
3436
}
3537
}

0 commit comments

Comments
 (0)