Been a while since I used that stuff, so I'm just guessing.
Are you on :none?
IIRC cljs only supports defines in anything higher than :none. You can however
include
<script>CLOSURE_DEFINES={'goog.LOCALE':'de'};</script>
in your HTML BEFORE including any other javascript.
Pretty sure the locale is only "de" for Germany (only has de_AT, de_CH but not
de_DE).
HTH,
/thomas
On Thursday, April 9, 2015 at 2:19:53 PM UTC+2, Leon Grapenthin wrote:
> We fail at understanding how to use Closures localization featureset from
> within Clojurescript.
>
> We are using various namespaces like goog.date.duration or goog.i18n for date
> strings, formatting monetary values etc.
>
> The problem is that the strings are always english and that the browser
> settings are not respected.
>
> I did try:
>
> - Setting goog.LOCALE to de_DE via :closure-defines {:goog.LOCALE "de_DE"}
>
> - Setting the Content-Language Header of the serving HTML to "de_DE"
>
> - Setting goog.LOCALE manually in the applications init code
>
> - Using goog.locale/setLocale to set it to "de_DE".
>
> All those changes show zero effect.
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.