karang

karang

List of all default ecto changeset errors for internationalization

Hello, I am working on a Phoenix app that needs to work with a few different languages. I really appreciate that gettext works out of the box. It is a nice experience. I was just wondering if there is a list of default ecto changeset errors? I have been translating the errors as I see them come up in my forms (ex: “can’t be blank”) but I think I may be missing some that might come up in the future. Would be cool to have a repo with translations for different laguages so we don’t all have to do this ourselves everytime. I would contribute for sure!

Marked As Solved

Also Liked

nathanl

nathanl

@karang You were asking about a repo that has translations to other locales, right? Like

# in es/LC_MESSAGES/errors.pot
msgid "can't be blank"
msgstr "no puede estar en blanco"

I was just wondering the same thing - does such a repo exist? It seems silly for every app that uses Elixir to repeat the work of translating these standard messages into N languages.

nathanl

nathanl

I just created a repo, elixir_common_i18n, to get things started.

Last Post!

florish

florish

Hey, that’s great! I stumbled upon this thread and your repo while searching for Ecto error message translations.

Dutch (NL) translations pull request should be ready to merge.

Where Next?

Popular in Questions Top

joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42533 114
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

We're in Beta

About us Mission Statement