-
Notifications
You must be signed in to change notification settings - Fork 212
/
fr.ex
44 lines (41 loc) · 1.06 KB
/
fr.ex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
defmodule Faker.Aws.Fr do
import Faker, only: [sampler: 2]
@moduledoc """
Functions for generating AWS information in French
"""
@doc """
Returns a random region name available on AWS in French
## Examples
iex> Faker.Aws.Fr.region_name()
"Asie Pacifique (Tokyo)"
iex> Faker.Aws.Fr.region_name()
"USA Est (Ohio)"
iex> Faker.Aws.Fr.region_name()
"Europe (Milan)"
iex> Faker.Aws.Fr.region_name()
"Afrique (Le Cap)"
"""
@spec region_name() :: String.t()
sampler(:region_name, [
"USA Est (Virginie du Nord)",
"USA Est (Ohio)",
"USA Ouest (Californie du Nord)",
"USA Ouest (Oregon)",
"Afrique (Le Cap)",
"Asie Pacifique (Hong Kong)",
"Asie Pacifique (Mumbai)",
"Asie Pacifique (Seoul)",
"Asie Pacifique (Singapore)",
"Asie Pacifique (Sydney)",
"Asie Pacifique (Tokyo)",
"Canada (Central)",
"Europe (Frankfurt)",
"Europe (Ireland)",
"Europe (London)",
"Europe (Milan)",
"Europe (Paris)",
"Europe (Stockholm)",
"Moyen-Orient (Bahreïn)",
"Amérique du Sud (São Paulo)"
])
end