Skip to content

Commit 4cdcb4b

Browse files
authored
Merge pull request squirephp#40 from krzysztofrewak/3.x
Polish countries and continents
2 parents 759d319 + 080cbb2 commit 4cdcb4b

11 files changed

Lines changed: 383 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ Country::where('name', 'like', 'a%')->get(); // Get information about all countr
124124
|--|--|
125125
| German | `composer require squirephp/continents-de` |
126126
| English | `composer require squirephp/continents-en` |
127+
| Polish | `composer require squirephp/continents-pl` |
127128

128129
#### Schema
129130

@@ -149,6 +150,7 @@ Country::where('name', 'like', 'a%')->get(); // Get information about all countr
149150
| English | `composer require squirephp/countries-en` |
150151
| French | `composer require squirephp/countries-fr` |
151152
| German | `composer require squirephp/countries-de` |
153+
| Polish | `composer require squirephp/countries-pl` |
152154
| Spanish | `composer require squirephp/countries-es` |
153155

154156
#### Schema
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "squirephp/continents-pl",
3+
"description": "A library containing the Polish translation of Squire's Continent model.",
4+
"keywords": [
5+
"squire"
6+
],
7+
"license": "MIT",
8+
"homepage": "https://github.com/squirephp",
9+
"support": {
10+
"issues": "https://github.com/squirephp/squire/issues",
11+
"source": "https://github.com/squirephp/squire"
12+
},
13+
"authors": [
14+
{
15+
"name": "Dan Harrin",
16+
"email": "dan@danharrin.com"
17+
},
18+
{
19+
"name": "Krzysztof Rewak",
20+
"email": "krzysztof.rewak@gmail.com"
21+
}
22+
],
23+
"require": {
24+
"php": "^8.0",
25+
"illuminate/support": "^8.0",
26+
"squirephp/continents": "self.version",
27+
"squirephp/repository": "self.version"
28+
},
29+
"autoload": {
30+
"psr-4": {
31+
"Squire\\": "src"
32+
}
33+
},
34+
"extra": {
35+
"laravel": {
36+
"providers": [
37+
"Squire\\ContinentsPlServiceProvider"
38+
]
39+
}
40+
},
41+
"config": {
42+
"sort-packages": true
43+
},
44+
"minimum-stability": "dev"
45+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
id,code,name
2+
af,af,Afryka
3+
an,an,Antarktyda
4+
as,as,Azja
5+
eu,eu,Europa
6+
na,na,Ameryka Północna
7+
oc,oc,Oceania
8+
sa,sa,Ameryka Południowa
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
namespace Squire;
4+
5+
use Illuminate\Support\ServiceProvider;
6+
use Squire\Models\Continent;
7+
8+
class ContinentsPlServiceProvider extends ServiceProvider
9+
{
10+
public function boot(): void
11+
{
12+
Repository::registerSource(Continent::class, 'pl', __DIR__ . '/../resources/data.csv');
13+
}
14+
}

packages/countries-de/resources/data.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ kp,850,Pyongyang,kp,prk,as,kpw,🇰🇵,Nordkorea
123123
kr,82,Seoul,kr,kor,as,krw,🇰🇷,Südkorea
124124
kw,965,Kuwait City,kw,kwt,as,kwd,🇰🇼,Kuwait
125125
ky,1345,George Town,ky,cym,na,kyd,🇰🇾,Kaimaninseln
126-
kz,7,Astana,kz,kaz,as,kzt,🇰🇿,Kasachstan
126+
kz,7,Nur-Sultan,kz,kaz,as,kzt,🇰🇿,Kasachstan
127127
la,856,Vientiane,la,lao,as,lak,🇱🇦,Laos
128128
lb,961,Beirut,lb,lbn,as,lbp,🇱🇧,Libanon
129129
lc,1758,Castries,lc,lca,na,xcd,🇱🇨,St. Lucia

packages/countries-en/resources/data.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ kp,850,Pyongyang,kp,prk,as,kpw,🇰🇵,North Korea
123123
kr,82,Seoul,kr,kor,as,krw,🇰🇷,South Korea
124124
kw,965,Kuwait City,kw,kwt,as,kwd,🇰🇼,Kuwait
125125
ky,1345,George Town,ky,cym,na,kyd,🇰🇾,Cayman Islands
126-
kz,7,Astana,kz,kaz,as,kzt,🇰🇿,Kazakhstan
126+
kz,7,Nur-Sultan,kz,kaz,as,kzt,🇰🇿,Kazakhstan
127127
la,856,Vientiane,la,lao,as,lak,🇱🇦,Laos
128128
lb,961,Beirut,lb,lbn,as,lbp,🇱🇧,Lebanon
129129
lc,1758,Castries,lc,lca,na,xcd,🇱🇨,Saint Lucia

packages/countries-es/resources/data.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ kp,850,Pyongyang,kp,prk,as,kpw,🇰🇵,Corea del Norte
123123
kr,82,Seoul,kr,kor,as,krw,🇰🇷,Corea del Sur
124124
kw,965,Kuwait City,kw,kwt,as,kwd,🇰🇼,Kuwait
125125
ky,1345,George Town,ky,cym,na,kyd,🇰🇾,Islas Caimán
126-
kz,7,Astana,kz,kaz,as,kzt,🇰🇿,Kazajistán
126+
kz,7,Nur-Sultan,kz,kaz,as,kzt,🇰🇿,Kazajistán
127127
la,856,Vientiane,la,lao,as,lak,🇱🇦,Laos
128128
lb,961,Beirut,lb,lbn,as,lbp,🇱🇧,Líbano
129129
lc,1758,Castries,lc,lca,na,xcd,🇱🇨,Santa Lucía

packages/countries-fr/resources/data.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ kp,850,Pyongyang,kp,prk,as,kpw,🇰🇵,Corée du Nord
123123
kr,82,Seoul,kr,kor,as,krw,🇰🇷,Corée du Sud
124124
kw,965,Kuwait City,kw,kwt,as,kwd,🇰🇼,Koweït
125125
ky,1345,George Town,ky,cym,na,kyd,🇰🇾,Îles Caïmans
126-
kz,7,Astana,kz,kaz,as,kzt,🇰🇿,Kazakhstan
126+
kz,7,Nur-Sultan,kz,kaz,as,kzt,🇰🇿,Kazakhstan
127127
la,856,Vientiane,la,lao,as,lak,🇱🇦,Laos
128128
lb,961,Beirut,lb,lbn,as,lbp,🇱🇧,Liban
129129
lc,1758,Castries,lc,lca,na,xcd,🇱🇨,Sainte-Lucie
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "squirephp/countries-pl",
3+
"description": "A library containing the Polish translation of Squire's Country model.",
4+
"keywords": [
5+
"squire"
6+
],
7+
"license": "MIT",
8+
"homepage": "https://github.com/squirephp",
9+
"support": {
10+
"issues": "https://github.com/squirephp/squire/issues",
11+
"source": "https://github.com/squirephp/squire"
12+
},
13+
"authors": [
14+
{
15+
"name": "Dan Harrin",
16+
"email": "dan@danharrin.com"
17+
},
18+
{
19+
"name": "Krzysztof Rewak",
20+
"email": "krzysztof.rewak@gmail.com"
21+
}
22+
],
23+
"require": {
24+
"php": "^8.0",
25+
"illuminate/support": "^8.0",
26+
"squirephp/countries": "self.version",
27+
"squirephp/repository": "self.version"
28+
},
29+
"autoload": {
30+
"psr-4": {
31+
"Squire\\": "src"
32+
}
33+
},
34+
"extra": {
35+
"laravel": {
36+
"providers": [
37+
"Squire\\CountriesPlServiceProvider"
38+
]
39+
}
40+
},
41+
"config": {
42+
"sort-packages": true
43+
},
44+
"minimum-stability": "dev"
45+
}

0 commit comments

Comments
 (0)