Skip to content

Commit 1f763f8

Browse files
authored
refactor(locale): rename ge to ka_GE (#2010)
1 parent cbbc076 commit 1f763f8

42 files changed

Lines changed: 35 additions & 21 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/guide/localization.md

Lines changed: 1 addition & 1 deletion

docs/guide/upgrading.md

Lines changed: 3 additions & 1 deletion

src/locale/ge.ts

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
/*
2-
* This file is automatically generated.
3-
* Run 'pnpm run generate:locales' to update.
4-
*/
1+
import { deprecated } from '../internal/deprecated';
2+
import { faker as ka_GE } from './ka_GE';
53

6-
import { Faker } from '../faker';
7-
import base from '../locales/base';
8-
import en from '../locales/en';
9-
import ge from '../locales/ge';
10-
11-
export const faker = new Faker({
12-
locale: [ge, en, base],
13-
});
4+
export const faker = (() => {
5+
deprecated({
6+
deprecated: "import { faker } from '@faker-js/faker/locale/ge'",
7+
proposed: "import { faker } from '@faker-js/faker/locale/ka_GE'",
8+
since: '8.0',
9+
until: '9.0',
10+
});
11+
return ka_GE;
12+
})();

src/locale/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ import { faker as fakerFR_BE } from './fr_BE';
3434
import { faker as fakerFR_CA } from './fr_CA';
3535
import { faker as fakerFR_CH } from './fr_CH';
3636
import { faker as fakerFR_LU } from './fr_LU';
37-
import { faker as fakerGE } from './ge';
3837
import { faker as fakerHE } from './he';
3938
import { faker as fakerHR } from './hr';
4039
import { faker as fakerHU } from './hu';
4140
import { faker as fakerHY } from './hy';
4241
import { faker as fakerID_ID } from './id_ID';
4342
import { faker as fakerIT } from './it';
4443
import { faker as fakerJA } from './ja';
44+
import { faker as fakerKA_GE } from './ka_GE';
4545
import { faker as fakerKO } from './ko';
4646
import { faker as fakerLV } from './lv';
4747
import { faker as fakerMK } from './mk';
@@ -98,14 +98,14 @@ export {
9898
fakerFR_CA,
9999
fakerFR_CH,
100100
fakerFR_LU,
101-
fakerGE,
102101
fakerHE,
103102
fakerHR,
104103
fakerHU,
105104
fakerHY,
106105
fakerID_ID,
107106
fakerIT,
108107
fakerJA,
108+
fakerKA_GE,
109109
fakerKO,
110110
fakerLV,
111111
fakerMK,
@@ -163,14 +163,14 @@ export const allFakers = {
163163
fr_CA: fakerFR_CA,
164164
fr_CH: fakerFR_CH,
165165
fr_LU: fakerFR_LU,
166-
ge: fakerGE,
167166
he: fakerHE,
168167
hr: fakerHR,
169168
hu: fakerHU,
170169
hy: fakerHY,
171170
id_ID: fakerID_ID,
172171
it: fakerIT,
173172
ja: fakerJA,
173+
ka_GE: fakerKA_GE,
174174
ko: fakerKO,
175175
lv: fakerLV,
176176
mk: fakerMK,

src/locale/ka_GE.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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 ka_GE from '../locales/ka_GE';
10+
11+
export const faker = new Faker({
12+
locale: [ka_GE, en, base],
13+
});

src/locales/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ export { default as fr_BE } from './fr_BE';
3434
export { default as fr_CA } from './fr_CA';
3535
export { default as fr_CH } from './fr_CH';
3636
export { default as fr_LU } from './fr_LU';
37-
export { default as ge } from './ge';
3837
export { default as he } from './he';
3938
export { default as hr } from './hr';
4039
export { default as hu } from './hu';
4140
export { default as hy } from './hy';
4241
export { default as id_ID } from './id_ID';
4342
export { default as it } from './it';
4443
export { default as ja } from './ja';
44+
export { default as ka_GE } from './ka_GE';
4545
export { default as ko } from './ko';
4646
export { default as lv } from './lv';
4747
export { default as mk } from './mk';
File renamed without changes.

0 commit comments

Comments
 (0)