Home > @shopware-pwa/shopware-6-client > setCurrentLanguage
# setCurrentLanguage() function
Signature:
export declare function setCurrentLanguage(newLanguageId: string, contextInstance?: ShopwareApiInstance): Promise<ContextTokenResponse>;
# Parameters
Parameter | Type | Description |
---|---|---|
newLanguageId | string | |
contextInstance | ShopwareApiInstance |
Returns:
Promise<ContextTokenResponse>
# Exceptions
ClientApiError