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

play.ext.i18n.Format.scala Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package play.ext.i18n

import play.api.Configuration

/** supported format, suffix represents file suffix */
protected[i18n] case class Format(name: String, suffix: Option[String], loader: MessagesLoader) {

  def isEnabled(implicit config: Configuration) = config.get[Boolean](name)

  def toSuffix = suffix.map("." + _).getOrElse("")
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy