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
Hi all,
Finally, I got the problem solved: PR1030
translation.ex
Spanish translations: es.ex
Thank you for all your help
Also Liked
wojtekmach
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
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!
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










