com.alexitc.playsonify.play.I18nPlayService.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of playsonify-play_2.12 Show documentation
Show all versions of playsonify-play_2.12 Show documentation
An opinionated library to help you build JSON APIs in a practical way using Play Framework
The newest version!
package com.alexitc.playsonify.play
import javax.inject.Inject
import com.alexitc.playsonify.core.I18nService
import play.api.i18n.{Lang, MessagesApi}
class I18nPlayService @Inject() (messagesApi: MessagesApi) extends I18nService[Lang] {
override def render(key: String, args: Any*)(implicit lang: Lang): String = {
messagesApi.apply(key, args)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy