Skip to content

Commit

Permalink
chore(Docs): replace all instances of postal code with postcode to ad…
Browse files Browse the repository at this point in the history
…here to british spelling standards (#3259)
  • Loading branch information
joakbjerk authored Jan 22, 2024
1 parent dcf3a8b commit a9223c3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 'PostalCodeAndCity'
description: '`Field.PostalCodeAndCity` is a wrapper component for input of two separate values with user experience tailored for postal code and city values.'
description: '`Field.PostalCodeAndCity` is a wrapper component for input of two separate values with user experience tailored for postcode and city values.'
showTabs: true
theme: 'sbanken'
tabs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ showTabs: true

## Description

`Field.PostalCodeAndCity` is a wrapper component for input of two separate [input of strings](/uilib/extensions/forms/base-fields/String) with user experience tailored for postal code and city values.
`Field.PostalCodeAndCity` is a wrapper component for input of two separate [input of strings](/uilib/extensions/forms/base-fields/String) with user experience tailored for postcode and city values.

These fields is meant for Norwegian postal codes and cities. The postal code input takes a 4-digit string as values, since its meant for norwegian postal codes. A norwegian postal code can have a leading zero, which is why the value is a string and not a number.
More info about postal codes can be found at [Posten](https://www.bring.no/tjenester/adressetjenester/postnummer).
These fields is meant for Norwegian postcodes and cities. The postcode input takes a 4-digit string as values, since its meant for norwegian postcodes. A norwegian postcode can have a leading zero, which is why the value is a string and not a number.
More info about postcodes can be found at [Posten](https://www.bring.no/tjenester/adressetjenester/postnummer).

```jsx
import { Field } from '@dnb/eufemia/extensions/forms'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ showTabs: true

## Properties

| Property | Type | Description |
| ---------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------- |
| `help` | `object` | _(optional)_ Provide a help button. Object consisting of `title` and `content`. |
| `postalCode` | `object` | _(required)_ Properties for the [Field.String](/uilib/extensions/forms/base-fields/String/) component for postal code. |
| `city` | `object` | _(required)_ Properties for the [Field.String](/uilib/extensions/forms/base-fields/String/) component for city. |
| [Space](/uilib/layout/space/properties) | Various | _(optional)_ Spacing properties like `top` or `bottom` are supported. |
| [FieldBlockProps](/uilib/extensions/forms/create-component/FieldBlock/properties/) | Various | _(optional)_ `FieldBlockProps` properties. |
| Property | Type | Description |
| ---------------------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------- |
| `help` | `object` | _(optional)_ Provide a help button. Object consisting of `title` and `content`. |
| `postalCode` | `object` | _(required)_ Properties for the [Field.String](/uilib/extensions/forms/base-fields/String/) component for postcode. |
| `city` | `object` | _(required)_ Properties for the [Field.String](/uilib/extensions/forms/base-fields/String/) component for city. |
| [Space](/uilib/layout/space/properties) | Various | _(optional)_ Spacing properties like `top` or `bottom` are supported. |
| [FieldBlockProps](/uilib/extensions/forms/create-component/FieldBlock/properties/) | Various | _(optional)_ `FieldBlockProps` properties. |
4 changes: 2 additions & 2 deletions packages/dnb-eufemia/src/shared/locales/en-GB.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ export default {
phoneNumberLabel: 'Mobile number',
phoneNumberErrorRequired: 'You must enter a valid number',
postalCodeLabel: 'Postalc.',
postalCodeErrorRequired: 'You must enter a postal code',
postalCodeErrorPattern: 'This is not a valid postal code',
postalCodeErrorRequired: 'You must enter a postcode',
postalCodeErrorPattern: 'This is not a valid postcode',
cityLabel: 'City',
cityErrorRequired: 'You must enter a city',
selectCountryLabel: 'Country',
Expand Down

0 comments on commit a9223c3

Please sign in to comment.