How to handle i18n/localization?
See original GitHub issueFor example, if we are using yup schema for validation in formik, it is easy to translate messages, but problem occurs when we are using string().min()
and the error message should be correct for a given number in min()
validator.
Currently formik is adding error messages as a string, so it basically strips params
from yup.ValidationError
. In order to handle this, we have to somehow wrap all validators in yup
to custom validators, just to translate messages correctly.
Is there a way how to handle this in formik?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Here's How Major Frontend Libraries Handle i18n - Strapi
This article will show how three major frontend libraries handle localization and how you can use them to create multilingual applications.
Read more >The Ultimate Guide to Angular Localization | Phrase
It's no surprise that Angular has robust built-in i18n support. In this step-by-step tutorial on Angular localization and internationalization, ...
Read more >I18n: Everything You Need to Know About Internationalization
I18n prepares a digital product for localization by building a flexible and adaptive user interface, aligning brand voice to ensure consistency across regions, ......
Read more >What Is i18n? | Introduction to Internationalization - Lingoport
i18n is the process of preparing software so that it can support local languages, cultural settings, & meet the requirements of local markets....
Read more >Internationalization And Localization For Static Sites
Internationalization and localization is more than just writing your content in multiple languages. You need a strategy to determine what ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hey guys yup has support for i18n! https://github.com/jquense/yup#using-a-custom-locale-dictionary
I stand corrected ^^