Skip to content

Commit 62c5990

Browse files
committed
5.4: Country name localization
1 parent 1cf346c commit 62c5990

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/5.x/reference/element-types/addresses.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,13 @@ Only the two-letter “country code” is stored on addresses. To display the fu
266266

267267
Via the `Country` object, you also have access to the following data:
268268

269-
- `countryCode` — Same ISO 3166-1 alpha-2 code as was stored on `address.countryCode`.
269+
- `countryCode` — Same ISO 3166-1 alpha-2 code as was stored as `address.countryCode`.
270270
- `name` — Name of the country, localized for the current site.
271271
- `threeLetterCode` — ISO 3166-1 alpha-3 code for the country.
272272
- `numericalCode` — ISO ISO 3166-1 numeric codes.
273273
- `currencyCode` — ISO 4217 currency code (not the symbol).
274274
- `timezones` — A list of PHP timezone identifiers for the country. This is not necessarily specific to the address!
275-
- `locale`How the country’s name was localized.
275+
- `locale`The locale the country name is localized for. Defaults to the app’s current language, which might be a site’s language or a control panel user’s language preference. If you need to manually localize a country’s name, see below.
276276

277277
In earlier versions of Craft, you must directly retrieve its definition from the [address repository](#address-repository):
278278

0 commit comments

Comments
 (0)