I'm trying to use php gettext() with docker image php:7.2-fpm-alpine3.7
my Dockerfile is
FROM php:7.2-fpm-alpine3.7
RUN apk add --update --no-cache icu-dev gettext gettext-dev \
&& docker-php-ext-install intl gettext
but it does not translate.
I found that extensions are ok, and trouble with locales. Alpine does not support locales properly.
Is there any way to use locales
(and php gettext()
) with alpine docker image?