# How to set locale on Local for correct sorting in Czech language?

**URL:** https://community.localwp.com/t/how-to-set-locale-on-local-for-correct-sorting-in-czech-language/25677
**Category:** Support
**Created:** [May 26, 2021, 4:50am UTC](https://community.localwp.com/t/how-to-set-locale-on-local-for-correct-sorting-in-czech-language/25677 "2021-05-26T04:50:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![luhas](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@luhas](https://community.localwp.com/u/luhas)
#### Post date: [May 26, 2021, 4:50am UTC](https://community.localwp.com/t/how-to-set-locale-on-local-for-correct-sorting-in-czech-language/25677/1 "2021-05-26T04:50:22Z")

</div>

### Issue Summary

Cannot set locale for the wp site in Local  
For the purposes of the correct sorting in different language (in my case Czech) than English, I need to run the following commands and edit some files. These commands work on Ubuntu but not on Local SSH Bash.

```auto
sudo locale-gen cs_CZ.UTF-8
sudo nano /etc/default/locale
	- add
	LANG=cs_CZ.UTF-8
	LC_ALL=cs_CZ.UTF-8
sudo apt-get install php-intl
sudo systemctl restart nginx (sudo /usr/sbin/nginx -s reload)

```

#### Troubleshooting Questions

- How can I change the default language sorting on Local by Flywheel?

#### System Details

- Local version: 5.10.4+5377
- OS: Macos Big Sur version 11.3.11

---

<div class="post-metadata">

### Author: ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)
#### Post date: [May 26, 2021, 3:58pm UTC](https://community.localwp.com/t/how-to-set-locale-on-local-for-correct-sorting-in-czech-language/25677/2 "2021-05-26T15:58:36Z")

</div>

Hey @luhas, Welcome to the Local Community Forums!

I’ve never dealt with this sort of thing, but let’s see if we can get things working for you!

Local runs the various pieces of server software (php,mysql,nginx) directly on the computer, so using a tool like `apt-get` won’t configure things correctly.

> [@luhas](#):
>
> correct sorting in different language (in my case Czech) than English

Are you trying to do this sorting within PHP of the WordPress site?

I see that in the above commands for Ubuntu, you are installing `php-intl` – right now, the latest version of Local doesn’t include `php-intl` and there isn’t an easy way to compile it for macOS:

> **[How do I enable php-intl on Local?](https://community.localwp.com/t/how-do-i-enable-php-intl-on-local/15858/23)**
>
> Hey everyone, thanks for your patience with this! I wish I had a solution for you right now, but I’ve been cracking at this for a bit now and haven’t been able to get the intl extension to build for MacOS. From what I can tell, it seems like intl...

If you’re wanting this extension within Local, I’d recommend leaving a reply and voting on either of these feature requests:

> **[PHP extensions management](https://community.localwp.com/t/php-extensions-management/3618)**
>
> When trying to use Local with Magento 2 the PHP installation misses two extensions. PHP Extension xsl. PHP Extension intl. Might be a very nice feature to enhance the PHP installation with extensions. Maybe some form of a manager where you can...

> **[Add INTL (icu) PHP Extension](https://community.localwp.com/t/add-intl-icu-php-extension/10923)**
>
> Hi, I need to use PHP NumberFormatter Class. My config: LbF 3.0.4 Mac 10.14.3 I tried to follow the “How to compile additional PHP extensions?” tutorial and some others on the net but I always get something that does not work. Someone to help...

---

<div class="post-metadata">

### Author: ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)
#### Post date: [August 24, 2021, 3:58pm UTC](https://community.localwp.com/t/how-to-set-locale-on-local-for-correct-sorting-in-czech-language/25677/3 "2021-08-24T15:58:36Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
