---
title: "getLanguageInfoFromKey | Client js | Api client"
description: "Documentation for MapTiler Client"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Function getLanguageInfoFromKey

-   getLanguageInfoFromKey(  
        languageKey: string,  
        languageDictionary?: { \[k: string\]: [LanguageInfo](https://docs.maptiler.com/client-js/api/types/language.LanguageInfo/) },  
    ): [LanguageInfo](https://docs.maptiler.com/client-js/api/types/language.LanguageInfo/)[](#getlanguageinfofromkey)
    
    Get language infos from a provided language key, the key being the no-whitespace capital name. By default, the language dictionary to look into is the one defined in this library, but another one could be provided Returns `null` if not found.
    
    #### Parameters
    
    -   languageKey: string
    -   languageDictionary: { \[k: string\]: [LanguageInfo](https://docs.maptiler.com/client-js/api/types/language.LanguageInfo/) } = Language
    
    #### Returns [LanguageInfo](https://docs.maptiler.com/client-js/api/types/language.LanguageInfo/)
    
    -   Defined in [language.ts:1035](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/language.ts#L1035)
