# Language

Scalar · GraphQL API

The [language tag](https://tools.ietf.org/html/bcp47#section-2) for the language in which to localize the error-related strings, such as messages, issues, and suggested actions.
The tag is made up of the [ISO 639-2 language code](https://www.loc.gov/standards/iso639-2/php/code_list.php), the optional [ISO-15924 script tag](http://www.unicode.org/iso15924/codelists.html), and the [ISO-3166 alpha-2 country code](https://developer.paypal.com/braintree/docs/reference/general/countries).
maxLength: 10
minLength: 2
pattern: `^[a-z]{2}(?:-[A-Z][a-z]{3})?(?:-(?:[A-Z]{2}))?$`

## Used by

- [LocalPaymentContextInput](/braintree/graphql/reference/types/local-payment-context-input) — Input; locale
- [NonInstantLocalPaymentContextInput](/braintree/graphql/reference/types/non-instant-local-payment-context-input) — Input; locale
- [PayPalBillingAgreementExperienceProfileInput](/braintree/graphql/reference/types/pay-pal-billing-agreement-experience-profile-input) — Input; locale
- [PayPalExperienceProfileInput](/braintree/graphql/reference/types/pay-pal-experience-profile-input) — Input; locale

## GraphQL definition

```graphql
scalar Language
```

---

[View the complete GraphQL schema on GitHub](https://raw.githubusercontent.com/braintree/graphql-api/refs/heads/master/schema.graphql)