mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
1196688b0e
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.
|
||
---|---|---|
.. | ||
api.js | ||
check-mode.js | ||
contrast-color.js | ||
copy-to-clipboard.js | ||
date-time.js | ||
discount.js | ||
errors.js | ||
fixtures-generator.js | ||
fixtures.js | ||
form.js | ||
helpers.js | ||
helpers.test.js | ||
links.js | ||
notifications.js | ||
test-fixtures.js | ||
test-utils.js | ||
transform-portal-anchor-to-relative.js | ||
validator.js |