0

Internationalization on client side

Hi, This is another problem I came across when trying to upgrade to mojito 0.7.1. ac.intl.lang & Y.Intl.get don't seem to work if the controller was run on client side. On the other hand, when controller was run on the server, they work just fine.

Did I miss something? Thanks in advance.

ft

by
  • ft
  • Aug 9, 2013
4 Replies
  • we can look at it. do you have an small repro case that we can use to dig in?

    1
  • Hi Caridy, Here is (what I believe) a similar repro case: <https://github.com/ftliou/mojito-test>

    This consists of a Master mojit and Child(Test1) mojit, each has its own lang folder.

    On the url, if I switch between lang=en & zh, the output of child --> data --> some is always empty.

    However, if I change the application.json file and set defer=false (ie rendering child on server side), then child --> data --> some will display correctly.

    Hope this helps.

    Thanks again!

    0
  • Great, I was able to reproduce it, and I opened a new issue in github:

    https://github.com/yahoo/mojito/issues/1215

    0
  • @ft, can you try this again with <mojito@0.7.5?> this should be fixed by now!

    0

Recent Posts

in Yahoo! Mojito