flatten the language file before using it