I'm creating an app in four languages and every url goes like this:
app.name/en/rest/of/the/url
app.name/de/rest/of/the/url
app.name/nl/rest/of/the/url
app.name/fr/rest/of/the/url
How can I get this in the javascript? I need to translate some strings, but I need the locale to know which lang to choose