From aebb80119ff4a479df7606d00893562f61215e80 Mon Sep 17 00:00:00 2001 From: tnsardesai <18272584+tnsardesai@users.noreply.github.com> Date: Thu, 17 Sep 2026 22:22:08 +0000 Subject: [PATCH] Add Dutch locales to browser images --- images/chromium-headful/Dockerfile | 5 +++-- images/chromium-headless/image/Dockerfile | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/images/chromium-headful/Dockerfile b/images/chromium-headful/Dockerfile index 1836594e..d5e43c0d 100644 --- a/images/chromium-headful/Dockerfile +++ b/images/chromium-headful/Dockerfile @@ -204,7 +204,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=$CACHEIDPREFIX-ap locales \ tzdata \ unzip && \ - locale-gen en_US.UTF-8 en_GB.UTF-8 en_CA.UTF-8 en_IE.UTF-8 en_SG.UTF-8 && \ + locale-gen en_US.UTF-8 en_GB.UTF-8 en_CA.UTF-8 en_IE.UTF-8 en_SG.UTF-8 nl_NL.UTF-8 && \ apt-get clean && rm -rf /var/lib/apt/lists/* # Install fonts to match a realistic Ubuntu 22.04 desktop fingerprint. @@ -292,7 +292,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=$CACHEIDPREFIX-ap libxext6 libxfixes3 libxkbcommon0; # Install Chrome + ChromeDriver as a matched pair from chrome-for-testing so they cannot drift apart. -# Regional pack filenames preserve each locale identifier while reusing en-GB UI strings. +# Regional pack filenames preserve each locale identifier while reusing base-language UI strings. ARG CHROME_VERSION=152.0.7977.42 RUN set -eux; \ curl -fsSL "https://storage.googleapis.com/chrome-for-testing-public/${CHROME_VERSION}/linux64/chrome-linux64.zip" -o /tmp/chrome.zip; \ @@ -302,6 +302,7 @@ RUN set -eux; \ mv /opt/chrome-linux64 /opt/chrome-for-testing; \ mv /opt/chrome-for-testing/chrome /opt/chrome-for-testing/chromium; \ for locale in en-CA en-IE en-SG; do cp /opt/chrome-for-testing/locales/en-GB.pak "/opt/chrome-for-testing/locales/${locale}.pak"; done; \ + cp /opt/chrome-for-testing/locales/nl.pak /opt/chrome-for-testing/locales/nl-NL.pak; \ ln -sf /opt/chrome-for-testing/chromium /usr/bin/chromium; \ mv /tmp/chromedriver-linux64/chromedriver /usr/local/bin/chromedriver; \ chmod +x /usr/local/bin/chromedriver /opt/chrome-for-testing/chromium; \ diff --git a/images/chromium-headless/image/Dockerfile b/images/chromium-headless/image/Dockerfile index 7306d9b3..d9cbe315 100644 --- a/images/chromium-headless/image/Dockerfile +++ b/images/chromium-headless/image/Dockerfile @@ -164,7 +164,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=$CACHEIDPREFIX-ap fonts-noto-mono \ fonts-nanum \ supervisor; \ - locale-gen en_US.UTF-8 en_GB.UTF-8 en_CA.UTF-8 en_IE.UTF-8 en_SG.UTF-8; \ + locale-gen en_US.UTF-8 en_GB.UTF-8 en_CA.UTF-8 en_IE.UTF-8 en_SG.UTF-8 nl_NL.UTF-8; \ fc-cache -f # sqlite3 for debugging the cookies file; unzip for the chrome-for-testing archives below. @@ -174,7 +174,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=$CACHEIDPREFIX-ap apt-get --no-install-recommends -y install sqlite3 unzip; # Install Chrome + ChromeDriver as a matched pair from chrome-for-testing so they cannot drift apart. -# Regional pack filenames preserve each locale identifier while reusing en-GB UI strings. +# Regional pack filenames preserve each locale identifier while reusing base-language UI strings. ARG CHROME_VERSION=152.0.7977.42 RUN set -eux; \ curl -fsSL "https://storage.googleapis.com/chrome-for-testing-public/${CHROME_VERSION}/linux64/chrome-linux64.zip" -o /tmp/chrome.zip; \ @@ -184,6 +184,7 @@ RUN set -eux; \ mv /opt/chrome-linux64 /opt/chrome-for-testing; \ mv /opt/chrome-for-testing/chrome /opt/chrome-for-testing/chromium; \ for locale in en-CA en-IE en-SG; do cp /opt/chrome-for-testing/locales/en-GB.pak "/opt/chrome-for-testing/locales/${locale}.pak"; done; \ + cp /opt/chrome-for-testing/locales/nl.pak /opt/chrome-for-testing/locales/nl-NL.pak; \ ln -sf /opt/chrome-for-testing/chromium /usr/bin/chromium; \ mv /tmp/chromedriver-linux64/chromedriver /usr/local/bin/chromedriver; \ chmod +x /usr/local/bin/chromedriver /opt/chrome-for-testing/chromium; \