# Locale in Thunkable ✕

**URL:** <https://community.thunkable.com/t/locale-in-thunkable/31559>\
**Category:** Questions about Thunkable X\
**Created:** [June 14, 2018, 10:20am UTC](https://community.thunkable.com/t/locale-in-thunkable/31559 "2018-06-14T10:20:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Red\_Panda](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/red_panda/32/19387_2.png) [@Red\_Panda](https://community.thunkable.com/u/Red_Panda)\
**Post date:** [June 14, 2018, 10:20am UTC](https://community.thunkable.com/t/locale-in-thunkable/31559/1 "2018-06-14T10:20:53Z")

</div>

Does anyone know how to get the user’s locale or at least the country in Thunkable ✕? I look for an easy way to replicate the functions of my Localization extension.

-Red Panda

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 14, 2018, 10:28am UTC](https://community.thunkable.com/t/locale-in-thunkable/31559/2 "2018-06-14T10:28:03Z")

</div>

In the project below, add your KEY API to the text block with &key=. Look at the full JSON response There you can find a lot of information.

[https://x.thunkable.com/projects/5b100ff2ba875100017c66fd/project/properties/designer/](https://x.thunkable.com/projects/5b100ff2ba875100017c66fd/project/properties/designer/)

This is the maximum that you can find out. locale can not be recognized.

---

<div class="post-metadata">

**Author:** ![Red\_Panda](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/red_panda/32/19387_2.png) [@Red\_Panda](https://community.thunkable.com/u/Red_Panda)\
**Post date:** [June 14, 2018, 1:19pm UTC](https://community.thunkable.com/t/locale-in-thunkable/31559/3 "2018-06-14T13:19:26Z")

</div>

I solved it by myself using [http://ip-api.com](http://ip-api.com) that returns the user’s country based on their IP and a public json file containing all the information.  
EDIT: @actech informed me that the service I was using will shut down. I updated my original post

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 14, 2018, 1:24pm UTC](https://community.thunkable.com/t/locale-in-thunkable/31559/4 "2018-06-14T13:24:02Z")

</div>

Have you seen the information about this service?

`"This API endpoint is deprecated and will stop working on July 1st, 2018. For more information please visit: https://github.com/apilayer/freegeoip#readme"`

---

<div class="post-metadata">

**Author:** ![Red\_Panda](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/red_panda/32/19387_2.png) [@Red\_Panda](https://community.thunkable.com/u/Red_Panda)\
**Post date:** [June 14, 2018, 1:26pm UTC](https://community.thunkable.com/t/locale-in-thunkable/31559/5 "2018-06-14T13:26:00Z")

</div>

Damn, the second service shutting down their service soon 😢

---

<div class="post-metadata">

**Author:** ![Red\_Panda](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/red_panda/32/19387_2.png) [@Red\_Panda](https://community.thunkable.com/u/Red_Panda)\
**Post date:** [June 14, 2018, 1:51pm UTC](https://community.thunkable.com/t/locale-in-thunkable/31559/6 "2018-06-14T13:51:12Z")

</div>

I created an example project at [https://x.thunkable.com/projects/5b22235a9a56e0ba8062fdb3/project/properties/designer/](https://x.thunkable.com/projects/5b22235a9a56e0ba8062fdb3/project/properties/designer/) (link has been updated)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 14, 2018, 5:24pm UTC](https://community.thunkable.com/t/locale-in-thunkable/31559/7 "2018-06-14T17:24:56Z")

</div>

I’m trying to run your project and get a white screen when I run the Web.Get block.

A white screen occurs when the “object \< get object from json \< responce”. Responce block is not JSON data. This block contains the source code of the page.

The rest of the application works and determines the country.

---

<div class="post-metadata">

**Author:** ![Red\_Panda](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/red_panda/32/19387_2.png) [@Red\_Panda](https://community.thunkable.com/u/Red_Panda)\
**Post date:** [June 14, 2018, 8:14pm UTC](https://community.thunkable.com/t/locale-in-thunkable/31559/8 "2018-06-14T20:14:36Z")

</div>

The projects work for me. Which response block do you mean? The one in caption or the one in fullResponse? Can you access the [example file](http://redpandaapps.tk/files/examples/default.json) with your browser? [Here](https://x.thunkable.com/projects/5b22235a9a56e0ba8062fdb3/project/properties/designer/) is the project link, so you’ll always have the latest version

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 15, 2018, 5:41am UTC](https://community.thunkable.com/t/locale-in-thunkable/31559/9 "2018-06-15T05:41:53Z")

</div>

Thanks, I for myself found the useful information from your block and together with these found an error. When using the “get object from JSON” block, it should always check whether the block on the right is JSON-data or not. Otherwise, when this block is executed, a white screen appears.

![badjson](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/0/f049883d4d9021200348260de8cc0175be720322.png)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:02pm UTC](https://community.thunkable.com/t/locale-in-thunkable/31559/10 "2024-11-08T12:02:27Z")

</div>


