Config

io.github.frikit.twirlspec.messages.MessagesIntegrity.Config
See theConfig companion object
final case class Config(baseLanguage: String = ..., requireTranslations: Boolean = ..., maxUntranslatedRatio: Double = ..., ignoreKeys: Set[String] = ..., ignoreKeyPrefixes: Set[String] = ..., urlKeySuffixes: Set[String] = ...)

What the checks measure against, and what they leave alone.

Value parameters

baseLanguage

the language the others are measured against: Play's default file plus this one

ignoreKeyPrefixes

prefixes of keys left out of every check

ignoreKeys

keys left out of every check

maxUntranslatedRatio

how much of a translation may be identical to the base before it is treated as untranslated

requireTranslations

whether every other configured language must carry every base key; off for a single-language service

urlKeySuffixes

suffixes of keys whose value is a URL, expected to read the same in every language and so not counted as untranslated

Attributes

Companion
object
Source
MessagesIntegrity.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def ignores(key: String): Boolean

Whether a key is left out of every check.

Whether a key is left out of every check.

Attributes

Source
MessagesIntegrity.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product