From 35fc64c3beb53abeb3ae6d949bbf595ff78a2c37 Mon Sep 17 00:00:00 2001 From: Julian Stark Date: Thu, 25 Mar 2021 08:20:34 +0100 Subject: [PATCH] add continents-de package --- composer.json | 3 +- packages/continents-de/composer.json | 39 +++++++++++++++++++ packages/continents-de/resources/data.csv | 8 ++++ .../src/ContinentsDeServiceProvider.php | 14 +++++++ tests/TestCase.php | 3 +- 5 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 packages/continents-de/composer.json create mode 100644 packages/continents-de/resources/data.csv create mode 100644 packages/continents-de/src/ContinentsDeServiceProvider.php diff --git a/composer.json b/composer.json index ee8bd29..d13170c 100644 --- a/composer.json +++ b/composer.json @@ -24,6 +24,7 @@ "packages/airlines/src", "packages/airports-en/src", "packages/airports/src", + "packages/continents-de/src", "packages/continents-en/src", "packages/continents/src", "packages/countries-de/src", @@ -52,7 +53,7 @@ "laravel": { "providers": [ "Squire\\GbCountiesServiceProvider", - "Squire\\ContinentsEnServiceProvider", + "ContinentsDeServiceProvider", "Squire\\AirportsServiceProvider", "Squire\\CountriesDeServiceProvider", "Squire\\AirlinesServiceProvider", diff --git a/packages/continents-de/composer.json b/packages/continents-de/composer.json new file mode 100644 index 0000000..589fdd8 --- /dev/null +++ b/packages/continents-de/composer.json @@ -0,0 +1,39 @@ +{ + "name": "squirephp/continents-de", + "description": "A library containing the German translation of Squire's Continent model.", + "keywords": ["squire"], + "license": "MIT", + "homepage": "https://github.com/squirephp", + "support": { + "issues": "https://github.com/squirephp/squire/issues", + "source": "https://github.com/squirephp/squire" + }, + "authors": [ + { + "name": "Dan Harrin", + "email": "dan@danharrin.com" + } + ], + "require": { + "php": "^7.2|^8.0", + "illuminate/support": "^6.0 || ^7.0 || ^8.0", + "squirephp/continents": "^2.0", + "squirephp/repository": "^2.0" + }, + "autoload": { + "psr-4": { + "Squire\\": "src" + } + }, + "extra": { + "laravel": { + "providers": [ + "Squire\\ContinentsDeServiceProvider" + ] + } + }, + "config": { + "sort-packages": true + }, + "minimum-stability": "dev" +} diff --git a/packages/continents-de/resources/data.csv b/packages/continents-de/resources/data.csv new file mode 100644 index 0000000..2cfc7ff --- /dev/null +++ b/packages/continents-de/resources/data.csv @@ -0,0 +1,8 @@ +id,code,name +af,af,Afrika +an,an,Antarktis +as,as,Asien +eu,eu,Europa +na,na,Nordamerika +oc,oc,Ozeanien +sa,sa,Südamerika diff --git a/packages/continents-de/src/ContinentsDeServiceProvider.php b/packages/continents-de/src/ContinentsDeServiceProvider.php new file mode 100644 index 0000000..05abb9e --- /dev/null +++ b/packages/continents-de/src/ContinentsDeServiceProvider.php @@ -0,0 +1,14 @@ +