Skip to content

PHP library to provide access to translated time zone names

License

Notifications You must be signed in to change notification settings

bigwhoop/localized-time-zones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Localized Time Zones

Provides access to translated time zone names from CLDR.

<?php
use Bigwhoop\LocalizedTimeZones\Loader;

var_dump(Loader::all('es_MX'));
// [
//    'Africa/Abidjan' => 'Abiyán',
//    'Africa/Accra' => 'Acra',
//    'America/Adak' => 'Adak',
//    'Africa/Addis_Ababa' => 'Addis Abeba',
//    'Australia/Adelaide' => 'Adelaida',
//    'Asia/Aden' => 'Adén',
//    ...
// ]

var_dump(Loader::one('Africa/Abidjan', 'es'));
// Abiyán

Installation

composer require bigwhoop/localized-time-zones

License

MIT. See LICENSE file.

About

PHP library to provide access to translated time zone names

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages