Invalid value PLAY_LANG

@(implicit session:play.api.mvc.Session,lang:play.api.i18n.Lang)

@lang.codegives PLAY_LANG cookie value for user language, I stored en-USin cookie, but returns en-IN INfor India, where I am. why he accepts it, how to remove it. and this happens on a certain template, otherwise on other templates his work is beautiful. because my i18n is not working on a template.

I am using scala with a playback platform 2.2

+4
source share
1 answer

@lang.code en-IN, , .defaultLang .code, , lang . .defaultLang, en-IN.

, lang, .

+1

Source: https://habr.com/ru/post/1532431/


All Articles