@stephen-r/yup-i18n-de
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

GitHub issues codecov Build-Status

yup-i18n-de

German translation for yup validations

Installing

  • with npm
$ npm install @stephen-r/yup-i18n-de
  • with yarn
$ yarn add @stephen-r/yup-i18n-de

Usage

Use the following code to switch to German translation

import { registerGermanYupLocale } from "@stephen-r/yup-i18n-de";

// ... some code
  registerGermanYupLocale();
// ... more code

Additional Usage

There might be a need to change parts of the translations by yourself. This can be achived by changing the objects directly:

import { registerGermanYupLocale, mixed } from "@stephen-r/yup-i18n-de";

// ... some code
  mixed.default = "Eine andere Meldung!";
  registerGermanYupLocale();
// ... more code

Be aware that changes before and after calling registerGermanYupLocale() are taken into consideration.

Readme

Keywords

Package Sidebar

Install

npm i @stephen-r/yup-i18n-de

Weekly Downloads

26

Version

1.3.1

License

MIT

Unpacked Size

20.4 kB

Total Files

10

Last publish

Collaborators

  • steven-r