#!/bin/sh
set -e
CODE=0

db_get debian-installer/locale || true
LOCALE="$RET"

apt-install localization-config

localization-config /target preinst || CODE="$?"
if [ "$CODE" = 30 ]; then
	exit 10
else
	exit $CODE
fi
