CloudCannon / pagefind

Static low-bandwidth search at scale
https://pagefind.app
MIT License
3.45k stars 111 forks source link

"Date:" prefix in date meta data cannot be translated #559

Closed WebShapedBiz closed 6 months ago

WebShapedBiz commented 7 months ago

Hi.

By adding data-pagefind-meta="date" to my date HTML element, the date metadata gets shown in the results prefixed with Date: and that particular string is not among available keys in translations/en.json therefore cannot be translated.

bglw commented 6 months ago

The Date: metadata text is just a capitalized version of the metadata tag — data-pagefind-meta="theme" will render in the results as Theme: — since these come from the content there's no easy way to universally translate these.

Hopefully the looming modular UI will allow more custom workflows in this area.

WebShapedBiz commented 6 months ago

Thank you for this clarification @bglw.