BartOtten
This lib is now published and has a new topic.
Once this topic was about PhxAltRoutes. A lib pioneering localized routes for Phoenix.
It’s experimental work sparked and influenced second generation routing libs such as Cldr-Routes and Phoenix Localized Routes.
Phoenix Localized Routes is superseded by the third (and currently latest) generation: Routex - Extension driven superpowers for Phoenix Routes
Trending in RFCs
There was some time when I started thinking about giving a boost to Lambdapad, the initiative from @garretsmith in Erlang that I loved wa...
New
Hey everyone — I’m putting together a practical, code-first book on building production-ready business applications with Phoenix LiveView...
New
You set up environments, each with its own tools, its own data and its own limits, and programs get evaluated in them. The same program r...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
csadewa
Hi @BartOtten , here’s some feedback since you are looking for one:
sfusato
1 - I see
PhxMultiLangRoutesas more descriptive of what the library does.PhxLocalizedRoutescould also be an idea.2 - Would
:shortdiffer from:slugin many cases? If not, having one key less could be desirable. Even ineurope/eucase, if the slug iseurope, I would find it much more intuitively that the helper uses it as well (europe_product_index_path).4 - A far alley, maybe even out of the scope of the library, could be the support of different domains/subdomains:
BartOtten
sfusato
My idea was regarding sites that run each localized version on different subdomains entirely. So, the french version on
fr.example.com, the english/default onexample.cometc, thus the path helpers/router macros will need to generate the paths differently and I suppose it would also involve different endpoint/router for each locale. Again, a very var away alleyBartOtten
Major refactoring in progress; will soon push a revised edition.
BartOtten
Changelog (pushed so far, refactoring in progress)
BartOtten
I hope the linked README will now anwer those questions. If not, please let me know.
BartOtten
Afaik this can be done by pointing all subdomains to the same location (with all routes) and use a SetLocale plug (see README) to steer people to the correct localized route.
I have a conversation with @kip from
ex_cldrto streamline/align libs and efforts.BartOtten
Update
BROKE A FEW THINGS, so use commit
8d2c608208af06e2edd75a0c45f4022f967193e9to a checkout a working exampleNext stop: Add example how to list all alternative routes on a page.
I had this working but the syntax was evil. Will probably add a
loc_linkmacro or patch the native Phoenixlink,live_redirect, etcBartOtten
Update
THE BRAVE MAY START TO USE IT IN AN HOBBY PROJECT
Changelog