From 7711cba46c27149ac4de464b5c3b87dc17a2008d Mon Sep 17 00:00:00 2001 From: Sebastiano Ballotta Date: Fri, 23 Feb 2024 18:03:02 +0100 Subject: [PATCH 1/3] Added translation for continents Co-authored-by: Gennaro Landolfi --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 63a88bc..c0f9d2d 100644 --- a/README.md +++ b/README.md @@ -120,11 +120,12 @@ Country::where('name', 'like', 'a%')->get(); // Get information about all countr #### Installation -| Locale | Installation Command | -|--|--| -| German | `composer require squirephp/continents-de` | -| English | `composer require squirephp/continents-en` | -| Polish | `composer require squirephp/continents-pl` | +| Locale | Installation Command | +| ------- | -------------------------------------------------- | +| German | `composer require squirephp/continents-de` | +| English | `composer require squirephp/continents-en` | +| Polish | `composer require squirephp/continents-pl` | +| Italian | `composer require squirephp-italian/continents-it` | #### Schema From 3ebe66f115e3c9e820a6759d51f1f00882de540e Mon Sep 17 00:00:00 2001 From: Sebastiano Ballotta Date: Fri, 23 Feb 2024 18:03:13 +0100 Subject: [PATCH 2/3] Added translation for countries Co-authored-by: Gennaro Landolfi --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c0f9d2d..4bfc281 100644 --- a/README.md +++ b/README.md @@ -146,13 +146,15 @@ Country::where('name', 'like', 'a%')->get(); // Get information about all countr #### Installation -| Locale | Installation Command | -|--|--| -| 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` | +| Locale | Installation Command | +| ------- | ------------------------------------------------------- | +| 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` | +| Dutch | `composer require quickstreambe/squirephp-countries-nl` | +| Italian | `composer require squirephp-italian/countries-it` | #### Schema From 9d09b04f07bf56bde9ba38d038b553aacbb9383f Mon Sep 17 00:00:00 2001 From: Sebastiano Ballotta Date: Fri, 23 Feb 2024 18:03:27 +0100 Subject: [PATCH 3/3] Added a few lines to describe how to contribute Co-authored-by: Gennaro Landolfi --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 4bfc281..13d8448 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Common use cases for Squire include: - [Model Relationships](#model-relationships) - [Validation](#validation) - [Creating your own Models](#creating-your-own-models) +- [Adding a localization](#adding-a-localization) - [Upgrading from 1.x](#upgrading-from-1x) - [Need Help?](#need-help) @@ -467,6 +468,12 @@ class Language extends Rule Squire models, their sources, and validation rules are all simply releasable in Composer packages. To see an example of this in action, check out the [`squirephp/countries`](https://github.com/squirephp/countries) and [`squirephp/countries-en`](https://github.com/squirephp/countries-en) packages. +## Adding a localization + +If you wish to contribute to this package by adding a localization, feel free to make your own package(s) and take inspiration by the various sub-packages you can find in the organization repositories. + +Once you've made your repository, publish it via [Packagist](https://packagist.org) and add your package to the specific table of the given category submitting a PR! + ## Upgrading from 2.x If you're using any validation rules, they are now all end with `Rule`. This allows both the model and rule to be imported into the same class without the use of aliasing: