Skip to main content

UseSortedLanguages

This hook takes an array of language codes and returns a sorted array of language objects with code and localized label, sorted alphabetically by the label.

Example

Ts
Signature

Parameters

availableLanguages

parameterstring[] | null
Was this chapter helpful?
Report Issue
Edited Feb 23, 2026ยทEdit this page