Skip to content

A helper class to print Localized Address from AddressValue object

Notifications You must be signed in to change notification settings

hissy/addon_l18n_address_format

Repository files navigation

concrete5 Addon: Localized Address Format

A helper class to print Localized Address from AddressValue object

Issue

There're various format for address in the world, but concrete5 can not change the format by site locale. This package privides a helper class to print address with localized format easily.

Usage

$address = Core::make('site')->getSite()->getAttribute('address');
if (is_object($address)) {
    echo Core::make(\C5j\Localization\Service\Address\Formatter::class)->format($address);
}

About

A helper class to print Localized Address from AddressValue object

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages