Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loicmahieu/yup-locales
Localizations for yup
https://github.com/loicmahieu/yup-locales
Last synced: 6 days ago
JSON representation
Localizations for yup
- Host: GitHub
- URL: https://github.com/loicmahieu/yup-locales
- Owner: LoicMahieu
- License: mit
- Created: 2019-10-09T15:53:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-10T20:50:39.000Z (23 days ago)
- Last Synced: 2024-12-20T20:12:38.957Z (13 days ago)
- Language: TypeScript
- Size: 1.26 MB
- Stars: 71
- Watchers: 3
- Forks: 54
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yup-locales
Localizations for [jquense/yup](https://github.com/jquense/yup).
## Install
```
npm install -S yup-locales
```## Usage
```js
import { fr } from 'yup-locales';
import { setLocale } from 'yup';
setLocale(fr);
```## Locales
Locales implemented:
- `ar`
- `bg`
- `bs`
- `cs`
- `da`
- `de`
- `en`
- `es`
- `et`
- `fi`
- `fr`
- `he`
- `hu`
- `id`
- `it`
- `ja`
- `ko`
- `lt`
- `nb`
- `nl`
- `pl`
- `pt`
- `ro`
- `ru`
- `sk`
- `sv`
- `th`
- `tr`
- `uk`
- `uz`
- `vi`
- `zh`
- `zhtw`Please submit a PR with a new locale if you need it. In order to create a new locale, you could translate it automatically with `node scripts/create-locale` which will use google translate.
Please follow [`semantic-release` message format](https://semantic-release.gitbook.io/semantic-release/#commit-message-format).
Example:
`feat(locales): add locale XX`