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: https://github.com/elixir-lang/ex_doc/tree/master/lib/ex_doc/formatter/html/templates

If you’d like to work on making this configurable, we could definitely discuss it, open up a new issue or comment on https://github.com/elixir-lang/ex_doc/issues/466.

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”

https://hexdocs.pm/ex_doc/Mix.Tasks.Docs.html

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

aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
pgiesin
This should be a simple problem but I just can’t seem to figure it out. I have a standalone Elixir app that won’t find the database. Dep...
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
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New
beno
I will often find my self writing things similar to: case some_value do nil -> something() "" -> something() _ -> someth...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
Codball
Mix format works fine if run from the cmd. I’ve followed this to facilitate the implementation into VSC which involves downloading an ext...
New

Other popular topics Top

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
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
sergio
I couldn’t find any guides that worked well with Phoenix 1.6.0 and esbuild. I hope this helps people test the waters and eases you into t...
New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
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
AstonJ
by Lance Halvorsen Elixir and Phoenix are generating tremendous excitement as an unbeatable platform for building modern web application...
460 27162 124
New

We're in Beta

About us Mission Statement