---
title: "getLanguageInfoFromKey | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> 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/sdk-js/api-reference/types/LanguageInfo/) },  
    ): [LanguageInfo](https://docs.maptiler.com/sdk-js/api-reference/types/LanguageInfo/) | null[](#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
    -   `Optional`languageDictionary: { \[k: string\]: [LanguageInfo](https://docs.maptiler.com/sdk-js/api-reference/types/LanguageInfo/) }
    
    #### Returns [LanguageInfo](https://docs.maptiler.com/sdk-js/api-reference/types/LanguageInfo/) | null
