LanguageOptions
Properties
PARAMETER
Default
Description
pt_br
false
Brazilian Portuguese
en_us
English EUA
The default language of the api is en_us, so there is no need to define a language for it
Examples
const api = axios.create({
baseURL:'https://api.strangerthings.tech/v1'
})
//Setting the language to en_br with an axios query parameter
axios.get('/characters/name/eleven?language=pt_br')const api = axios.create({
baseURL:'https://api.strangerthings.tech/v1'
})
//Setting the language to pt_br with axios interceptors
api.interceptors.request.use(config => {
config.headers = {
'language': 'pt_br'
}
return config
})Last updated