fun2src

fun2src

Ex_doc: Spanish language support

How can I change the language in ex_doc?
“Summary” (English) → “Resumen” (Spanish)
“Functions” (English) → “Funciones” (Spanish)

Marked As Solved

fun2src

fun2src

Hi all,

Finally, I got the problem solved: PR1030

translation.ex
Spanish translations: es.ex

Thank you for all your help

Also Liked

wojtekmach

wojtekmach

Hex Core Team

Currently, the only way to change the language is to fork the project and update the templates yourself, see: ex_doc/lib/ex_doc/formatter/html/templates at main · elixir-lang/ex_doc · GitHub

If you’d like to work on making this configurable, we could definitely discuss it, open up a new issue or comment on Add support for gettext · Issue #466 · elixir-lang/ex_doc · GitHub.

The :language option is just a hint for the generated epub file.

NobbZ

NobbZ

There is the :language option available to it, perhaps it does already what you want?

:language - Identify the primary language of the documents, its value must be a valid BCP 47language tag; default: “en”

fun2src

fun2src

Yes, of course!. I believe it would be desirable to add support for gettext in ExDoc.
I would separate by locale:

  • Package: ex_doc (main).
  • Package (optional): ex_doc_locale_es_ES (spanish - spain).
  • Package (optional): ex_doc_locale_gl_ES (galician - spain).
  • Package (optional): ex_doc_locale_pt_PT (portuguese - portugal)

Doc sidebar: Add “locale selector”.

Thanks a lot for your assistance!

Where Next?

Popular in Questions Top

aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
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
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
chrisalley
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
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
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New

Other popular topics Top

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 41539 114
New
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
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
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
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 43622 214
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
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

We're in Beta

About us Mission Statement