-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
736e382
commit 35fc64c
Showing
5 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": "[email protected]" | ||
} | ||
], | ||
"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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
14 changes: 14 additions & 0 deletions
14
packages/continents-de/src/ContinentsDeServiceProvider.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Squire; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
use Squire\Models\Continent; | ||
|
||
class ContinentsDeServiceProvider extends ServiceProvider | ||
{ | ||
public function boot() | ||
{ | ||
Repository::registerSource(Continent::class, 'de', __DIR__.'/../resources/data.csv'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters