Documentation Index
Fetch the complete documentation index at: https://docs.knotapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Knot SDK supports localization, allowing you to present the merchant linking experience in your users’ preferred language. Localization is controlled via thelocale parameter, a BCP-47 language tag passed when configuring the SDK.
The locale you pass controls both the SDK’s display language and which regional version of the merchant site loads where applicable. For example, passing en-CA will load the Canadian version of a merchant’s site, while en-US will load the U.S. version. If your app supports users in multiple regions, we recommend always passing an explicit locale to match the user’s region.
Supported Locales
| Locale | Language | Region |
|---|---|---|
en-US | English | U.S. |
en-CA | English | Canada |
es-US | Spanish | U.S. |
fr-CA | French | Canada |
locale is provided, the SDK defaults to en-US, displaying in English and loading the U.S. version of the merchant site where applicable.
Usage
Pass thelocale parameter when configuring the SDK to localize the experience. For example, to display the SDK in Spanish:
Javascript
locale parameter is available across all mobile SDKs. See the iOS, Android, React Native, and Flutter SDK guides for platform-specific examples.