gabrielbull / php-ups-api

PHP Wrapper for all UPS API
MIT License
456 stars 255 forks source link

Translate problem #328

Open manoam opened 3 years ago

manoam commented 3 years ago

I try to put translate in "fr". it does not work. can you help me?

$translate = new \Ups\Entity\Translate; $translate->setLanguageCode('FRA'); $locatorRequest->setTranslate($translate);

okj579 commented 2 years ago

UPS requires a locale for the Locator API, not a language/dialect pair, e.g. $translate->setLocale('fr_FR');