All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alexitc.playsonify.play.I18nPlayService.scala Maven / Gradle / Ivy

Go to download

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