Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: clarify that location.state refers to ISO 3166-2 #2574

Merged
merged 3 commits into from
Dec 12, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/modules/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ export class LocationModule extends ModuleBase {

/**
* Returns a random localized state, or other equivalent first-level administrative entity for the locale's country such as a province or region.
* Generally, these are the ISO 3166-2 subdivisions for a country. However, not all locales have a country attached to them (e.g. en, ar, es).
ejcheng marked this conversation as resolved.
Show resolved Hide resolved
*
* @param options An options object.
* @param options.abbreviated If true this will return abbreviated first-level administrative entity names.
Expand Down