Skip to content

Commit

Permalink
fix: use string pluralization and remove unneeded style
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Dec 13, 2024
1 parent a01587e commit 2dce45e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
10 changes: 6 additions & 4 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2024-12-12T16:07:57.017Z\n"
"PO-Revision-Date: 2024-12-12T16:07:57.018Z\n"
"POT-Creation-Date: 2024-12-13T09:34:43.221Z\n"
"PO-Revision-Date: 2024-12-13T09:34:43.221Z\n"

msgid "Untitled dashboard"
msgstr "Untitled dashboard"
Expand Down Expand Up @@ -490,8 +490,10 @@ msgstr "No, cancel"
msgid "Yes, remove filters"
msgstr "Yes, remove filters"

msgid "{{totalFilterCount}} filters active"
msgstr "{{totalFilterCount}} filters active"
msgid "{{count}} filters active"
msgid_plural "{{count}} filters active"
msgstr[0] "{{count}} filter active"
msgstr[1] "{{count}} filters active"

msgid "The dashboard couldn't be made available offline. Try again."
msgstr "The dashboard couldn't be made available offline. Try again."
Expand Down
6 changes: 4 additions & 2 deletions src/pages/view/SlideshowFiltersInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ export const SlideshowFiltersInfo = () => {
className={styles.filterButton}
onClick={() => setIsOpen(true)}
>
{i18n.t('{{totalFilterCount}} filters active', {
totalFilterCount,
{i18n.t('{{count}} filters active', {
count: totalFilterCount,
defaultValue: '{{count}} filter active',
defaultValue_plural: '{{count}} filters active',
})}
</button>
{isOpen && (
Expand Down
3 changes: 1 addition & 2 deletions src/pages/view/styles/SlideshowControlbar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
.end {
display: flex;
align-items: center;
width: calc(100% / 3);
inline-size: calc(100% / 3);
}

.start {
Expand Down Expand Up @@ -55,7 +55,6 @@

.controls {
padding: 4px;
border-radius: 5px;
display: flex;
align-items: center;
justify-content: center;
Expand Down

0 comments on commit 2dce45e

Please sign in to comment.