Skip to content

Commit

Permalink
Merge 00971e4 into a977ebb
Browse files Browse the repository at this point in the history
  • Loading branch information
cea2aj authored Jun 28, 2023
2 parents a977ebb + 00971e4 commit d2191c9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
11 changes: 5 additions & 6 deletions conf/i18n/translations/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ msgstr[0] ""
msgstr[1] ""

#: src/ui/templates/results/resultsheader.hbs:19
#: src/ui/templates/results/verticalresultscount.hbs:3
msgid "[[start]] through [[end]] of [[resultsCount]]"
msgstr ""

Expand Down Expand Up @@ -360,14 +359,14 @@ msgctxt "Example: 1-10 of 50"
msgid "<span class=\"yxt-ResultsHeader-resultsCountStart\">[[start]]</span> <span class=\"yxt-ResultsHeader-resultsCountDash\">-</span> <span class=\"yxt-ResultsHeader-resultsCountEnd\">[[end]]</span> <span class=\"yxt-ResultsHeader-resultsCountOf\">of</span> <span class=\"yxt-ResultsHeader-resultsCountTotal\">[[resultsCount]]</span>"
msgstr ""

#: src/ui/templates/results/verticalresultscount.hbs:5
#: src/ui/templates/results/verticalresultscount.hbs:3
msgctxt "Example: 1-10 of 50"
msgid ""
"<span class=\"yxt-VerticalResultsCount-start\">[[start]]</span>\n"
"<span class=\"yxt-VerticalResultsCount-dash\">-</span>\n"
"<span class=\"yxt-VerticalResultsCount-end\">[[end]]</span>\n"
"<span class=\"yxt-VerticalResultsCount-of\">of</span>\n"
"<span class=\"yxt-VerticalResultsCount-total\">[[resultsCount]]</span>"
" <span class=\"yxt-VerticalResultsCount-dash\">-</span>\n"
" <span class=\"yxt-VerticalResultsCount-end\">[[end]]</span>\n"
" <span class=\"yxt-VerticalResultsCount-of\">of</span>\n"
" <span class=\"yxt-VerticalResultsCount-total\">[[resultsCount]]</span>"
msgstr ""

#: src/ui/components/search/spellcheckcomponent.js:9
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/answers-search-ui",
"version": "1.16.0",
"version": "1.16.1",
"description": "Javascript Search Programming Interface",
"main": "dist/answers-umd.js",
"repository": {
Expand Down
15 changes: 6 additions & 9 deletions src/ui/templates/results/verticalresultscount.hbs
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
{{#unless isHidden}}
<div class="yxt-VerticalResultsCount"
aria-label="{{translate phrase='[[start]] through [[end]] of [[resultsCount]]' start=pageStart end=pageEnd resultsCount=total }}">
<div aria-hidden="true">
<div class="yxt-VerticalResultsCount">
{{translate
phrase=
'<span class="yxt-VerticalResultsCount-start">[[start]]</span>
<span class="yxt-VerticalResultsCount-dash">-</span>
<span class="yxt-VerticalResultsCount-end">[[end]]</span>
<span class="yxt-VerticalResultsCount-of">of</span>
<span class="yxt-VerticalResultsCount-total">[[resultsCount]]</span>'
'<span class="yxt-VerticalResultsCount-start">[[start]]</span>
<span class="yxt-VerticalResultsCount-dash">-</span>
<span class="yxt-VerticalResultsCount-end">[[end]]</span>
<span class="yxt-VerticalResultsCount-of">of</span>
<span class="yxt-VerticalResultsCount-total">[[resultsCount]]</span>'
context='Example: 1-10 of 50'
start=pageStart
end=pageEnd
resultsCount=total
}}
</div>
</div>
{{/unless}}

0 comments on commit d2191c9

Please sign in to comment.