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
defaultfile 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 Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article