From b0cccb28338875cb24e9b84c185be66d664cfc0d Mon Sep 17 00:00:00 2001 From: Shinigami92 Date: Fri, 27 Jan 2023 18:23:38 +0100 Subject: [PATCH] move more stuff to global --- src/locales/en/color/index.ts | 2 -- src/locales/en/database/index.ts | 6 ------ src/locales/en/hacker/index.ts | 2 -- src/locales/en/index.ts | 2 -- src/locales/en/internet/index.ts | 2 -- src/locales/en/location/index.ts | 6 ------ src/locales/global/color/index.ts | 12 ++++++++++++ src/locales/{en => global}/color/space.ts | 0 src/locales/{en => global}/database/collation.ts | 0 src/locales/{en => global}/database/engine.ts | 0 src/locales/global/database/index.ts | 16 ++++++++++++++++ src/locales/{en => global}/database/type.ts | 0 .../{en => global}/hacker/abbreviation.ts | 0 src/locales/global/hacker/index.ts | 12 ++++++++++++ src/locales/global/index.ts | 10 ++++++++++ .../{en => global}/internet/http_status_code.ts | 0 src/locales/global/internet/index.ts | 2 ++ .../{en => global}/location/country_code.ts | 0 .../location/country_code_alpha_3.ts | 0 src/locales/global/location/index.ts | 16 ++++++++++++++++ src/locales/{en => global}/location/time_zone.ts | 0 .../{en => global}/system/directoryPaths.ts | 0 src/locales/{en => global}/system/index.ts | 0 src/locales/{en => global}/system/mimeTypes.ts | 0 24 files changed, 68 insertions(+), 20 deletions(-) create mode 100644 src/locales/global/color/index.ts rename src/locales/{en => global}/color/space.ts (100%) rename src/locales/{en => global}/database/collation.ts (100%) rename src/locales/{en => global}/database/engine.ts (100%) create mode 100644 src/locales/global/database/index.ts rename src/locales/{en => global}/database/type.ts (100%) rename src/locales/{en => global}/hacker/abbreviation.ts (100%) create mode 100644 src/locales/global/hacker/index.ts rename src/locales/{en => global}/internet/http_status_code.ts (100%) rename src/locales/{en => global}/location/country_code.ts (100%) rename src/locales/{en => global}/location/country_code_alpha_3.ts (100%) create mode 100644 src/locales/global/location/index.ts rename src/locales/{en => global}/location/time_zone.ts (100%) rename src/locales/{en => global}/system/directoryPaths.ts (100%) rename src/locales/{en => global}/system/index.ts (100%) rename src/locales/{en => global}/system/mimeTypes.ts (100%) diff --git a/src/locales/en/color/index.ts b/src/locales/en/color/index.ts index 2f84c198438..79cc39f02f3 100644 --- a/src/locales/en/color/index.ts +++ b/src/locales/en/color/index.ts @@ -4,11 +4,9 @@ */ import type { ColorDefinitions } from '../../..'; import human from './human'; -import space from './space'; const color: ColorDefinitions = { human, - space, }; export default color; diff --git a/src/locales/en/database/index.ts b/src/locales/en/database/index.ts index 0fdb916369e..29fa3097938 100644 --- a/src/locales/en/database/index.ts +++ b/src/locales/en/database/index.ts @@ -3,16 +3,10 @@ * Run 'pnpm run generate:locales' to update. */ import type { DatabaseDefinitions } from '../../..'; -import collation from './collation'; import column from './column'; -import engine from './engine'; -import type_ from './type'; const database: DatabaseDefinitions = { - collation, column, - engine, - type: type_, }; export default database; diff --git a/src/locales/en/hacker/index.ts b/src/locales/en/hacker/index.ts index aa45642882b..97e12d5d1f0 100644 --- a/src/locales/en/hacker/index.ts +++ b/src/locales/en/hacker/index.ts @@ -3,7 +3,6 @@ * Run 'pnpm run generate:locales' to update. */ import type { HackerDefinitions } from '../../..'; -import abbreviation from './abbreviation'; import adjective from './adjective'; import ingverb from './ingverb'; import noun from './noun'; @@ -11,7 +10,6 @@ import phrase from './phrase'; import verb from './verb'; const hacker: HackerDefinitions = { - abbreviation, adjective, ingverb, noun, diff --git a/src/locales/en/index.ts b/src/locales/en/index.ts index 3cd7a1b69ff..3a570257eda 100644 --- a/src/locales/en/index.ts +++ b/src/locales/en/index.ts @@ -21,7 +21,6 @@ import music from './music'; import person from './person'; import phone_number from './phone_number'; import science from './science'; -import system from './system'; import team from './team'; import vehicle from './vehicle'; import word from './word'; @@ -47,7 +46,6 @@ const en: LocaleDefinition = { person, phone_number, science, - system, team, vehicle, word, diff --git a/src/locales/en/internet/index.ts b/src/locales/en/internet/index.ts index e419245f948..7dd7014c7de 100644 --- a/src/locales/en/internet/index.ts +++ b/src/locales/en/internet/index.ts @@ -7,14 +7,12 @@ import avatar_uri from './avatar_uri'; import domain_suffix from './domain_suffix'; import example_email from './example_email'; import free_email from './free_email'; -import http_status_code from './http_status_code'; const internet: InternetDefinitions = { avatar_uri, domain_suffix, example_email, free_email, - http_status_code, }; export default internet; diff --git a/src/locales/en/location/index.ts b/src/locales/en/location/index.ts index 5fd8af21c1e..397bee86628 100644 --- a/src/locales/en/location/index.ts +++ b/src/locales/en/location/index.ts @@ -9,8 +9,6 @@ import city_name from './city_name'; import city_prefix from './city_prefix'; import city_suffix from './city_suffix'; import country from './country'; -import country_code from './country_code'; -import country_code_alpha_3 from './country_code_alpha_3'; import county from './county'; import default_country from './default_country'; import direction from './direction'; @@ -22,7 +20,6 @@ import state_abbr from './state_abbr'; import street from './street'; import street_address from './street_address'; import street_suffix from './street_suffix'; -import time_zone from './time_zone'; const location: LocationDefinitions = { building_number, @@ -31,8 +28,6 @@ const location: LocationDefinitions = { city_prefix, city_suffix, country, - country_code, - country_code_alpha_3, county, default_country, direction, @@ -44,7 +39,6 @@ const location: LocationDefinitions = { street, street_address, street_suffix, - time_zone, }; export default location; diff --git a/src/locales/global/color/index.ts b/src/locales/global/color/index.ts new file mode 100644 index 00000000000..6518bf19557 --- /dev/null +++ b/src/locales/global/color/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { ColorDefinitions } from '../../..'; +import space from './space'; + +const color: ColorDefinitions = { + space, +}; + +export default color; diff --git a/src/locales/en/color/space.ts b/src/locales/global/color/space.ts similarity index 100% rename from src/locales/en/color/space.ts rename to src/locales/global/color/space.ts diff --git a/src/locales/en/database/collation.ts b/src/locales/global/database/collation.ts similarity index 100% rename from src/locales/en/database/collation.ts rename to src/locales/global/database/collation.ts diff --git a/src/locales/en/database/engine.ts b/src/locales/global/database/engine.ts similarity index 100% rename from src/locales/en/database/engine.ts rename to src/locales/global/database/engine.ts diff --git a/src/locales/global/database/index.ts b/src/locales/global/database/index.ts new file mode 100644 index 00000000000..3dfe9b32f8d --- /dev/null +++ b/src/locales/global/database/index.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { DatabaseDefinitions } from '../../..'; +import collation from './collation'; +import engine from './engine'; +import type_ from './type'; + +const database: DatabaseDefinitions = { + collation, + engine, + type: type_, +}; + +export default database; diff --git a/src/locales/en/database/type.ts b/src/locales/global/database/type.ts similarity index 100% rename from src/locales/en/database/type.ts rename to src/locales/global/database/type.ts diff --git a/src/locales/en/hacker/abbreviation.ts b/src/locales/global/hacker/abbreviation.ts similarity index 100% rename from src/locales/en/hacker/abbreviation.ts rename to src/locales/global/hacker/abbreviation.ts diff --git a/src/locales/global/hacker/index.ts b/src/locales/global/hacker/index.ts new file mode 100644 index 00000000000..88450a37bea --- /dev/null +++ b/src/locales/global/hacker/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { HackerDefinitions } from '../../..'; +import abbreviation from './abbreviation'; + +const hacker: HackerDefinitions = { + abbreviation, +}; + +export default hacker; diff --git a/src/locales/global/index.ts b/src/locales/global/index.ts index 0db539cceba..ce409589333 100644 --- a/src/locales/global/index.ts +++ b/src/locales/global/index.ts @@ -3,11 +3,21 @@ * Run 'pnpm run generate:locales' to update. */ import type { LocaleDefinition } from '../..'; +import color from './color'; +import database from './database'; +import hacker from './hacker'; import internet from './internet'; +import location from './location'; +import system from './system'; const global: LocaleDefinition = { title: 'Global', + color, + database, + hacker, internet, + location, + system, }; export default global; diff --git a/src/locales/en/internet/http_status_code.ts b/src/locales/global/internet/http_status_code.ts similarity index 100% rename from src/locales/en/internet/http_status_code.ts rename to src/locales/global/internet/http_status_code.ts diff --git a/src/locales/global/internet/index.ts b/src/locales/global/internet/index.ts index fa6e93c9eb0..94743bc08f2 100644 --- a/src/locales/global/internet/index.ts +++ b/src/locales/global/internet/index.ts @@ -4,9 +4,11 @@ */ import type { InternetDefinitions } from '../../..'; import emoji from './emoji'; +import http_status_code from './http_status_code'; const internet: InternetDefinitions = { emoji, + http_status_code, }; export default internet; diff --git a/src/locales/en/location/country_code.ts b/src/locales/global/location/country_code.ts similarity index 100% rename from src/locales/en/location/country_code.ts rename to src/locales/global/location/country_code.ts diff --git a/src/locales/en/location/country_code_alpha_3.ts b/src/locales/global/location/country_code_alpha_3.ts similarity index 100% rename from src/locales/en/location/country_code_alpha_3.ts rename to src/locales/global/location/country_code_alpha_3.ts diff --git a/src/locales/global/location/index.ts b/src/locales/global/location/index.ts new file mode 100644 index 00000000000..5da08e8ba56 --- /dev/null +++ b/src/locales/global/location/index.ts @@ -0,0 +1,16 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { LocationDefinitions } from '../../..'; +import country_code from './country_code'; +import country_code_alpha_3 from './country_code_alpha_3'; +import time_zone from './time_zone'; + +const location: LocationDefinitions = { + country_code, + country_code_alpha_3, + time_zone, +}; + +export default location; diff --git a/src/locales/en/location/time_zone.ts b/src/locales/global/location/time_zone.ts similarity index 100% rename from src/locales/en/location/time_zone.ts rename to src/locales/global/location/time_zone.ts diff --git a/src/locales/en/system/directoryPaths.ts b/src/locales/global/system/directoryPaths.ts similarity index 100% rename from src/locales/en/system/directoryPaths.ts rename to src/locales/global/system/directoryPaths.ts diff --git a/src/locales/en/system/index.ts b/src/locales/global/system/index.ts similarity index 100% rename from src/locales/en/system/index.ts rename to src/locales/global/system/index.ts diff --git a/src/locales/en/system/mimeTypes.ts b/src/locales/global/system/mimeTypes.ts similarity index 100% rename from src/locales/en/system/mimeTypes.ts rename to src/locales/global/system/mimeTypes.ts