aboutsummaryrefslogtreecommitdiff
path: root/src/modules/location
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-03-07 10:09:29 +0100
committerGitHub <[email protected]>2023-03-07 09:09:29 +0000
commit9a35dc92260585683132172f10bcdec701ed661a (patch)
tree35a5711ba5a5fbc18a8f62515d1ae8b25af77023 /src/modules/location
parenta4d5203511e6ea7e26bc8c75baf91ee44387cac0 (diff)
downloadfaker-9a35dc92260585683132172f10bcdec701ed661a.tar.xz
faker-9a35dc92260585683132172f10bcdec701ed661a.zip
refactor!: remove dynamic locale switching support (#1735)
Diffstat (limited to 'src/modules/location')
-rw-r--r--src/modules/location/index.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts
index 2025beac..fb902588 100644
--- a/src/modules/location/index.ts
+++ b/src/modules/location/index.ts
@@ -72,8 +72,8 @@ export class LocationModule {
* If not specified, a random zip code is generated according to the locale's zip format.
*
* @example
- * fakerUS.location.zipCodeByState("AK") // '99595'
- * fakerUS.location.zipCodeByState("??") // '47683-9880'
+ * fakerEN_US.location.zipCodeByState("AK") // '99595'
+ * fakerEN_US.location.zipCodeByState("??") // '47683-9880'
*
* @since 8.0.0
*/
@@ -107,7 +107,7 @@ export class LocationModule {
*
* @example
* faker.location.city() // 'East Jarretmouth'
- * faker.locale = 'de'; faker.location.city() // 'Bad Lilianadorf'
+ * fakerDE.location.city() // 'Bad Lilianadorf'
*
* @since 8.0.0
*/
@@ -120,7 +120,7 @@ export class LocationModule {
*
* @example
* faker.location.cityName() // 'San Rafael'
- * faker.locale = 'de'; faker.location.cityName() // 'Nürnberg'
+ * fakerDE.location.cityName() // 'Nürnberg'
*
* @since 8.0.0
*/