1
我已經通過文件讀取設置明確的語言:http://www.playframework.com/documentation/2.1.0/ScalaI18N 和這個職位: i18n error: controller and templates uses different implicit languages ,它看起來簡單,從請求頭隱式設置的語言,如果有一個隱式請求。在我的應用程序中,我需要根據某種邏輯(不依賴請求頭中的語言)在所有模板中設置語言。有沒有辦法做到這一點?斯卡拉發揮國際化:如何在所有模板
你可以省略形式只需要這樣做:'@()(implicit lang:play.api.i18n.Lang)',表單只是一個例子 – EECOLOR 2013-03-08 23:20:33