File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
root/etc/s6-overlay/s6-rc.d/init-mod-universal-internationalization-install Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -739,3 +739,26 @@ elif [[ "${LSIO_BASE}" == "arch" ]] && [[ ! -f /usr/share/fonts/noto-cjk/NotoSan
739739else
740740 echo "**** International Fonts/Locales installed skipping ****"
741741fi
742+
743+ # Add Firefox Langpacks
744+ if which firefox && [ ! -f /langlock ]; then
745+ echo "Installing firefox langpacks"
746+ FIREFOX_VERSION=$(curl -sI https://download.mozilla.org/?product=firefox-latest | awk -F '(releases/|/win32)' '/Location/ {print $2}')
747+ RELEASE_URL="https://releases.mozilla.org/pub/firefox/releases/${FIREFOX_VERSION}/win64/xpi/"
748+ LANGS=$(curl -Ls ${RELEASE_URL} | awk -F '(xpi">|</a>)' '/href.*xpi/ {print $2}' | tr '\n' ' ')
749+ if [[ "${LSIO_BASE}" == "alpine" ]]; then
750+ EXTENSION_DIR=/usr/lib/firefox/distribution/extensions/
751+ else
752+ EXTENSION_DIR=/usr/lib/firefox-addons/distribution/extensions/
753+ fi
754+ mkdir -p ${EXTENSION_DIR}
755+ for LANG in ${LANGS}; do
756+ LANGCODE=$(echo ${LANG} | sed 's/\.xpi//g')
757+ echo "Downloading ${LANG} Firefox Language pack"
758+ curl -o \
759+ ${EXTENSION_DIR}langpack-${LANGCODE}@firefox.mozilla.org.xpi -Ls \
760+ ${RELEASE_URL}${LANG}
761+ done
762+ fi
763+
764+ touch /langlock
You can’t perform that action at this time.
0 commit comments