Skip to content

Commit 28aba63

Browse files
committed
chore: rename generation command
1 parent d80e22b commit 28aba63

Some content is hidden

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

60 files changed

+63
-61
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion

docs/api/localization.md

Lines changed: 1 addition & 1 deletion

scripts/generateLocales.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const pathDocsApiLocalization = resolve(
1515
'localization.md'
1616
);
1717

18+
const scriptCommand = 'pnpm run generate:locales';
19+
1820
const locales = readdirSync(pathLocales);
1921
locales.splice(locales.indexOf('index.ts'), 1);
2022

@@ -26,7 +28,7 @@ let localizationLocales = '| Locale | Name |\n| :--- | :--- |\n';
2628

2729
const autoGeneratedCommentHeader = `/*
2830
* This file is automatically generated.
29-
* Run 'pnpm run generate' to update.
31+
* Run '${scriptCommand}' to update.
3032
*/`;
3133

3234
for (let locale of locales) {
@@ -93,6 +95,6 @@ localizationLocales = format(localizationLocales, {
9395
let localizationContent = readFileSync(pathDocsApiLocalization, 'utf-8');
9496
localizationContent = localizationContent.replace(
9597
/(^<!-- LOCALES-AUTO-GENERATED-START -->$).*(^<!-- LOCALES-AUTO-GENERATED-END -->$)/gms,
96-
`$1\n\n<!-- Run 'pnpm run generate' to update. -->\n\n${localizationLocales}\n$2`
98+
`$1\n\n<!-- Run '${scriptCommand}' to update. -->\n\n${localizationLocales}\n$2`
9799
);
98100
writeFileSync(pathDocsApiLocalization, localizationContent);

src/locale/af_ZA.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/ar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/az.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/cz.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/de.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/de_AT.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/de_CH.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/el.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/en_AU.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/en_AU_ocker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/en_BORK.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/en_CA.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/en_GB.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/en_GH.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/en_IE.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/en_IND.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/en_NG.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/en_US.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/en_ZA.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/es.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/es_MX.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/fa.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/fi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/fr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/fr_BE.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/fr_CA.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/fr_CH.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/ge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/he.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/hr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/hy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/id_ID.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/it.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/ja.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/ko.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/lv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/mk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/nb_NO.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/ne.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/nl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/nl_BE.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/pl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

src/locale/pt_BR.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is automatically generated.
3-
* Run 'pnpm run generate' to update.
3+
* Run 'pnpm run generate:locales' to update.
44
*/
55

66
import { Faker } from '..';

0 commit comments

Comments
 (0)