You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current state:
FAQ identifiers are stored in github.com/sledilnik/website/blob/master/src/content/faq.js and actual strings are stored in i18n jsons (src/locales/*.json). In JS, everything is compiled into searchable database, using fuse for client side search
Desired state:
FAQ will be available via APi endpoint e.g. /api/v1/faq
Import current questions in sl and en to database
API should return translated questions for given langiuage give as query param (lang) or Accept-Language header (query param overrides header).
Consider FAQ questions have to be ordered and grouped by sections (see how does current FAQ looks like)
Search will remain client side, so API return all objects
Add option to add keywords to question, for search
Implement FAQ module.
Current state:
FAQ identifiers are stored in github.com/sledilnik/website/blob/master/src/content/faq.js and actual strings are stored in i18n jsons (
src/locales/*.json
). In JS, everything is compiled into searchable database, using fuse for client side searchDesired state:
sl
anden
to databaselang
) or Accept-Language header (query param overrides header).Example API response should look like:
The text was updated successfully, but these errors were encountered: