From 78cdbd2c0395d875a6c72f1a8e6a689fb580eac8 Mon Sep 17 00:00:00 2001 From: kz-d Date: Sun, 20 Nov 2022 16:54:26 +0900 Subject: [PATCH] feat(locate): add japanese company --- src/locales/ja/company/category.ts | 15 +++++++++++++++ src/locales/ja/company/index.ts | 16 ++++++++++++++++ src/locales/ja/company/name_patterns.ts | 4 ++++ src/locales/ja/company/type.ts | 1 + src/locales/ja/index.ts | 2 ++ 5 files changed, 38 insertions(+) create mode 100644 src/locales/ja/company/category.ts create mode 100644 src/locales/ja/company/index.ts create mode 100644 src/locales/ja/company/name_patterns.ts create mode 100644 src/locales/ja/company/type.ts diff --git a/src/locales/ja/company/category.ts b/src/locales/ja/company/category.ts new file mode 100644 index 00000000000..fa12000875c --- /dev/null +++ b/src/locales/ja/company/category.ts @@ -0,0 +1,15 @@ +export default [ + '水産', + '農林', + '鉱業', + '建設', + '食品', + '印刷', + '電気', + 'ガス', + '情報', + '通信', + '運輸', + '銀行', + '保険', +]; diff --git a/src/locales/ja/company/index.ts b/src/locales/ja/company/index.ts new file mode 100644 index 00000000000..eef08ee20cc --- /dev/null +++ b/src/locales/ja/company/index.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { CompanyDefinitions } from '../../..'; +import category from './category'; +import name_patterns from './name_patterns'; +import type_ from './type'; + +const company: CompanyDefinitions = { + category, + name_patterns, + type: type_, +}; + +export default company; diff --git a/src/locales/ja/company/name_patterns.ts b/src/locales/ja/company/name_patterns.ts new file mode 100644 index 00000000000..a69d0a706a0 --- /dev/null +++ b/src/locales/ja/company/name_patterns.ts @@ -0,0 +1,4 @@ +export default [ + '{{company.type}}{{person.last_name}}{{company.category}}', + '{{person.last_name}}{{company.category}}{{company.type}}', +]; diff --git a/src/locales/ja/company/type.ts b/src/locales/ja/company/type.ts new file mode 100644 index 00000000000..f3ff4c7f5f5 --- /dev/null +++ b/src/locales/ja/company/type.ts @@ -0,0 +1 @@ +export default ['株式会社', '有限会社', '合名会社', '合資会社', '合同会社']; diff --git a/src/locales/ja/index.ts b/src/locales/ja/index.ts index 8d2400d19f6..55c308157c8 100644 --- a/src/locales/ja/index.ts +++ b/src/locales/ja/index.ts @@ -4,6 +4,7 @@ */ import type { LocaleDefinition } from '../..'; import cell_phone from './cell_phone'; +import company from './company'; import location from './location'; import lorem from './lorem'; import person from './person'; @@ -12,6 +13,7 @@ import phone_number from './phone_number'; const ja: LocaleDefinition = { title: 'Japanese', cell_phone, + company, location, lorem, person,