1
0
Fork 0
freesewing/markdown/dev/reference/settings/locale/en.md
2022-12-14 21:02:30 -08:00

632 B

title
locale

The locale setting allows you to specify the language of the pattern. It should contain an ISO 639-1 2-letter language code that indicates what language the user wants. The default is en.

Signature

const settings = {
  String locale='en'
}

Example

import { Aaron } from "@freesewing/aaron"

const pattern = new Aaron({
  locale: "es"
})

Notes

This will be used to set the xml:lang attribute in the svg tag when rendering to SVG, and by the i18n plugin to translate the pattern.