Rajout du dossier core + MAJ .gitignore

This commit is contained in:
2019-11-21 12:48:42 +01:00
parent f4aabcb9b1
commit 459f8966b0
10448 changed files with 1835600 additions and 1 deletions

7
core/vendor/autoload.php vendored Normal file
View File

@@ -0,0 +1,7 @@
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInit707c94b89116dc9a5c149116ae36ff39::getLoader();

View File

@@ -0,0 +1,2 @@
vendor/
composer.lock

View File

@@ -0,0 +1,14 @@
language: php
php:
- 5.4
- 5.5
- 5.6
- hhvm
install:
- composer self-update
- composer install
script:
- ./vendor/bin/phpunit -c ./phpunit.xml --coverage-text --strict

View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2014 Commerce Guys
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1,194 @@
addressing
==========
[![Build Status](https://travis-ci.org/commerceguys/addressing.svg?branch=master)](https://travis-ci.org/commerceguys/addressing)
A PHP 5.4+ addressing library, powered by Google's dataset.
Stores and manipulates postal addresses, meant to identify a precise recipient location for shipping or billing purposes.
Features:
- Address formats for 200 countries
- Subdivisions (administrative areas, localities, dependent localities) for 40 countries
- Subdivision translations for all of the parent country's (i.e Canada, Switzerland) official languages.
- Validation via symfony/validator
- Form generation via symfony/form (Experimental, unfinished)
- Postal formatting
- Zones via the [commerceguys/zone](https://github.com/commerceguys/zone) library.
The dataset is [stored locally](https://github.com/commerceguys/addressing/tree/master/resources) in JSON format, [generated](https://github.com/commerceguys/addressing/blob/master/scripts/generate.php) from Google's [Address Data Service](https://i18napis.appspot.com/address).
The CLDR country list is used (via [symfony/intl](https://github.com/symfony/intl) or [commerceguys/intl](https://github.com/commerceguys/intl)), because it includes additional countries for addressing purposes, such as Canary Islands (IC).
Further backstory can be found in [this blog post](https://drupalcommerce.org/blog/16864/commerce-2x-stories-addressing).
# Data model
The [address interface](https://github.com/commerceguys/addressing/blob/master/src/Model/AddressInterface.php) represents a postal adddress, with getters for the following fields:
- Country
- Administrative area
- Locality (City)
- Dependent Locality
- Postal code
- Sorting code
- Address line 1
- Address line 2
- Organization
- Recipient
Field names follow the OASIS [eXtensible Address Language (xAL)](http://www.oasis-open.org/committees/ciq/download.shtml) standard.
The interface makes no assumptions about mutability.
The implementing application can extend the interface to provide setters, or implement a value object that uses either [PSR-7 style with* mutators](https://github.com/commerceguys/addressing/blob/master/src/Model/ImmutableAddressInterface) or relies on an AddressBuilder.
A default [address value object](https://github.com/commerceguys/addressing/blob/master/src/Model/Address.php) is provided that can be used as an example, or mapped by Doctrine (preferably as an embeddable).
The [address format interface](https://github.com/commerceguys/addressing/blob/master/src/Model/AddressFormatInterface.php) has getters for the following country-specific metadata:
- Which fields are used, and in which order
- Which fields are required
- Which fields need to be uppercased for the actual mailing (to facilitate automated sorting of mail)
- The labels for the administrative area (state, province, parish, etc.), locality (city/post town/district, etc.), dependent locality (neighborhood, suburb, district, etc) and the postal code (postal code or ZIP code)
- The regular expression pattern for validating postal codes
The [subdivision interface](https://github.com/commerceguys/addressing/blob/master/src/Model/SubdivisionInterface.php) has getters for the following data:
- The subdivision code (used to represent the subdivison on a parcel/envelope, e.g. CA for California)
- The subdivison name (shown to the user in a dropdown)
- The postal code prefix (used to ensure that a postal code begins with the expected characters)
Subdivisions are hierarchical and can have up to three levels:
Administrative Area -> Locality -> Dependent Locality.
```php
use CommerceGuys\Addressing\Repository\AddressFormatRepository;
use CommerceGuys\Addressing\Repository\SubdivisionRepository;
$addressFormatRepository = new AddressFormatRepository();
$subdivisionRepository = new SubdivisionRepository();
// Get the address format for Brazil.
$addressFormat = $addressFormatRepository->get('BR');
// Get the subdivisions for Brazil.
$states = $subdivisionRepository->getAll('BR');
foreach ($states as $state) {
$municipalities = $state->getChildren();
}
// Get the subdivisions for Canada, in French.
$states = $subdivisionRepository->getAll('CA', 0, 'fr');
foreach ($states as $state) {
echo $state->getName();
}
```
# Formatters
Addresses are formatted according to the address format, in HTML or text.
## DefaultFormatter
Formats an address for display, always adds the localized country name.
```php
use CommerceGuys\Addressing\Formatter\DefaultFormatter;
use CommerceGuys\Addressing\Repository\AddressFormatRepository;
use CommerceGuys\Addressing\Repository\CountryRepository;
use CommerceGuys\Addressing\Repository\SubdivisionRepository;
$addressFormatRepository = new AddressFormatRepository();
$countryRepository = new CountryRepository();
$subdivisionRepository = new SubdivisionRepository();
$formatter = new DefaultFormatter($addressFormatRepository, $countryRepository, $subdivisionRepository);
// Options passed to the constructor or setOption / setOptions allow turning
// off html rendering, customizing the wrapper element and its attributes.
$address = new Address();
$address = $address
->withCountryCode('US')
->withAdministrativeArea('US-CA')
->withLocality('Mountain View')
->withAddressLine1('1098 Alta Ave');
echo $formatter->format($address);
/** Output:
<p translate="no">
<span class="address-line1">1098 Alta Ave</span><br>
<span class="locality">Mountain View</span>, <span class="administrative-area">CA</span><br>
<span class="country">United States</span>
</p>
**/
```
## PostalLabelFormatter
Takes care of uppercasing fields where required by the format (to faciliate automated mail sorting).
Requires specifying the origin country code, allowing it to differentiate between domestic and international mail.
In case of domestic mail, the country name is not displayed at all.
In case of international mail:
1. The postal code is prefixed with the destination's postal code prefix.
2. The country name is added to the formatted address, in both the current locale and English.
This matches the recommandation given by the Universal Postal Union, to avoid difficulties in countries of transit.
```php
use CommerceGuys\Addressing\Formatter\PostalLabelFormatter;
use CommerceGuys\Addressing\Repository\AddressFormatRepository;
use CommerceGuys\Addressing\Repository\CountryRepository;
use CommerceGuys\Addressing\Repository\SubdivisionRepository;
$addressFormatRepository = new AddressFormatRepository();
$countryRepository = new CountryRepository();
$subdivisionRepository = new SubdivisionRepository();
// Defaults to text rendering. Requires setting the origin country code
// (e.g. 'FR') through the constructor or the setter, before calling format().
$formatter = new PostalLabelFormatter($addressFormatRepository, $countryRepository, $subdivisionRepository, 'FR', 'fr');
$address = new Address();
$address = $address
->withCountryCode('US')
->withAdministrativeArea('US-CA')
->withLocality('Mountain View')
->withAddressLine1('1098 Alta Ave');
echo $formatter->format($address);
/** Output:
1098 Alta Ave
MOUNTAIN VIEW, CA 94043
ÉTATS-UNIS - UNITED STATES
**/
```
# Validator
Address validation relies on the [Symfony Validator](https://github.com/symfony/validator) library.
Checks performed:
- All required fields are filled in.
- All fields unused by the country's format are empty.
- All subdivisions are valid (values matched against predefined subdivisions).
- The postal code is valid (country and subdivision-level patterns).
```php
use CommerceGuys\Addressing\Model\Address;
use CommerceGuys\Addressing\Validator\Constraints\AddressFormat;
use CommerceGuys\Addressing\Validator\Constraints\Country;
use Symfony\Component\Validator\Validation;
$address = new Address('FR');
$validator = Validation::createValidator();
// Validate the country code, then validate the rest of the address.
$violations = $validator->validateValue($address->getCountryCode(), new Country());
if (!$violations->count()) {
$violations = $validator->validateValue($address, new AddressFormat());
}
```
# Integrations
- [Drupal module](https://drupal.org/project/address)

View File

@@ -0,0 +1,45 @@
{
"name": "commerceguys/addressing",
"type": "library",
"description": "Addressing library powered by Google's address data.",
"keywords": ["postal", "address", "internationalization", "localization"],
"license": "MIT",
"require": {
"php": ">=5.4.0",
"doctrine/collections": "~1.0",
"commerceguys/enum": "~1.0"
},
"require-dev": {
"symfony/validator": ">=2.3",
"symfony/intl": ">=2.3",
"phpunit/phpunit": "~4.0",
"mikey179/vfsStream": "1.*"
},
"suggest": {
"commerceguys/intl": "to use it as the source of country data",
"symfony/intl": "to use it as the source of country data",
"symfony/form": "to generate Symfony address forms",
"symfony/validator": "to validate addresses"
},
"autoload": {
"psr-4": { "CommerceGuys\\Addressing\\": "src" }
},
"autoload-dev": {
"psr-4": {
"CommerceGuys\\Addressing\\Tests\\": "tests"
}
},
"authors": [
{
"name": "Bojan Zivanovic"
},
{
"name": "Damien Tournoud"
}
],
"extra": {
"branch-alias": {
"dev-master": "0.x-dev"
}
}
}

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
stopOnFailure="false"
bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="CommerceGuys Addressing Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src/</directory>
</whitelist>
</filter>
</phpunit>

View File

@@ -0,0 +1,13 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "ca",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "AD[1-7]0\\d"
}

View File

@@ -0,0 +1,13 @@
{
"locale": "ar-Latn",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%administrativeArea",
"required_fields": [
"recipient",
"addressLine1",
"administrativeArea"
],
"uppercase_fields": [
"locality"
],
"administrative_area_type": "emirate"
}

View File

@@ -0,0 +1,13 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city"
}

View File

@@ -0,0 +1,12 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality",
"required_fields": [
"recipient",
"addressLine1"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city"
}

View File

@@ -0,0 +1,13 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode\n%locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "hy-Latn",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode\n%locality\n%administrativeArea",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"administrative_area_type": "province",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "(37)?\\d{4}"
}

View File

@@ -0,0 +1,19 @@
{
"locale": "es",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality\n%administrativeArea",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"addressLine1",
"addressLine2",
"locality",
"postalCode"
],
"administrative_area_type": "province",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "((?:[A-HJ-NP-Z])?\\d{4})([A-Z]{3})?"
}

View File

@@ -0,0 +1,23 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality %administrativeArea %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"administrativeArea",
"postalCode"
],
"uppercase_fields": [
"addressLine1",
"addressLine2",
"locality",
"recipient",
"organization",
"administrativeArea"
],
"administrative_area_type": "state",
"locality_type": "city",
"postal_code_type": "zip",
"postal_code_pattern": "(96799)(?:[ \\-](\\d{4}))?"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "und",
"format": "%organization\n%recipient\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}"
}

View File

@@ -0,0 +1,19 @@
{
"locale": "en",
"format": "%organization\n%recipient\n%addressLine1\n%addressLine2\n%locality %administrativeArea %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"administrativeArea",
"postalCode"
],
"uppercase_fields": [
"locality",
"administrativeArea"
],
"administrative_area_type": "state",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}"
}

View File

@@ -0,0 +1,17 @@
{
"locale": "und",
"format": "%organization\n%recipient\n%addressLine1\n%addressLine2\n%postalCode %locality\nÅLAND",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "22\\d{3}",
"postal_code_prefix": "AX-"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}",
"postal_code_prefix": "AZ "
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "BB\\d{5}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality - %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "und",
"format": "%organization\n%recipient\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}"
}

View File

@@ -0,0 +1,13 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality %sortingCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "(?:(?:\\d|1[0-2])\\d{2})?"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"addressLine1",
"addressLine2",
"locality"
],
"locality_type": "city"
}

View File

@@ -0,0 +1,19 @@
{
"locale": "und",
"format": "%organization\n%recipient\n%addressLine1\n%addressLine2\n%postalCode %locality %sortingCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"addressLine1",
"addressLine2",
"locality",
"sortingCode"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "9[78][01]\\d{2}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "[A-Z]{2}[ ]?[A-Z0-9]{2}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "[A-Z]{2}[ ]?\\d{4}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"addressLine1",
"addressLine2",
"locality"
],
"locality_type": "city"
}

View File

@@ -0,0 +1,20 @@
{
"locale": "pt",
"format": "%organization\n%recipient\n%addressLine1\n%addressLine2\n%dependentLocality\n%locality-%administrativeArea\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
"administrativeArea",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality",
"administrativeArea"
],
"administrative_area_type": "state",
"locality_type": "city",
"dependent_locality_type": "neighborhood",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}[\\-]?\\d{3}"
}

View File

@@ -0,0 +1,14 @@
{
"locale": "en",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality, %administrativeArea",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"administrative_area_type": "island",
"locality_type": "city"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "und",
"format": "%administrativeArea\n%postalCode %locality %sortingCode\n%addressLine2\n%addressLine1\n%organization\n%recipient",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"administrative_area_type": "province",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{6}"
}

View File

@@ -0,0 +1,24 @@
{
"locale": "en",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality %administrativeArea %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"administrativeArea",
"postalCode"
],
"uppercase_fields": [
"addressLine1",
"addressLine2",
"locality",
"recipient",
"organization",
"administrativeArea",
"postalCode"
],
"administrative_area_type": "province",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "[ABCEGHJKLMNPRSTVXY]\\d[ABCEGHJ-NPRSTV-Z][ ]?\\d[ABCEGHJ-NPRSTV-Z]\\d"
}

View File

@@ -0,0 +1,17 @@
{
"locale": "und",
"format": "%organization\n%recipient\n%addressLine1\n%addressLine2\n%locality %administrativeArea %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality",
"administrativeArea"
],
"administrative_area_type": "province",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "6799"
}

View File

@@ -0,0 +1,13 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality %sortingCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "de",
"format": "%organization\n%recipient\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}",
"postal_code_prefix": "CH-"
}

View File

@@ -0,0 +1,13 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%sortingCode %addressLine1\n%addressLine2 %locality %sortingCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city"
}

View File

@@ -0,0 +1,17 @@
{
"locale": "es",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality\n%dependentLocality\n%administrativeArea",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"administrative_area_type": "province",
"locality_type": "city",
"dependent_locality_type": "suburb",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{7}"
}

View File

@@ -0,0 +1,24 @@
{
"locale": "zh-Latn",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%dependentLocality\n%locality\n%administrativeArea, %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"administrativeArea",
"postalCode"
],
"uppercase_fields": [
"administrativeArea"
],
"administrative_area_type": "province",
"locality_type": "city",
"dependent_locality_type": "district",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{6}",
"translations": {
"zh": {
"format": "%postalCode\n%administrativeArea%locality%dependentLocality\n%addressLine2\n%addressLine1\n%organization\n%recipient"
}
}
}

View File

@@ -0,0 +1,16 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality, %administrativeArea, %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"administrativeArea"
],
"uppercase_fields": [
"locality"
],
"administrative_area_type": "department",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{6}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4,5}|\\d{3}-\\d{4}"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "pt",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality\n%administrativeArea",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"administrative_area_type": "island",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}"
}

View File

@@ -0,0 +1,17 @@
{
"locale": "und",
"format": "%organization\n%recipient\n%addressLine1\n%addressLine2\n%locality %administrativeArea %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality",
"administrativeArea"
],
"administrative_area_type": "province",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "6798"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{3}[ ]?\\d{2}"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "und",
"format": "%organization\n%recipient\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode\n%locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality",
"postalCode"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "(?:[A-Z]\\d{4}[A-Z]|(?:[A-Z]{2})?\\d{6})?"
}

View File

@@ -0,0 +1,17 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality %administrativeArea",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}",
"administrative_area_type": "county"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "ar-Latn",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality\n%administrativeArea\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"administrative_area_type": "province",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}"
}

View File

@@ -0,0 +1,19 @@
{
"locale": "es",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality %administrativeArea",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"administrativeArea",
"postalCode"
],
"uppercase_fields": [
"locality",
"administrativeArea"
],
"administrative_area_type": "province",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}"
}

View File

@@ -0,0 +1,17 @@
{
"locale": "und",
"format": "%organization\n%recipient\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}",
"postal_code_prefix": "FI-"
}

View File

@@ -0,0 +1,17 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%sortingCode\n%locality\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality",
"postalCode"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "FIQQ 1ZZ"
}

View File

@@ -0,0 +1,23 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality %administrativeArea %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"administrativeArea",
"postalCode"
],
"uppercase_fields": [
"addressLine1",
"addressLine2",
"locality",
"recipient",
"organization",
"administrativeArea"
],
"administrative_area_type": "state",
"locality_type": "city",
"postal_code_type": "zip",
"postal_code_pattern": "(9694[1-4])(?:[ \\-](\\d{4}))?"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{3}",
"postal_code_prefix": "FO"
}

View File

@@ -0,0 +1,17 @@
{
"locale": "und",
"format": "%organization\n%recipient\n%addressLine1\n%addressLine2\n%postalCode %locality %sortingCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality",
"sortingCode"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{2}[ ]?\\d{3}"
}

View File

@@ -0,0 +1,18 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality\n%administrativeArea\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality",
"postalCode"
],
"administrative_area_type": "county",
"locality_type": "post_town",
"postal_code_type": "postal",
"postal_code_pattern": "GIR[ ]?0AA|((AB|AL|B|BA|BB|BD|BH|BL|BN|BR|BS|BT|BX|CA|CB|CF|CH|CM|CO|CR|CT|CV|CW|DA|DD|DE|DG|DH|DL|DN|DT|DY|E|EC|EH|EN|EX|FK|FY|G|GL|GY|GU|HA|HD|HG|HP|HR|HS|HU|HX|IG|IM|IP|IV|JE|KA|KT|KW|KY|L|LA|LD|LE|LL|LN|LS|LU|M|ME|MK|ML|N|NE|NG|NN|NP|NR|NW|OL|OX|PA|PE|PH|PL|PO|PR|RG|RH|RM|S|SA|SE|SG|SK|SL|SM|SN|SO|SP|SR|SS|ST|SW|SY|TA|TD|TF|TN|TQ|TR|TS|TW|UB|W|WA|WC|WD|WF|WN|WR|WS|WV|YO|ZE)(\\d[\\dA-Z]?[ ]?\\d[ABD-HJLN-UW-Z]{2}))|BFPO[ ]?\\d{1,4}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}"
}

View File

@@ -0,0 +1,19 @@
{
"locale": "und",
"format": "%organization\n%recipient\n%addressLine1\n%addressLine2\n%postalCode %locality %sortingCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"addressLine1",
"addressLine2",
"locality",
"sortingCode"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "9[78]3\\d{2}"
}

View File

@@ -0,0 +1,17 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%sortingCode\n%locality\nGUERNSEY\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality",
"postalCode"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "GY\\d[\\dA-Z]?[ ]?\\d[ABD-HJLN-UW-Z]{2}"
}

View File

@@ -0,0 +1,13 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\nGIBRALTAR\n%postalCode",
"required_fields": [
"recipient",
"addressLine1"
],
"uppercase_fields": [
"locality"
],
"postal_code_type": "postal",
"postal_code_pattern": "GX11 1AA"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "39\\d{2}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%postalCode %addressLine1\n%addressLine2 %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{3}"
}

View File

@@ -0,0 +1,19 @@
{
"locale": "und",
"format": "%organization\n%recipient\n%addressLine1\n%addressLine2\n%postalCode %locality %sortingCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"addressLine1",
"addressLine2",
"locality",
"sortingCode"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "9[78][01]\\d{2}"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{3} ?\\d{2}"
}

View File

@@ -0,0 +1,17 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%sortingCode\n%locality\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality",
"postalCode"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "SIQQ 1ZZ"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode- %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}"
}

View File

@@ -0,0 +1,23 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality %administrativeArea %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"administrativeArea",
"postalCode"
],
"uppercase_fields": [
"addressLine1",
"addressLine2",
"locality",
"recipient",
"organization",
"administrativeArea"
],
"administrative_area_type": "state",
"locality_type": "city",
"postal_code_type": "zip",
"postal_code_pattern": "(969(?:[12]\\d|3[12]))(?:[ \\-](\\d{4}))?"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}"
}

View File

@@ -0,0 +1,19 @@
{
"locale": "zh-Latn",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality\n%administrativeArea",
"required_fields": [
"recipient",
"addressLine1",
"administrativeArea"
],
"uppercase_fields": [
"administrativeArea"
],
"administrative_area_type": "area",
"locality_type": "district",
"translations": {
"zh-hant": {
"format": "%administrativeArea\n%locality\n%addressLine2\n%addressLine1\n%organization\n%recipient"
}
}
}

View File

@@ -0,0 +1,17 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality, %administrativeArea\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"administrativeArea"
],
"uppercase_fields": [
"locality"
],
"administrative_area_type": "province",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}",
"postal_code_prefix": "HR-"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality %sortingCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}",
"postal_code_prefix": "HT"
}

View File

@@ -0,0 +1,20 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%locality\n%addressLine1\n%addressLine2\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"addressLine1",
"addressLine2",
"locality",
"recipient",
"organization"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{4}"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "id",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality\n%administrativeArea %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"administrativeArea"
],
"uppercase_fields": [
"locality"
],
"administrative_area_type": "province",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}"
}

View File

@@ -0,0 +1,16 @@
{
"locale": "en",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality\n%administrativeArea %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"administrative_area_type": "county",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "[\\dA-Z]{3}[ ]?[\\dA-Z]{4}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}(?:\\d{2})?"
}

View File

@@ -0,0 +1,17 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%sortingCode\n%locality\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality",
"postalCode"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "IM\\d[\\dA-Z]?[ ]?\\d[ABD-HJLN-UW-Z]{2}"
}

View File

@@ -0,0 +1,18 @@
{
"locale": "en",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality %postalCode\n%administrativeArea",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"administrativeArea",
"postalCode"
],
"uppercase_fields": [
"locality"
],
"administrative_area_type": "state",
"locality_type": "city",
"postal_code_type": "pin",
"postal_code_pattern": "\\d{6}"
}

View File

@@ -0,0 +1,17 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%sortingCode\n%locality\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality",
"postalCode"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "BBND 1ZZ"
}

View File

@@ -0,0 +1,18 @@
{
"locale": "und",
"format": "%organization\n%recipient\n%addressLine1\n%addressLine2\n%locality, %administrativeArea\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"administrativeArea"
],
"uppercase_fields": [
"locality",
"administrativeArea"
],
"administrative_area_type": "province",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}"
}

View File

@@ -0,0 +1,17 @@
{
"locale": "und",
"format": "%organization\n%recipient\n%administrativeArea\n%locality, %dependentLocality\n%addressLine1\n%addressLine2\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"administrative_area_type": "province",
"locality_type": "city",
"dependent_locality_type": "neighborhood",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}-?\\d{5}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{3}"
}

View File

@@ -0,0 +1,19 @@
{
"locale": "it",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality %administrativeArea",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"administrativeArea",
"postalCode"
],
"uppercase_fields": [
"locality",
"administrativeArea"
],
"administrative_area_type": "province",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}"
}

View File

@@ -0,0 +1,17 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%sortingCode\n%locality\nJERSEY\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"postalCode"
],
"uppercase_fields": [
"locality",
"postalCode"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "JE\\d[\\dA-Z]?[ ]?\\d[ABD-HJLN-UW-Z]{2}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "en",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality\n%administrativeArea %sortingCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"administrativeArea"
],
"uppercase_fields": [
"locality"
],
"administrative_area_type": "parish",
"locality_type": "city"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}"
}

View File

@@ -0,0 +1,23 @@
{
"locale": "ja-Latn",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality, %administrativeArea\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality",
"administrativeArea",
"postalCode"
],
"uppercase_fields": [
"administrativeArea"
],
"administrative_area_type": "prefecture",
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{3}-?\\d{4}",
"translations": {
"ja": {
"format": "〒%postalCode\n%administrativeArea%locality\n%addressLine2\n%addressLine1\n%organization\n%recipient"
}
}
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality\n%postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%postalCode %locality %sortingCode\n%addressLine2\n%addressLine1\n%organization\n%recipient",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{6}"
}

View File

@@ -0,0 +1,15 @@
{
"locale": "und",
"format": "%recipient\n%organization\n%addressLine1\n%addressLine2\n%locality %postalCode",
"required_fields": [
"recipient",
"addressLine1",
"locality"
],
"uppercase_fields": [
"locality"
],
"locality_type": "city",
"postal_code_type": "postal",
"postal_code_pattern": "\\d{5}"
}

Some files were not shown because too many files have changed in this diff Show More