0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/apps
Cathy Sarisky 1196688b0e
🌐 Improved i18n support for Portal error messages (#21190)
no ref

Expose (some) Portal error strings for translations

💩This is a somewhat hacky (but test-passing and individual inspection
passing) solution to the way Portal handles errors. Or rather, the
half-dozen ways Portal handles errors.

Passing 't' around with context and state, and occasionally recreating
it from the site object. Yes, I am also somewhat horrified, but a better
implementation will need a major rewrite of Portal.

Addresses errors in both the popover React app and in the
data-attributes.

There are probably more. Since Portal exposes raw API responses in some
places, it's hard to enumerate everything that /might/ end up being
client-facing, but at least I've gotten the ones that I've commonly
seen.

Improvements very welcome.
2024-10-03 13:35:23 +00:00
..
admin-x-activitypub Updated following/followers in activitypub profile preview to be dynamic (#21170) 2024-10-02 15:41:25 +01:00
admin-x-demo Fixed versioning and npm visibility for internal apps 2024-09-25 09:09:06 +02:00
admin-x-design-system Update dependency @uiw/react-codemirror to v4.23.4 2024-10-02 09:34:41 +00:00
admin-x-framework Updated search to be dynamic in admin-x-activitypub app (#21099) 2024-09-30 11:32:05 +01:00
admin-x-settings Fixed versioning and npm visibility for internal apps 2024-09-25 09:09:06 +02:00
announcement-bar Update dependency jsdom to v24.1.3 2024-08-26 09:44:19 +02:00
comments-ui Update tiptap monorepo to v2.8.0 2024-09-30 16:05:32 +00:00
portal 🌐 Improved i18n support for Portal error messages (#21190) 2024-10-03 13:35:23 +00:00
signup-form Update dependency tailwindcss to v3.4.13 2024-09-24 08:59:06 +02:00
sodo-search Update dependency flexsearch to v0.7.43 (#19455) 2024-10-02 16:21:12 +01:00