@tandem-language-exchange/languages
TypeScript icon, indicating that this package has built-in type declarations

1.0.53 • Public • Published

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';

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i @tandem-language-exchange/languages

    Weekly Downloads

    27

    Version

    1.0.53

    License

    MIT

    Unpacked Size

    1.37 MB

    Total Files

    301

    Last publish

    Collaborators

    • tandem-web