1
0
Fork 0
freesewing/markdown/dev/reference/api/settings/locale/en.md
2022-02-19 08:04:25 +01:00

18 lines
469 B
Markdown

---
title: locale
---
The `locale` setting allows you to specify the language of the pattern.
It should contain a 2-letter language code that indicates what language the user wants.
The default is `en`.
This will be used to set the `xml:lang` attribute in the `svg` tag when rendering to SVG,
and by [the i18n plugin](/reference/plugins/i18n/) to translate the pattern.
```js
import Brian from "@freesewing/brian";
const pattern = new Brian({
locale: "es"
})
```