improve i18n preload to take advantage of partially flattened locales, fixes #17155