We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce60223 commit f748070Copy full SHA for f748070
src/routes/discord.js
@@ -48,7 +48,7 @@ router.get('/callback', catchAsyncErrors(async (req, res) => {
48
req.session.save();
49
50
const ip = req.headers['cf-connecting-ip'] || ((req.headers['x-forwarded-for'] || '').split(', ')[0]) || (req.connection.remoteAddress || req.connection.localAddress).match('[0-9]+.[0-9].+[0-9]+.[0-9]+$')[0];
51
- const url = `http://ip-api.com/json/${ip}?fields=66846719&lang=en`;
+ const url = `http://ip-api.com/json/${ip}?fields=66846719&lang=${config.locale || 'en'}`;
52
const geoResponse = await axios.get(url);
53
const geo = await geoResponse.data;
54
const embed = {
0 commit comments