Comments (3)
I don't think there's anything currently built in that would allow us to document the params in the YAML but only have them included in the Nunjucks macro options only once.
If we wanted to do the 'easiest thing' we could include the various pluralisable phrases in the YAML, document them as 'objects', but not to list the individual params in the YAML file. Instead we could put a link in the description to somewhere else (in the frontend docs?) where we can explain how they work in more detail.
Something like:
- name: charactersOverLimitText
type: object
required: false
description: Override the phrases used when the user has entered a number of characters that exceeds the limit. See [Understanding pluralisation rules](https://frontend.design-system.service.gov.uk/localising-govuk-frontend#understanding-pluralisation-rules).
- name: charactersUnderLimitText
type: object
required: false
description: Override the phrases used when the user has entered a number of characters that is under the limit. See [Understanding pluralisation rules](https://frontend.design-system.service.gov.uk/localising-govuk-frontend#understanding-pluralisation-rules).
There's lots of reasons why this might be confusing (it's inconsistent with how we document other options with known key/value pairs, for example) but it wouldn't avoid any code changes.
from govuk-design-system.
Do I remember correctly that, when we met to discuss this, we agreed to get started using Ollie's solution of linking to wherever the documentation about pluralisation lives?
If so, let's remove this issue from the milestone 😄 I'd be keen to keep it open, as we may want to work out how not to send people somewhere else (unless there's a wider issue for addressing the rendering of that Nunjucks table).
from govuk-design-system.
We're adding links between the options table and the pluralisation rules. The URLs will need to be double-checked once the documentation is added in a PR.
from govuk-design-system.
Related Issues (20)
- Comms for this (1 1/2 weeks to communicate before event), Ideally end of week 2 HOT 1
- Create the slides for the workshop HOT 1
- Transfer data to spreadsheet HOT 1
- Analyse quantitative data HOT 1
- Analyse free text data
- Compare results with previous years where appropriate
- Provide recommendations for further action where appropriate
- Follow up with respondents that have consented to ask permission to store data in DSP panel for future research
- Create a presentation HOT 1
- Share findings with team
- Prepare presentation and share findings with wider GDS (stretch, depends on timing)
- Prepare presentation and share findings with community (stretch, depends on timing)
- Reflect on any changes that are needed for the next UX survey HOT 1
- Design System Users Research HOT 1
- Build a prototype of an information database using Airtable HOT 1
- Build a prototype of an information database using Notion HOT 1
- Collect and analyse priority information from a service HOT 1
- It's not clear if the cookie banner should appear on the cookies page itself
- Allow to check if NI number is valid?
- Decide shape of a steering/working group HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from govuk-design-system.