Coder Social home page Coder Social logo

Comments (4)

thijskaspers avatar thijskaspers commented on May 25, 2024

See #60 (comment)

from docker.

ballmannweber avatar ballmannweber commented on May 25, 2024

I also can’t use Craft and nitro with our german language option which makes nitro pretty useless at the moment.

I checked for the discussion on "[8.x] Missing Locales #60" and even as I understand that it has to do with the Alpine Linux Version that comes with Docker I have no clue how to use the stated workaround ("downgrade/pin to Alpine Linux 3.15").

Anyone can help?

from docker.

fdelaneau avatar fdelaneau commented on May 25, 2024

Using Nitro to create a new craft site, I was also unable to set French as the site language. I tried with the terminal using fr-FR and simply fr all option but the default resulted in an error message.

I then created a new install and tried to setup Craft from the browser and here are the only available choices :

Capture d’écran 2022-06-13 à 10 13 10

Note that once the installation is completed, the CP is available in all languages and can be changed per users as usual. The problem is only with the site “local” language where only English variants are available.

from docker.

thijskaspers avatar thijskaspers commented on May 25, 2024

I also can’t use Craft and nitro with our german language option which makes nitro pretty useless at the moment.

I checked for the discussion on "[8.x] Missing Locales #60" and even as I understand that it has to do with the Alpine Linux Version that comes with Docker I have no clue how to use the stated workaround ("downgrade/pin to Alpine Linux 3.15").

Anyone can help?

Sorry for the confusion. This is something that has to be fixed in the Dockerfile by the owner of this repo if you use nitro. I haven't had the time yet to create a pull request.

To clarify the 2 possible 'fixes' on the Dockerfile side of things:

Option 1. In the PHP Dockerfiles from this repo, there is a line:

FROM php:${PHP_VERSION}-${PROJECT_TYPE}-alpine
that could be changed to FROM php:${PHP_VERSION}-${PROJECT_TYPE}-alpine3.15 to pin it to a fixed Alpine version that still has all locales installed by default.

Option 2. (this is probably the better option to stay up-to-date). If you want to keep using the latest Alpine version (3.16+), the following package icu-data-full has to be added to the list of all the packages in the Dockerfile, right where icu-dev is also located, see this part in the Dockerfile where all the required packages are installed:

RUN set -ex \

from docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.