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

hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
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
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

Other popular topics Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54006 488
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

We're in Beta

About us Mission Statement