Skip to content

Commit e7c9945

Browse files
feat(locales): add sl_SI locale, person module (#3564)
1 parent 6be2c20 commit e7c9945

24 files changed

Lines changed: 879 additions & 0 deletions

docs/guide/localization.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ In this example there are 5 locales. Each of these is checked in order, and the
110110
| `ro_MD` | Romanian (Moldova) | `fakerRO_MD` |
111111
| `ru` | Russian | `fakerRU` |
112112
| `sk` | Slovak | `fakerSK` |
113+
| `sl_SI` | Slovenian (Slovenia) | `fakerSL_SI` |
113114
| `sr_RS_latin` | Serbian (Serbia, Latin) | `fakerSR_RS_latin` |
114115
| `sv` | Swedish | `fakerSV` |
115116
| `ta_IN` | Tamil (India) | `fakerTA_IN` |

src/locale/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import { faker as fakerRO } from './ro';
6363
import { faker as fakerRO_MD } from './ro_MD';
6464
import { faker as fakerRU } from './ru';
6565
import { faker as fakerSK } from './sk';
66+
import { faker as fakerSL_SI } from './sl_SI';
6667
import { faker as fakerSR_RS_latin } from './sr_RS_latin';
6768
import { faker as fakerSV } from './sv';
6869
import { faker as fakerTA_IN } from './ta_IN';
@@ -137,6 +138,7 @@ export { faker as fakerRO } from './ro';
137138
export { faker as fakerRO_MD } from './ro_MD';
138139
export { faker as fakerRU } from './ru';
139140
export { faker as fakerSK } from './sk';
141+
export { faker as fakerSL_SI } from './sl_SI';
140142
export { faker as fakerSR_RS_latin } from './sr_RS_latin';
141143
export { faker as fakerSV } from './sv';
142144
export { faker as fakerTA_IN } from './ta_IN';
@@ -212,6 +214,7 @@ export const allFakers = {
212214
ro_MD: fakerRO_MD,
213215
ru: fakerRU,
214216
sk: fakerSK,
217+
sl_SI: fakerSL_SI,
215218
sr_RS_latin: fakerSR_RS_latin,
216219
sv: fakerSV,
217220
ta_IN: fakerTA_IN,

src/locale/sl_SI.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* This file is automatically generated.
3+
* Run 'pnpm run generate:locales' to update.
4+
*/
5+
6+
import { Faker } from '../faker';
7+
import base from '../locales/base';
8+
import en from '../locales/en';
9+
import sl_SI from '../locales/sl_SI';
10+
11+
/**
12+
* The faker instance for the `sl_SI` locale.
13+
*
14+
* - Language: Slovenian (Slovenia)
15+
* - Endonym: Slovensko (Slovenia)
16+
*
17+
* This instance uses the following locales internally (in descending precedence):
18+
*
19+
* - `sl_SI`
20+
* - `en`
21+
* - `base`
22+
*/
23+
export const faker = new Faker({
24+
locale: [sl_SI, en, base],
25+
});

src/locales/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import ro from './ro';
6363
import ro_MD from './ro_MD';
6464
import ru from './ru';
6565
import sk from './sk';
66+
import sl_SI from './sl_SI';
6667
import sr_RS_latin from './sr_RS_latin';
6768
import sv from './sv';
6869
import ta_IN from './ta_IN';
@@ -137,6 +138,7 @@ export { default as ro } from './ro';
137138
export { default as ro_MD } from './ro_MD';
138139
export { default as ru } from './ru';
139140
export { default as sk } from './sk';
141+
export { default as sl_SI } from './sl_SI';
140142
export { default as sr_RS_latin } from './sr_RS_latin';
141143
export { default as sv } from './sv';
142144
export { default as ta_IN } from './ta_IN';
@@ -212,6 +214,7 @@ export const allLocales = {
212214
ro_MD,
213215
ru,
214216
sk,
217+
sl_SI,
215218
sr_RS_latin,
216219
sv,
217220
ta_IN,

src/locales/sl_SI/index.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* This file is automatically generated.
3+
* Run 'pnpm run generate:locales' to update.
4+
*/
5+
import type { LocaleDefinition } from '../..';
6+
import metadata from './metadata';
7+
import person from './person';
8+
9+
/**
10+
* The locale data for the `sl_SI` locale.
11+
*
12+
* - Language: Slovenian (Slovenia)
13+
* - Endonym: Slovensko (Slovenia)
14+
*/
15+
const sl_SI: LocaleDefinition = {
16+
metadata,
17+
person,
18+
};
19+
20+
export default sl_SI;

src/locales/sl_SI/metadata.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import type { PreBuiltMetadataDefinitionForCountry } from '../../definitions/metadata';
2+
3+
const metadata: PreBuiltMetadataDefinitionForCountry = {
4+
title: 'Slovenian (Slovenia)',
5+
code: 'sl_SI',
6+
country: 'SI',
7+
language: 'sl',
8+
endonym: 'Slovensko (Slovenia)',
9+
dir: 'ltr',
10+
script: 'Latn',
11+
};
12+
13+
export default metadata;
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
export default [
2+
'aktivist',
3+
'avtor',
4+
'bloger',
5+
'diplomant',
6+
'domoljub',
7+
'filmozof',
8+
'filmski ustvarjalec',
9+
'fotograf',
10+
'glasbenik',
11+
'igralec videoiger',
12+
'inženir',
13+
'izobraževalec',
14+
'izumitelj',
15+
'javni govorec',
16+
'lastnik podjetja',
17+
'ljubitelj filma',
18+
'ljubitelj hrane',
19+
'oseba',
20+
'pevec',
21+
'piflar',
22+
'pisatelj',
23+
'podjetnik',
24+
'popotnik',
25+
'prijatelj',
26+
'razvijalec',
27+
'starš',
28+
'streamer',
29+
'študent',
30+
'učitelj',
31+
'umetnik',
32+
'ustanovitelj',
33+
'ustvarjalec',
34+
'veteran',
35+
'vodja',
36+
'znanstvenik',
37+
];
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export default [
2+
'{{person.bio_part}}',
3+
'{{person.bio_part}}, {{person.bio_part}}',
4+
'{{person.bio_part}}, {{person.bio_part}}, {{person.bio_part}}',
5+
'{{person.bio_part}}, {{person.bio_part}}, {{person.bio_part}} {{internet.emoji}}',
6+
'{{word.noun}} {{person.bio_supporter}}',
7+
'{{word.noun}} {{person.bio_supporter}} {{internet.emoji}}',
8+
'{{word.noun}} {{person.bio_supporter}}, {{person.bio_part}}',
9+
'{{word.noun}} {{person.bio_supporter}}, {{person.bio_part}} {{internet.emoji}}',
10+
];
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export default [
2+
'navdušenec',
3+
'oboževalec',
4+
'podpornik',
5+
'pristaš',
6+
'privrženec',
7+
'zagrizenec',
8+
'zanesenjak',
9+
];

0 commit comments

Comments
 (0)