YAML file structure
We need a config file that describes problems and solutions. We need them locali[zs]ed too.
The structure, leaving out the obvious localisation keys:
-
problemGroups: will hold mappings between problems and solutions
-
<topic> e.g. administrative: the stuff that goes into the first dropdown in the interface.
- description: This goes in the first dropdown list as a label.
- describe: This will show above the second dropdown when this topic is selected.
-
problems: List of problems under this group.
-
<topic> e.g. invoicing: the stuff that goes into the second dropdown in the interface.
- description: This goes in the second dropdown list as a label.
- intro: Introduction to the suggested solutions
-
suggestions: These are the links to helpdesk pages etc.
- link: Link to an article
- description: Description of an article or solution
-
<topic> e.g. invoicing: the stuff that goes into the second dropdown in the interface.
-
<topic> e.g. administrative: the stuff that goes into the first dropdown in the interface.
I've put an example below.
---
problemGroups:
administrative:
description:
nl: Administratieve vraag
en: Administrative question
describe:
nl: Hoe zou je jouw administratieve vraag het beste omschrijven?
en: How would you best describe your adminstrative question?
problems:
invoicing:
description:
nl: Ik heb een vraag over een factuur
en: I have a question regarding an invoice
intro:
nl: "Hier zijn een paar van de meest voorkomende voorbeelden van vragen over facturen:"
en: "Here are some of the most common examples of invoice questions:"
suggestions:
- nl:
link: https://greenhost.nl/contact/#betalingsgegevens
description: Ik heb betalingsgegevens van Greenhost nodig
en:
link: https://greenhost.net/contact/#payment-details
description: I need Greenhost's payment information.
legal:
description:
nl: Ik heb een juridische vraag
en: I have a legal question
intro:
nl: "Hier zijn een paar van de meest voorkomende voorbeelden juridische vragen:"
en: "Here are some of the most common examples of legal questions:"
suggestions:
- nl:
link: https://greenhost.nl/juridisch/algemene-voorwaarden/
description: Waar vind ik de algemene voorwaarden?
en:
link: https://greenhost.net/legal/terms-and-conditions/
description: Where can I find your terms and conditions?
technical:
description:
nl: Technisch
en: Technical
describe:
nl: Hoe zou je jouw technische vraag of probleem het beste omschrijven?
en: How would you best describe your adminstrative question?
problems:
hosting:
description:
nl: Mijn website is niet bereikbaar of werkt niet goed
en: My website is not reachable or is not working properly
intro:
nl: "Hier zijn mogelijke oplossingen voor veelvoorkomende website issues:"
en: "Here are some solutions to some of the most common website issues:"
suggestions:
- nl:
link: https://greenhost.nl/helpdesk/website/hostingserverbeheer/#onderhoudacties
description: Server processen herstarten
en:
link: https://greenhost.net/helpdesk/website/hosting-management/#maintenance
description: Restart server processes
- nl:
link: https://media.giphy.com/media/QEs1TwxdJHMli/giphy.gif
description: De gremlin status vernieuwen
en:
link: https://media.giphy.com/media/QEs1TwxdJHMli/giphy.gif
description: Recyling the gremlin states
I will figure out how to map this into the i18n library so it can be rendered.