Get/update the language
A new version of the docs is available here
General
By default, the library will use the browser language and fallback to English if the language is not supported.
Changing the language of Shipup ETA allows you to force a specific language for the prediction
At this time only English (en), French (fr), and Spanish (es) are supported.
Get the language
Use the ShipupETA.language
getter to get the language.
Update the language
To change the language used, you can use any of the following methods.
When initializing ShipupETA
ShipupETA.init({ publicApiKey: 'my-public-key', language: 'fr' })
// language is now 'fr'
console.log(ShipupETA.language)
Using changeLanguage
ShipupETA.changeLanguage('fr')
// language is now 'fr'
console.log(ShipupETA.language)
Updated 5 months ago
Whatβs Next