diff --git a/README.md b/README.md index ab2fc3c..63a88bc 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,7 @@ Country::where('name', 'like', 'a%')->get(); // Get information about all countr |--|--| | German | `composer require squirephp/continents-de` | | English | `composer require squirephp/continents-en` | +| Polish | `composer require squirephp/continents-pl` | #### Schema @@ -149,6 +150,7 @@ Country::where('name', 'like', 'a%')->get(); // Get information about all countr | English | `composer require squirephp/countries-en` | | French | `composer require squirephp/countries-fr` | | German | `composer require squirephp/countries-de` | +| Polish | `composer require squirephp/countries-pl` | | Spanish | `composer require squirephp/countries-es` | #### Schema diff --git a/packages/continents-pl/composer.json b/packages/continents-pl/composer.json new file mode 100644 index 0000000..cec13d0 --- /dev/null +++ b/packages/continents-pl/composer.json @@ -0,0 +1,45 @@ +{ + "name": "squirephp/continents-pl", + "description": "A library containing the Polish 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" + }, + { + "name": "Krzysztof Rewak", + "email": "krzysztof.rewak@gmail.com" + } + ], + "require": { + "php": "^8.0", + "illuminate/support": "^8.0", + "squirephp/continents": "self.version", + "squirephp/repository": "self.version" + }, + "autoload": { + "psr-4": { + "Squire\\": "src" + } + }, + "extra": { + "laravel": { + "providers": [ + "Squire\\ContinentsPlServiceProvider" + ] + } + }, + "config": { + "sort-packages": true + }, + "minimum-stability": "dev" +} diff --git a/packages/continents-pl/resources/data.csv b/packages/continents-pl/resources/data.csv new file mode 100644 index 0000000..373c8bb --- /dev/null +++ b/packages/continents-pl/resources/data.csv @@ -0,0 +1,8 @@ +id,code,name +af,af,Afryka +an,an,Antarktyda +as,as,Azja +eu,eu,Europa +na,na,Ameryka Północna +oc,oc,Oceania +sa,sa,Ameryka Południowa \ No newline at end of file diff --git a/packages/continents-pl/src/ContinentsPlServiceProvider.php b/packages/continents-pl/src/ContinentsPlServiceProvider.php new file mode 100644 index 0000000..f31a3dd --- /dev/null +++ b/packages/continents-pl/src/ContinentsPlServiceProvider.php @@ -0,0 +1,14 @@ +