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

vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
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
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
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
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

Other popular topics Top

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
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
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
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement