Language Utility Library
This library provides a set of utilities for managing and retrieving language data in your applications. It allows you to perform operations such as searching for languages, sorting them by translations, and retrieving language objects by code or ID.
Features
- Retrieve language details using language code (ISO standard) or ID.
- Search functionality across all language properties including nested translations.
- Sort languages based on translations for a specified locale.
Installation
Install the library from npm:
yarn add @tandem-language-exchange/languages
To use this library, simply import the necessary functions from their respective files in your project.
import { getLanguageFromCode, getLanguageFromId, searchLanguages, sortLanguagesByTranslation } from '@tandem-language-exchange/languages';