This commit improves the translations method to handle undefined values gracefully and adds several missing translations for modals in the French locale.