• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ThePalaceProject / web-patron / 32297395938
30%

Build:
DEFAULT BRANCH: main
Ran 19 Aug 2026 08:15PM UTC
Jobs 1
Files 93
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Aug 2026 08:13PM UTC coverage: 29.323% (-53.2%) from 82.498%
32297395938

push

github

web-flow
Move English strings into translation files (PP-4709) (#184)

# Description
The next step in internationalizing `web-patron` involves moving all
hard-coded English strings into translation files. Translation keys have
been created that map to English strings:
```json
"accountMenu.account": "Account",
"accountMenu.closeMenu": "Close account menu",
"libraryFilterList.librariesMatched_one": "{{count}} library shown, best matches first",
"libraryFilterList.librariesMatched_other": "{{count}} libraries shown, best matches first",
```

<!--- Describe your changes -->
### Features & Notable Changes
- All hard-coded strings have been replaced with `t(...)` functions and
`<Trans />` components provided by `next-i18next/pages`.
- `t(...)` functions accept a translation key as their first argument. A
default value can be provided as a fallback when that function's
translation key doesn't exist in the current locale; otherwise the
translation key itself would be rendered on the screen. This default
value can be provided as standalone string or as a property of the
options object, which can take the form `defaultValue` or as a variation
of one of the several plural form options that exist, e.g.
`defaultValue_one`, `defaultValue_two`, `defaultValue_many`. The second
argument can either be the default value or the options object. If
default value string is provided in the second argument, the options
object can be provided as a third argument.
- The `<Trans />` component can accept JSX elements or native HTML
elements as children, which can be useful when interpolating link
elements or certain semantic elements like `<b />` or `<em />`.
- OPDS parsers now collect raw values for `published` and `duration`
from entries and move formatting to the components in which these values
are rendered to the UI.
- A new date utility leverages the browser-native `Intl.DateTimeFormat`
API to format `published` values based on locale. A new duration utility
uses a polyfill from `@f... (continued)

326 of 1467 branches covered (22.22%)

Branch coverage included in aggregate %.

15 of 94 new or added lines in 26 files covered. (15.96%)

705 of 2049 relevant lines covered (34.41%)

9.24 hits per line

Uncovered Changes

Lines Coverage ∆ File
29
0.72
src/utils/book.tsx
9
2.54
src/components/WorkLibrarySelector.tsx
4
3.57
src/components/MultiLibraryHome.tsx
4
0.0
src/dataflow/withAppProps.ts
3
2.44
src/auth/Catch401.tsx
3
13.33
src/components/Footer.tsx
3
22.73
src/components/OpenEbooksLanding.tsx
3
71.43
src/pages/_error.tsx
2
14.29
src/auth/AuthButton.tsx
2
0.0
src/auth/useCredentials.ts
2
7.69
src/components/Error.tsx
2
33.33
src/components/ExternalLink.tsx
2
33.33
src/components/ItemLandingPage.tsx
2
5.26
src/components/LibraryFilterList.tsx
2
0.77
src/dataflow/opds1/parse.ts
1
15.0
src/auth/OpenEbooksLoginPicker.tsx
1
7.5
src/components/ErrorBoundary.tsx
1
33.33
src/components/LoadingIndicator.tsx
1
3.03
src/components/SignOut.tsx
1
33.33
src/components/storeBadges/GooglePlayBadge.tsx
1
33.33
src/components/storeBadges/IosBadge.tsx
1
3.45
src/utils/fulfill.ts
Jobs
ID Job ID Ran Files Coverage
1 32297395938.1 19 Aug 2026 08:15PM UTC 93
29.32
GitHub Action Run
Source Files on build 32297395938
  • Tree
  • List 93
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • bd4fa63c on github
  • Prev Build on main (#31813085213)
  • Next Build on main (#32397845389)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc