Skip to content
Example of internationalisation (I18n) in a Phoenix app using LiveView
Elixir JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
config
lib
priv/gettext
test
.formatter.exs
.gitignore
LICENSE.txt
Procfile
README.md
elixir_buildpack.config
mix.exs
mix.lock
phoenix_static_buildpack.config
push

README.md

Phoenix LiveView I18n Example

An example implementation of language switching using Phoenix LiveView.

It re-implements Tachyons' Full Screen Centered Title component documentation page in Phoenix, adds a language dropdown menu, and allows you to switch the language of the message displayed.

It was created as part of a blog post I wrote about Internationalisation with Phoenix LiveView, and is a sibling repository to Elm I18n Example, which I created to also re-implement the same page, but in Elm.

Setup

git clone https://github.com/paulfioravanti/phx_i18n_example.git
cd phx_i18n_example
mix deps.get
npm install --prefix assets

Run

mix phx.server

Open http://localhost:4000

You can’t perform that action at this time.