- journal.routes.search (off by default) registers journal-search, the results page for ?q= in the API's relevance order (no sort is sent), server-rendered with a Polish-aware result count. - JournalSearchBox: an icon button and a WAI-ARIA combobox with debounced ?fields=suggest suggestions, stale answers dropped, query words marked ignoring diacritics; a plain GET form without JS. - The module keeps the search path out of the route cache and the sitemap and marks it noindex, follow. - Client: suggestPosts and the fields option; useJournalLinks.searchLink.
61 lines
1.6 KiB
JSON
61 lines
1.6 KiB
JSON
{
|
|
"journal": {
|
|
"index": {
|
|
"title": "Latest posts",
|
|
"empty": "There are no posts yet."
|
|
},
|
|
"pagination": {
|
|
"label": "Pagination",
|
|
"previous": "Previous page",
|
|
"next": "Next page",
|
|
"pageTitle": "Page {page}"
|
|
},
|
|
"post": {
|
|
"publishedOn": "Published on {date}",
|
|
"readingTime": "{minutes} min read",
|
|
"by": "By",
|
|
"related": "Related posts",
|
|
"previous": "Previous post",
|
|
"next": "Next post"
|
|
},
|
|
"category": {
|
|
"empty": "There are no posts in this category yet."
|
|
},
|
|
"tag": {
|
|
"title": "Posts tagged {name}",
|
|
"empty": "There are no posts with this tag yet."
|
|
},
|
|
"author": {
|
|
"title": "Posts by {name}",
|
|
"posts": "Posts",
|
|
"empty": "This author has not published any posts yet."
|
|
},
|
|
"readMore": "Read more",
|
|
"rss": {
|
|
"title": "RSS feed"
|
|
},
|
|
"search": {
|
|
"title": "Search",
|
|
"titleQuery": "Search results: {query}",
|
|
"placeholder": "Search posts…",
|
|
"button": "Search",
|
|
"input": "Search the posts",
|
|
"submit": "Search",
|
|
"suggestions": "Suggestions",
|
|
"seeAll": "See all results",
|
|
"empty": "No results",
|
|
"none": "Nothing found for “{query}”.",
|
|
"short": "Type at least {min} characters.",
|
|
"prompt": "Type what you are looking for.",
|
|
"loading": "Searching…",
|
|
"error": "Search is unavailable right now.",
|
|
"count": {
|
|
"one": "{count} result",
|
|
"few": "{count} results",
|
|
"many": "{count} results",
|
|
"other": "{count} results"
|
|
}
|
|
}
|
|
}
|
|
}
|