diff options
| author | Zach Wang <[email protected]> | 2023-06-17 08:02:55 +1200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-16 20:02:55 +0000 |
| commit | c3b540fa501ba4729350562f38872df35f23818c (patch) | |
| tree | 6173950cef5eb16a9864bb371920d2f73eebe31a /src | |
| parent | 7687511bddf9c7b9721bb2203f86d64dfbd1a9c4 (diff) | |
| download | faker-c3b540fa501ba4729350562f38872df35f23818c.tar.xz faker-c3b540fa501ba4729350562f38872df35f23818c.zip | |
feat(locale): add company name to zh_CN (#2203)
Diffstat (limited to 'src')
| -rw-r--r-- | src/locales/zh_CN/company/category.ts | 16 | ||||
| -rw-r--r-- | src/locales/zh_CN/company/index.ts | 16 | ||||
| -rw-r--r-- | src/locales/zh_CN/company/name_pattern.ts | 4 | ||||
| -rw-r--r-- | src/locales/zh_CN/company/type.ts | 9 | ||||
| -rw-r--r-- | src/locales/zh_CN/index.ts | 2 |
5 files changed, 47 insertions, 0 deletions
diff --git a/src/locales/zh_CN/company/category.ts b/src/locales/zh_CN/company/category.ts new file mode 100644 index 00000000..c58bbcb7 --- /dev/null +++ b/src/locales/zh_CN/company/category.ts @@ -0,0 +1,16 @@ +export default [ + '水产', + '林业', + '矿业', + '建设', + '食品', + '印刷', + '电力', + '燃气', + '网络科技', + '物流', + '保险', + '旅游发展', + '传媒', + '运输', +]; diff --git a/src/locales/zh_CN/company/index.ts b/src/locales/zh_CN/company/index.ts new file mode 100644 index 00000000..290ceacf --- /dev/null +++ b/src/locales/zh_CN/company/index.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { CompanyDefinition } from '../../..'; +import category from './category'; +import name_pattern from './name_pattern'; +import type_ from './type'; + +const company: CompanyDefinition = { + category, + name_pattern, + type: type_, +}; + +export default company; diff --git a/src/locales/zh_CN/company/name_pattern.ts b/src/locales/zh_CN/company/name_pattern.ts new file mode 100644 index 00000000..4877a982 --- /dev/null +++ b/src/locales/zh_CN/company/name_pattern.ts @@ -0,0 +1,4 @@ +export default [ + '{{location.state}}{{person.first_name}}{{company.category}}{{company.type}}', + '{{location.city}}{{person.first_name}}{{company.category}}{{company.type}}', +]; diff --git a/src/locales/zh_CN/company/type.ts b/src/locales/zh_CN/company/type.ts new file mode 100644 index 00000000..b40e55cf --- /dev/null +++ b/src/locales/zh_CN/company/type.ts @@ -0,0 +1,9 @@ +export default [ + '有限责任公司', + '股份有限公司', + '有限公司', + '(集团)有限公司', + '集团有限公司', + '无限公司', + '无限责任公司', +]; diff --git a/src/locales/zh_CN/index.ts b/src/locales/zh_CN/index.ts index f5180eef..91cd9e55 100644 --- a/src/locales/zh_CN/index.ts +++ b/src/locales/zh_CN/index.ts @@ -3,6 +3,7 @@ * Run 'pnpm run generate:locales' to update. */ import type { LocaleDefinition } from '../..'; +import company from './company'; import internet from './internet'; import location from './location'; import metadata from './metadata'; @@ -10,6 +11,7 @@ import person from './person'; import phone_number from './phone_number'; const zh_CN: LocaleDefinition = { + company, internet, location, metadata, |
