aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Pierre Carvalho <[email protected]>2024-08-15 22:59:02 +0100
committerGitHub <[email protected]>2024-08-15 21:59:02 +0000
commit0fd0402aa96818c8c3af1defc816ffcffadbb1fe (patch)
tree8899033b523358b0040abab223a29370c5a03dc5 /src
parenta210619c3cd6d802f8a80e3db68c96b444d15a64 (diff)
downloadfaker-0fd0402aa96818c8c3af1defc816ffcffadbb1fe.tar.xz
faker-0fd0402aa96818c8c3af1defc816ffcffadbb1fe.zip
feat(locale): implement company info on pt_PT locale (#3022)
Diffstat (limited to 'src')
-rw-r--r--src/locales/pt_PT/company/index.ts14
-rw-r--r--src/locales/pt_PT/company/legal_entity_type.ts7
-rw-r--r--src/locales/pt_PT/company/name_pattern.ts4
-rw-r--r--src/locales/pt_PT/index.ts2
4 files changed, 27 insertions, 0 deletions
diff --git a/src/locales/pt_PT/company/index.ts b/src/locales/pt_PT/company/index.ts
new file mode 100644
index 00000000..86925375
--- /dev/null
+++ b/src/locales/pt_PT/company/index.ts
@@ -0,0 +1,14 @@
+/*
+ * This file is automatically generated.
+ * Run 'pnpm run generate:locales' to update.
+ */
+import type { CompanyDefinition } from '../../..';
+import legal_entity_type from './legal_entity_type';
+import name_pattern from './name_pattern';
+
+const company: CompanyDefinition = {
+ legal_entity_type,
+ name_pattern,
+};
+
+export default company;
diff --git a/src/locales/pt_PT/company/legal_entity_type.ts b/src/locales/pt_PT/company/legal_entity_type.ts
new file mode 100644
index 00000000..2a91fd9d
--- /dev/null
+++ b/src/locales/pt_PT/company/legal_entity_type.ts
@@ -0,0 +1,7 @@
+export default [
+ 'EI', // Empresário em Nome Individual: Sole Proprietorship
+ 'LDA', // Sociedade por Quotas: Private Limited Company
+ 'SA', // Sociedade Anónima: Public Limited Company
+ 'SCR', // Sociedade de Capital de Risco: Venture Capital Company
+ 'ULTDA', // Sociedade Unipessoal por Quotas: Single Shareholder Private Limited Company
+];
diff --git a/src/locales/pt_PT/company/name_pattern.ts b/src/locales/pt_PT/company/name_pattern.ts
new file mode 100644
index 00000000..644a85da
--- /dev/null
+++ b/src/locales/pt_PT/company/name_pattern.ts
@@ -0,0 +1,4 @@
+export default [
+ '{{person.last_name.generic}} e {{person.last_name.generic}}',
+ '{{person.last_name.generic}} {{company.legal_entity_type}}',
+];
diff --git a/src/locales/pt_PT/index.ts b/src/locales/pt_PT/index.ts
index 612a97c1..e60fe0ab 100644
--- a/src/locales/pt_PT/index.ts
+++ b/src/locales/pt_PT/index.ts
@@ -6,6 +6,7 @@ import type { LocaleDefinition } from '../..';
import cell_phone from './cell_phone';
import color from './color';
import commerce from './commerce';
+import company from './company';
import date from './date';
import internet from './internet';
import location from './location';
@@ -17,6 +18,7 @@ const pt_PT: LocaleDefinition = {
cell_phone,
color,
commerce,
+ company,
date,
internet,
location,