On Tue, Sep 13, 2016 at 6:55 PM, <[email protected]> wrote:

>
> 2. Giving the Url-Parser (of the Navigation package) access to the program
> flags.
>
> This was a little show stopper for me. I wanted to write a single page app
> that does not have to be recompiled if you switch the language. Different
> language files are built in, and there is a flag to choose the language.
> The problem is, that the paths in the url (after the hash) should also be
> in the chosen language. The url parser does not have access to the model
> (and I don't see how it could), but it could at least get access to the
> flags. I think that could be accomlished easily in
> Navigation.programWithFlags.
>

Wouldn't be easier to just prefix all the urls with the language

domain.com/#/en/some/path
domain.com/#/fr/vive/la/france

This way you could look at the hash/location, figure the language, and then
chose the appropriate parser for that language.
(this is what I did in my app)




-- 
There is NO FATE, we are the creators.
blog: http://damoc.ro/

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to