Skip to content

Commit

Permalink
Prefer “browser console” wording
Browse files Browse the repository at this point in the history
Chrome and Safari say “JavaScript Console” but we’ll keep it generic like Firefox: https://firefox-source-docs.mozilla.org/devtools-user/browser_console/
  • Loading branch information
colinrotherham committed Dec 8, 2023
1 parent fbb8fa0 commit c257143
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ We encourage the use of ECMAScript (ES) modules. For projects that cannot use th

### If your JavaScript is not working properly

If your site has a Content Security Policy (CSP), the CSP may block the inline JavaScript in the page template. You may see a warning like the following in your browser's developer tools:
If your site has a Content Security Policy (CSP), the CSP may block the inline JavaScript in the page template. You may see a warning like the following in your browser console:

```
Refused to execute inline script because it violates the following Content Security Policy directive: "default-src 'self'".
Expand Down
2 changes: 1 addition & 1 deletion source/install-using-precompiled-files/index.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ You’ll not be able to:

4. Replace `<!-- component HTML -->` with the accordion HTML you copied.

5. Run your application and check for errors in the browser's console - it should work the same way as the [Design System accordion example](https://design-system.service.gov.uk/components/accordion/default/index.html) by selecting the buttons and checking the accordion ‘shows’ and ‘hides’ sections.
5. Run your application and check for errors in the browser console - it should work the same way as the [Design System accordion example](https://design-system.service.gov.uk/components/accordion/default/index.html) by selecting the buttons and checking the accordion ‘shows’ and ‘hides’ sections.

You can now get the full code for page layouts and other components from the [Design System website](https://design-system.service.gov.uk/).

Expand Down
2 changes: 1 addition & 1 deletion source/localise-govuk-frontend/index.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ The forms for each language will differ depending on its pluralisation. For exam

You should use a professional translation service to make sure your translation is accurate and that you're using the correct pluralisation form. You can also check [the Unicode Common Locale Data Repository documentation for guidance on which of these forms your locale requires and what `few` and `many` might represent for it](https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/language_plural_rules.html).

When providing text with plural forms, you'll need to pass an object associating each plural category with the text for that form. If you do not provide the required plural form for the locale, the component will fall back to the "other" form and warn you in the browser's console.
When providing text with plural forms, you'll need to pass an object associating each plural category with the text for that form. If you do not provide the required plural form for the locale, the component will fall back to the "other" form and warn you in the browser console.

If you're looking to keep English messages and override only one of the plural forms (`one` or `other`), you can only provide that specific form and it will be merged with our defaults.

Expand Down

0 comments on commit c257143

Please sign in to comment.