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.
sudo locale-gen cs_CZ.UTF-8
sudo nano /etc/default/locale
sudo apt-get install php-intl
sudo systemctl restart nginx (sudo /usr/sbin/nginx -s reload)
How can I change the default language sorting on Local by Flywheel?
Local version: 5.10.4+5377
OS: Macos Big Sur version 11.3.11
@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.
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:
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:
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...
Reading time: 1 mins 🕑
Likes: 8 ❤
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.