Hi guys, i have some trouble. Someone know how use localization in grails 2.3 for javascript messages ?
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/5848a048-f2b3-4c86-ac21-bb202b7cbc2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You could make a controller that takes a message key and returns a value, then have your javascript populate it's messages by calling this controller via Ajax, given the browsers locale.
Best regards / Med venlig hilsen,
Søren Berg Glasius
Hedevej 1, Gl. Rye, 8680 Ry, Denmark
Mobile: +45 40 44 91 88, Skype: sbglasius
--- Press ESC once to quit - twice to save the changes.
On 13 August 2015 at 08:54, Pavel Zakharov <pza...@gmail.com> wrote:
Hi guys, i have some trouble. Someone know how use localization in grails 2.3 for javascript messages ?
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-discuss+unsub...@googlegroups.com.
Oh, thank's for reply. Hm, you talk, that i must to send message from controller to JS? Did you have example? I listen about JAWR lib, but when i try using here in Grails, i have same exceptions.
четверг, 13 августа 2015 г., 0:37:00 UTC-7 пользователь Søren Berg Glasius написал:
You could make a controller that takes a message key and returns a value, then have your javascript populate it's messages by calling this controller via Ajax, given the browsers locale.
Best regards / Med venlig hilsen,
Søren Berg Glasius
Hedevej 1, Gl. Rye, 8680 Ry, Denmark
Mobile: +45 40 44 91 88, Skype: sbglasius
--- Press ESC once to quit - twice to save the changes.
On 13 August 2015 at 08:54, Pavel Zakharov <pza...@gmail.com> wrote:
Hi guys, i have some trouble. Someone know how use localization in grails 2.3 for javascript messages ?
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/5848a048-f2b3-4c86-ac21-bb202b7cbc2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/20fb06a5-b95b-49f1-8734-4ecb2584bc80%40googlegroups.com.