New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

yup-locale-ja

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yup-locale-ja

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15K
decreased by-9.31%
Maintainers
1
Weekly downloads
 
Created
Source

yup-locale-ja

npm Automated Tests Status Automated Publish Status

Japanese localization for yup messages, with translation flavors.

README (日本語)

Getting Started

$ yarn add yup yup-locale-ja

# or...
$ npm i yup yup-locale-ja

then, set a locale object as yup's default message dictionary with setLocale function.

import { setLocale } from "yup";
import * as ja from "yup-locale-ja";

setLocale(ja.suggestive);

For more info, see yup's README.

Translation Flavors

This package comes with two flavors: descriptive and suggestive. descriptive is such like "~です" ("... is ...") form, which simply describe the field's attribute. In contrast, suggestive messages show a user an action to fix the error, such as "~してください" ("Please do ...").

import * as ja from "yup-locale-ja";

ja.suggestive; // suggestive messages
ja.descriptive; // descriptive messages

How to show a field label?

Add a label by calling .label method on the field. This package omits a field path unless a label is set.

Similar Projects

Keywords

FAQs

Package last updated on 25 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc