question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to handle i18n/localization?

See original GitHub issue

For 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:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
guilhermedecampocommented, Sep 7, 2017
1reaction
jaredpalmercommented, Sep 7, 2017

I stand corrected ^^

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found