Skip to content
This repository has been archived by the owner. It is now read-only.

steven-r/yup-i18n-de

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.