Skip to content

Commit 8a2d20a

Browse files
authored
Merge pull request #24 from xefi/fr_ch-language
Add fr_CH language
2 parents e40c26a + db70ae1 commit 8a2d20a

File tree

1 file changed

+143
-0
lines changed

1 file changed

+143
-0
lines changed

content/3.locales/fr-ch.md

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
---
2+
title: French (Swiss)
3+
description: French Swiss locale for Xefi Faker PHP
4+
---
5+
6+
You need to require the locale to be able to use it
7+
```bash
8+
composer require --dev xefi/faker-php-locales-fr-ch
9+
```
10+
11+
Be sure to setup faker with the `fr_CH` locale to be able to use this:
12+
13+
```php
14+
$faker = new Xefi\Faker\Faker('fr_CH');
15+
```
16+
17+
## Address
18+
19+
#### Region
20+
```php
21+
$faker->region(); // Suisse romande
22+
```
23+
24+
#### Province (canton)
25+
```php
26+
$faker->province(); // Valais
27+
```
28+
29+
#### City
30+
```php
31+
$faker->city(); // Genève
32+
```
33+
34+
#### Post code
35+
```php
36+
$faker->postCode(); // 2805
37+
```
38+
39+
#### House Number
40+
```php
41+
$faker->houseNumber(); // 181
42+
```
43+
44+
#### Street Name
45+
```php
46+
$faker->streetName(); // Route du Marché
47+
```
48+
49+
#### Street Address
50+
```php
51+
$faker->streetAddress(); // Route du Marché 181
52+
```
53+
54+
#### Full Address
55+
```php
56+
$faker->fullAddress(); // Route du Marché 181, 2805 Genève
57+
```
58+
59+
## Colors
60+
61+
#### Safe Color Name
62+
63+
```php
64+
$faker->safeColorName(); // Noir
65+
```
66+
67+
#### Color Name
68+
```php
69+
$faker->colorName() // Blanc antique
70+
```
71+
72+
## Company
73+
74+
#### Company
75+
```php
76+
$faker->company(); // Nestlé Suisse SA
77+
```
78+
79+
#### Company number
80+
```php
81+
$faker->companyNumber(); // CHE-380.842.438
82+
```
83+
84+
#### VAT Number
85+
```php
86+
$faker->vat(); // CHE-380.842.438 TVA
87+
```
88+
89+
## Financial
90+
91+
#### Iban
92+
93+
Please see [base method](/extensions/financial#iban) for details
94+
95+
```php
96+
$faker->iban(countryCode: 'CH', format: 'See code') // CH6757112815366133814
97+
```
98+
99+
## Person
100+
101+
#### Name
102+
```php
103+
// Gender: null(both), "M" (male) or "F" (female)
104+
$faker->name(gender: 'F') // Anna Steiner
105+
```
106+
107+
#### Firstname
108+
```php
109+
// Gender: null(both), "M" (male) or "F" (female)
110+
$faker->firstName(gender: 'F') // Anna
111+
```
112+
113+
#### Lastname
114+
```php
115+
$faker->lastName() // Steiner
116+
```
117+
118+
#### AVS
119+
120+
```php
121+
// Formated: "756.xxxx.xxxx.xx"
122+
$faker->avs(formated: false) // 7564038982068
123+
```
124+
125+
## Text
126+
127+
#### Words
128+
129+
```php
130+
$faker->words(words: 3); // communication productivité proposés
131+
```
132+
133+
#### Sentences
134+
135+
```php
136+
$faker->sentences(sentences: 3); // Des indicateurs sont utilisés pour mesurer...
137+
```
138+
139+
#### Paragraphs
140+
141+
```php
142+
$faker->paragraphs(paragraphs: 3); // Des indicateurs sont utilisés pour mesurer...
143+
```

0 commit comments

Comments
 (0)