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
BeamScope
Why I created this: Needed some very particular metrics regarding the state of my Elixir cluster in a relatively small project...
New
Other Trending Topics
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
ICal is a library for interacting with iCalendar data. It parses iCalendars into typed Elixir structs via ICal.from_ics, and can prepare ...
New
Latest Phoenix Threads
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
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #blog-post
- #ai
- #phoenix_html
- #elixirconf-us
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










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