aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBence Szalai <[email protected]>2023-01-20 22:05:40 +0100
committerGitHub <[email protected]>2023-01-20 21:05:40 +0000
commit2e6b136c61a7cfc799c72a86a38ca4a505d94e3c (patch)
tree3ef59aac3452516af3125a6a00de9ffc8116f1af /src
parent1e4e8699e59f3b5b9c1e1d6ad9b89ee4cc254e95 (diff)
downloadfaker-2e6b136c61a7cfc799c72a86a38ca4a505d94e3c.tar.xz
faker-2e6b136c61a7cfc799c72a86a38ca4a505d94e3c.zip
feat(company): add realistic Hungarian company names (#1758)
Diffstat (limited to 'src')
-rw-r--r--src/locales/hu/company/index.ts14
-rw-r--r--src/locales/hu/company/name_patterns.ts6
-rw-r--r--src/locales/hu/company/suffix.ts1
-rw-r--r--src/locales/hu/index.ts2
4 files changed, 23 insertions, 0 deletions
diff --git a/src/locales/hu/company/index.ts b/src/locales/hu/company/index.ts
new file mode 100644
index 00000000..94e1daa3
--- /dev/null
+++ b/src/locales/hu/company/index.ts
@@ -0,0 +1,14 @@
+/*
+ * This file is automatically generated.
+ * Run 'pnpm run generate:locales' to update.
+ */
+import type { CompanyDefinitions } from '../../..';
+import name_patterns from './name_patterns';
+import suffix from './suffix';
+
+const company: CompanyDefinitions = {
+ name_patterns,
+ suffix,
+};
+
+export default company;
diff --git a/src/locales/hu/company/name_patterns.ts b/src/locales/hu/company/name_patterns.ts
new file mode 100644
index 00000000..1bf8edbc
--- /dev/null
+++ b/src/locales/hu/company/name_patterns.ts
@@ -0,0 +1,6 @@
+export default [
+ '{{person.last_name}} {{company.suffix}}',
+ '{{person.last_name}} és {{person.last_name}} {{company.suffix}}',
+ '{{person.last_name}} és Tsa. {{company.suffix}}',
+ '{{person.last_name}} 2000 {{company.suffix}}',
+];
diff --git a/src/locales/hu/company/suffix.ts b/src/locales/hu/company/suffix.ts
new file mode 100644
index 00000000..584776b5
--- /dev/null
+++ b/src/locales/hu/company/suffix.ts
@@ -0,0 +1 @@
+export default ['Kft.', 'Bt.', 'Zrt.', 'Nyrt.', 'Kv.', 'Kkt.'];
diff --git a/src/locales/hu/index.ts b/src/locales/hu/index.ts
index f093b93b..f122d5e2 100644
--- a/src/locales/hu/index.ts
+++ b/src/locales/hu/index.ts
@@ -5,6 +5,7 @@
import type { LocaleDefinition } from '../..';
import animal from './animal';
import commerce from './commerce';
+import company from './company';
import date from './date';
import finance from './finance';
import internet from './internet';
@@ -16,6 +17,7 @@ const hu: LocaleDefinition = {
title: 'Hungarian',
animal,
commerce,
+ company,
date,
finance,
internet,