Skip to content

Latest commit

 

History

History

internationalization

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Internationalization - Live Demo

This is a minimal example of how to use the Intl library with a custom element.

Demo

The important code lives in src/Main.elm and in index.html with comments!

Check out wolfadex/fluent-web for a more complete approach, making Project Fluent available through custom elements.

Building Locally

Run the following commands:

git clone https://github.com/elm-community/js-integration-examples.git
cd js-integration-examples/internationalization

elm make src/Main.elm --output=elm.js
open index.html

Some terminals may not have an open command, in which case you should open the index.html file in your browser another way.